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

    r447 r460  
    99
    1010type
     11  TDiagramKind = (dkChart, dkShip);
     12
    1113  TDiaDlg = class(TFramedDlg)
    1214    CloseBtn: TButtonB;
     
    2022    procedure PlayerClick(Sender: TObject);
    2123    procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
    22 
    2324  public
    2425    procedure OffscreenPaint; override;
    2526    procedure ShowNewContent_Charts(NewMode: TWindowMode);
    2627    procedure ShowNewContent_Ship(NewMode: TWindowMode; P: Integer = -1);
    27 
    2828  private
    29     Kind: (dkChart, dkShip);
    30     Player, Mode: Integer;
    31   end;
    32 
    33 var
    34   DiaDlg: TDiaDlg;
     29    Kind: TDiagramKind;
     30    Player: Integer;
     31    Mode: Integer;
     32  end;
    3533
    3634procedure PaintColonyShip(Canvas: TCanvas; Player, Left, Width, Top: Integer);
     35
    3736
    3837implementation
Note: See TracChangeset for help on using the changeset viewer.