Changeset 465 for branches/highdpi/LocalPlayer/LocalPlayer.pas
- Timestamp:
- Nov 30, 2023, 10:16:14 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/LocalPlayer.pas
r378 r465 4 4 interface 5 5 6 procedure Client(Command, Player: integer; var Data); stdcall;7 procedure SetAIName( p: integer; Name: string);6 procedure Client(Command, Player: Integer; var Data); stdcall; 7 procedure SetAIName(P: Integer; Name: string); 8 8 9 9 implementation 10 10 11 11 uses 12 UDpiControls, Term, CityScreen, Draft, MessgEx, Select, CityType, Help, UnitStat, Diagram, 13 NatStat, Wonders, Nego, Enhance, BaseWin, Battle, Rates, TechTree, Forms; 12 UDpiControls, Term, CityScreen, Nego, BaseWin, Forms; 14 13 15 14 var 16 FormsCreated: boolean;15 FormsCreated: Boolean; 17 16 18 procedure Client(Command, Player: integer; var Data);17 procedure Client(Command, Player: Integer; var Data); 19 18 begin 20 19 if not FormsCreated then 21 20 begin 22 FormsCreated := true;21 FormsCreated := True; 23 22 // TODO: Changing application name in runtime will cause change of Linux XML registry file path 24 // DpiApplication.MainForm := MainScreen;23 // Application.MainForm := MainScreen; 25 24 DpiApplication.CreateForm(TMainScreen, MainScreen); 26 DpiApplication.CreateForm(TCityDlg, CityDlg);27 DpiApplication.CreateForm(TModalSelectDlg, ModalSelectDlg);28 DpiApplication.CreateForm(TListDlg, ListDlg);29 DpiApplication.CreateForm(TMessgExDlg, MessgExDlg);30 DpiApplication.CreateForm(TDraftDlg, DraftDlg);31 DpiApplication.CreateForm(TCityTypeDlg, CityTypeDlg);32 DpiApplication.CreateForm(THelpDlg, HelpDlg);33 DpiApplication.CreateForm(TUnitStatDlg, UnitStatDlg);34 DpiApplication.CreateForm(TDiaDlg, DiaDlg);35 DpiApplication.CreateForm(TNatStatDlg, NatStatDlg);36 DpiApplication.CreateForm(TWondersDlg, WondersDlg);37 DpiApplication.CreateForm(TNegoDlg, NegoDlg);38 DpiApplication.CreateForm(TEnhanceDlg, EnhanceDlg);39 DpiApplication.CreateForm(TBattleDlg, BattleDlg);40 // DpiApplication.CreateForm(TAdvisorDlg, AdvisorDlg);41 DpiApplication.CreateForm(TRatesDlg, RatesDlg);42 DpiApplication.CreateForm(TTechTreeDlg, TechTreeDlg);43 25 end; 44 26 MainScreen.Client(Command, Player, Data); 45 27 end; 46 28 47 procedure SetAIName( p: integer; Name: string);29 procedure SetAIName(P: Integer; Name: string); 48 30 begin 49 MainScreen.SetAIName( p, Name);31 MainScreen.SetAIName(P, Name); 50 32 end; 51 33 52 34 initialization 53 35 54 FormsCreated := false;36 FormsCreated := False; 55 37 56 38 end.
Note:
See TracChangeset
for help on using the changeset viewer.