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

    r457 r460  
    4949  end;
    5050
    51 var
    52   MessgExDlg: TMessgExDlg;
    5351
    5452procedure SoundMessageEx(SimpleText, SoundItem: string);
     
    458456begin
    459457  if Kind = mkOkHelp then
    460     HelpDlg.ShowNewContent(wmSubmodal, HelpKind, HelpNo)
     458    MainScreen.HelpDlg.ShowNewContent(wmSubmodal, HelpKind, HelpNo)
    461459  else if Kind = mkModel then
    462     UnitStatDlg.ShowNewContent_OwnModel(wmSubmodal, IconIndex)
     460    MainScreen.UnitStatDlg.ShowNewContent_OwnModel(wmSubmodal, IconIndex)
    463461  else
    464462    ModalResult := mrIgnore;
     
    489487// because Messg.SoundMessage not capable of movie mode
    490488begin
    491   with MessgExDlg do
     489  with MainScreen.MessgExDlg do
    492490  begin
    493491    MessgText := SimpleText;
     
    500498procedure TribeMessage(P: Integer; SimpleText, SoundItem: string);
    501499begin
    502   with MessgExDlg do
     500  with MainScreen.MessgExDlg do
    503501  begin
    504502    OpenSound := SoundItem;
     
    514512  : Integer;
    515513begin
    516   with MessgExDlg do
     514  with MainScreen.MessgExDlg do
    517515  begin
    518516    MessgText := SimpleText;
     
    527525  ContextKind: TLinkCategory; ContextNo: Integer);
    528526begin
    529   with MessgExDlg do
     527  with MainScreen.MessgExDlg do
    530528  begin
    531529    MessgText := SimpleText;
Note: See TracChangeset for help on using the changeset viewer.