Ignore:
Timestamp:
Nov 28, 2023, 3:16:24 PM (6 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/NatStat.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, ButtonB, ButtonC, Menus, EOTButton;
    99
     
    3737    procedure OffscreenPaint; override;
    3838  private
    39     pView, AgePrepared, LinesDown: Integer;
    40     SelfReport, CurrentReport: PEnemyReport;
    41     ShowContact, ContactEnabled: Boolean;
    42     Back, Template: TBitmap;
     39    pView: Integer;
     40    AgePrepared: Integer;
     41    LinesDown: Integer;
     42    SelfReport: PEnemyReport;
     43    CurrentReport: PEnemyReport;
     44    ShowContact: Boolean;
     45    ContactEnabled: Boolean;
     46    Back: TBitmap;
     47    Template: TBitmap;
    4348    ReportText: TStringList;
    4449    procedure GenerateReportText;
    4550  end;
    4651
    47 var
    48   NatStatDlg: TNatStatDlg;
    49 
    5052
    5153implementation
     
    5456
    5557uses
    56   Messg, Tribes, Directories;
     58  Term, Messg, Tribes, Directories;
    5759
    5860const
     
    193195            [I * 100 div (G.lx * G.ly)]);
    194196      end;
    195     end
     197    end;
    196198  end;
    197199
     
    254256  ps: PChar;
    255257  Extinct: Boolean;
    256 
    257258begin
    258259  inherited;
     
    279280        1 + Tribe[pView].facepix mod 10 * 65,
    280281        1 + Tribe[pView].facepix div 10 * 49);
    281       frame(Offscreen.Canvas, 18 - 1, yIcon - 4 - 1, 18 + 64, yIcon - 4 + 48,
     282      Frame(Offscreen.Canvas, 18 - 1, yIcon - 4 - 1, 18 + 64, yIcon - 4 + 48,
    282283        $000000, $000000);
    283284    end;
     
    392393        Phrases2.Lookup('MENU_TELLAI'));
    393394  end;
     395
    394396  ContactBtn.SetBack(Offscreen.Canvas, ContactBtn.Left, ContactBtn.Top);
    395397
Note: See TracChangeset for help on using the changeset viewer.