Ignore:
Timestamp:
Nov 30, 2023, 10:16:14 PM (5 months ago)
Author:
chronos
Message:
  • Modified: Updated high dpi branch from trunk.
  • Modified: Use generics.collections instead of fgl.
  • Modified: Compile with Delphi syntax.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/LocalPlayer/LocalPlayer.pas

    r378 r465  
    44interface
    55
    6 procedure Client(Command, Player: integer; var Data); stdcall;
    7 procedure SetAIName(p: integer; Name: string);
     6procedure Client(Command, Player: Integer; var Data); stdcall;
     7procedure SetAIName(P: Integer; Name: string);
    88
    99implementation
    1010
    1111uses
    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;
    1413
    1514var
    16   FormsCreated: boolean;
     15  FormsCreated: Boolean;
    1716
    18 procedure Client(Command, Player: integer; var Data);
     17procedure Client(Command, Player: Integer; var Data);
    1918begin
    2019  if not FormsCreated then
    2120  begin
    22     FormsCreated := true;
     21    FormsCreated := True;
    2322    // TODO: Changing application name in runtime will cause change of Linux XML registry file path
    24 //    DpiApplication.MainForm := MainScreen;
     23//    Application.MainForm := MainScreen;
    2524    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);
    4325  end;
    4426  MainScreen.Client(Command, Player, Data);
    4527end;
    4628
    47 procedure SetAIName(p: integer; Name: string);
     29procedure SetAIName(P: Integer; Name: string);
    4830begin
    49   MainScreen.SetAIName(p, Name);
     31  MainScreen.SetAIName(P, Name);
    5032end;
    5133
    5234initialization
    5335
    54 FormsCreated := false;
     36FormsCreated := False;
    5537
    5638end.
Note: See TracChangeset for help on using the changeset viewer.