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/Draft.pas

    r447 r460  
    55
    66uses
    7   Protocol, ClientTools, Term, ScreenTools, BaseWin, LCLIntf, LCLType, SysUtils,
     7  Protocol, ClientTools, ScreenTools, BaseWin, LCLIntf, LCLType, SysUtils,
    88  Classes, Graphics, Controls, Forms, ExtCtrls, ButtonA, ButtonB, Area;
    99
     
    3737  end;
    3838
    39 var
    40   DraftDlg: TDraftDlg;
    41 
    4239
    4340implementation
    4441
    4542uses
    46   Help, Tribes, Directories;
     43  Term, Help, Tribes, Directories;
    4744
    4845{$R *.lfm}
     
    531528      I := (Y - yFeature) div LinePitch;
    532529      if (X >= xFeature - 21) and (X < ClientWidth) and (ssShift in Shift) then
    533         HelpDlg.ShowNewContent(WindowModeMakePersistent(FWindowMode), hkFeature, Code[I])
     530        MainScreen.HelpDlg.ShowNewContent(WindowModeMakePersistent(FWindowMode), hkFeature, Code[I])
    534531      else if not(Code[I] in AutoFeature) then
    535532      begin
Note: See TracChangeset for help on using the changeset viewer.