Ignore:
Timestamp:
Nov 28, 2023, 3:16:24 PM (12 months ago)
Author:
chronos
Message:
  • Modified: Do not initialize all local player windows at the start of the game but later when they are really opened. This also fixes window initialization under Qt5 widgetset.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/LocalPlayer.pas

    r447 r460  
    1010
    1111uses
    12   Term, CityScreen, Draft, MessgEx, Select, CityType, Help, UnitStat, Diagram,
    13   NatStat, Wonders, Nego, Enhance, BaseWin, Battle, Rates, TechTree, Forms;
     12  Term, CityScreen, Nego, BaseWin, Forms;
    1413
    1514var
     
    2423//    Application.MainForm := MainScreen;
    2524    Application.CreateForm(TMainScreen, MainScreen);
    26     Application.CreateForm(TCityDlg, CityDlg);
    27     Application.CreateForm(TModalSelectDlg, ModalSelectDlg);
    28     Application.CreateForm(TListDlg, ListDlg);
    29     Application.CreateForm(TMessgExDlg, MessgExDlg);
    30     Application.CreateForm(TDraftDlg, DraftDlg);
    31     Application.CreateForm(TCityTypeDlg, CityTypeDlg);
    32     Application.CreateForm(THelpDlg, HelpDlg);
    33     Application.CreateForm(TUnitStatDlg, UnitStatDlg);
    34     Application.CreateForm(TDiaDlg, DiaDlg);
    35     Application.CreateForm(TNatStatDlg, NatStatDlg);
    36     Application.CreateForm(TWondersDlg, WondersDlg);
    37     Application.CreateForm(TNegoDlg, NegoDlg);
    38     Application.CreateForm(TEnhanceDlg, EnhanceDlg);
    39     Application.CreateForm(TBattleDlg, BattleDlg);
    40     // Application.CreateForm(TAdvisorDlg, AdvisorDlg);
    41     Application.CreateForm(TRatesDlg, RatesDlg);
    42     Application.CreateForm(TTechTreeDlg, TechTreeDlg);
    4325  end;
    4426  MainScreen.Client(Command, Player, Data);
Note: See TracChangeset for help on using the changeset viewer.