Changeset 622 for trunk/LocalPlayer/Term.pas
- Timestamp:
- Sep 15, 2024, 10:04:45 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Term.pas
r621 r622 12 12 {$ENDIF} 13 13 Protocol, Tribes, PVSB, ClientTools, ScreenTools, BaseWin, Messg, ButtonBase, 14 LCLIntf, LCLType, Menus,SysUtils, Classes, DrawDlg, Types, Math,14 LCLIntf, LCLType, SysUtils, Classes, DrawDlg, Types, Math, 15 15 DateUtils, Platform, ButtonB, ButtonC, EOTButton, Area, Help, 16 16 GraphicSet, MiniMap, IsoEngine, Wonders, TechTree, Enhance, Nego, CityType, … … 2643 2643 MainTexture.Age := -1; 2644 2644 Tribes.Init; 2645 HelpDlg.UserLeft := (Screen.Width - HelpDlg.Width) div 2;2646 HelpDlg.UserTop := (Screen.Height - HelpDlg.Height) div 2;2645 HelpDlg.UserLeft := Screen.PrimaryMonitor.Left + (Screen.PrimaryMonitor.Width - HelpDlg.Width) div 2; 2646 HelpDlg.UserTop := Screen.PrimaryMonitor.Top + (Screen.PrimaryMonitor.Height - HelpDlg.Height) div 2; 2647 2647 HelpDlg.Difficulty := 0; 2648 2648 if Command = cStartCredits then … … 5963 5963 if BattleDlg.Left < 0 then 5964 5964 BattleDlg.Left := 0 5965 else if BattleDlg.Left + BattleDlg.Width > Screen. Width then5966 BattleDlg.Left := Screen. Width - BattleDlg.Width;5965 else if BattleDlg.Left + BattleDlg.Width > Screen.DesktopWidth then 5966 BattleDlg.Left := Screen.DesktopWidth - BattleDlg.Width; 5967 5967 BattleDlg.Top := Y - BattleDlg.Height div 2; 5968 5968 if BattleDlg.Top < 0 then 5969 5969 BattleDlg.Top := 0 5970 else if BattleDlg.Top + BattleDlg.Height > Screen. Height then5971 BattleDlg.Top := Screen. Height - BattleDlg.Height;5970 else if BattleDlg.Top + BattleDlg.Height > Screen.DesktopHeight then 5971 BattleDlg.Top := Screen.DesktopHeight - BattleDlg.Height; 5972 5972 BattleDlg.IsSuicideQuery := False; 5973 5973 BattleDlg.Show; … … 8065 8065 procedure TMainScreen.FormShow(Sender: TObject); 8066 8066 begin 8067 if FullScreen then BoundsRect := Bounds(0, 0, Screen.Width, Screen.Height)8067 if FullScreen then BoundsRect := Screen.PrimaryMonitor.BoundsRect 8068 8068 else BoundsRect := TermBounds; 8069 8069 FormRestoredSize := TermBounds; … … 8387 8387 8388 8388 if Form is TListDlg then begin; 8389 ListDlg.UserLeft := 8;8390 ListDlg.UserTop := TopBarHeight + 8;8389 ListDlg.UserLeft := Screen.PrimaryMonitor.Left + 8; 8390 ListDlg.UserTop := Screen.PrimaryMonitor.Top + TopBarHeight + 8; 8391 8391 end; 8392 8392 if Form is THelpDlg then begin 8393 HelpDlg.UserLeft := Screen.Width - HelpDlg.Width - 8;8394 HelpDlg.UserTop := TopBarHeight + 8;8393 HelpDlg.UserLeft := Screen.PrimaryMonitor.Left + Screen.PrimaryMonitor.Width - HelpDlg.Width - 8; 8394 HelpDlg.UserTop := Screen.PrimaryMonitor.Top + TopBarHeight + 8; 8395 8395 end; 8396 8396 if Form is TUnitStatDlg then begin 8397 UnitStatDlg.UserLeft := 397;8398 UnitStatDlg.UserTop := TopBarHeight + 64;8397 UnitStatDlg.UserLeft := Screen.PrimaryMonitor.Left + 397; 8398 UnitStatDlg.UserTop := Screen.PrimaryMonitor.Top + TopBarHeight + 64; 8399 8399 end; 8400 8400 if Form is TDiaDlg then begin 8401 DiaDlg.UserLeft := (Screen.Width - DiaDlg.Width) div 2;8402 DiaDlg.UserTop := (Screen.Height - DiaDlg.Height) div 2;8401 DiaDlg.UserLeft := Screen.PrimaryMonitor.Left + (Screen.PrimaryMonitor.Width - DiaDlg.Width) div 2; 8402 DiaDlg.UserTop := Screen.PrimaryMonitor.Top + (Screen.PrimaryMonitor.Height - DiaDlg.Height) div 2; 8403 8403 end; 8404 8404 if Form is TNatStatDlg then begin 8405 NatStatDlg.UserLeft := Screen. Width - NatStatDlg.Width - 8;8406 NatStatDlg.UserTop := Screen. Height - PanelHeight - NatStatDlg.Height - 8;8405 NatStatDlg.UserLeft := Screen.PrimaryMonitor.Left + Screen.PrimaryMonitor.Width - NatStatDlg.Width - 8; 8406 NatStatDlg.UserTop := Screen.PrimaryMonitor.Top + Screen.PrimaryMonitor.Height - PanelHeight - NatStatDlg.Height - 8; 8407 8407 if NatStatDlg.UserTop < 8 then 8408 8408 NatStatDlg.UserTop := 8;
Note:
See TracChangeset
for help on using the changeset viewer.