Ignore:
Timestamp:
Jan 17, 2026, 9:14:41 AM (8 hours ago)
Author:
chronos
Message:
  • Modified: Initialize Log dialog later from Term and NoTerm forms.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Term.pas

    r716 r731  
    1313  Protocol, Tribes, PVSB, ClientTools, ScreenTools, BaseWin, Messg, ButtonBase,
    1414  LCLIntf, LCLType, Menus, SysUtils, Classes, DrawDlg, Types, Math,
    15   DateUtils, Platform, ButtonB, ButtonC, EOTButton, Area, Help,
     15  DateUtils, Platform, ButtonB, ButtonC, EOTButton, Area, Help, Log,
    1616  GraphicSet, MiniMap, IsoEngine, Wonders, TechTree, Enhance, Nego, CityType,
    1717  Diagram, CityScreen, Rates, Battle, NatStat, UnitStat, Draft, Select, MessgEx,
     
    357357    FMessgExDlg: TMessgExDlg;
    358358    FHelpDlg: THelpDlg;
     359    FLogDlg: TLogDlg;
    359360    procedure ProcessMessagesWithDisabledKeyboard;
    360361    procedure ResizeControls;
     
    363364    function ChooseUnusedTribe: Integer;
    364365    function DoJob(j0: Integer): Integer;
     366    function GetLogDlg: TLogDlg;
    365367    function GetBattleDlg: TBattleDlg;
    366368    function GetCityDlg: TCityDlg;
     
    470472    property MessgExDlg: TMessgExDlg read GetMessgExDlg;
    471473    property HelpDlg: THelpDlg read GetHelpDlg;
     474    property LogDlg: TLogDlg read GetLogDlg;
    472475  end;
    473476
     
    661664
    662665uses
    663   Directories, Log, Sound, Registry, Global, KeyBindings, CmdList, Music;
     666  Directories, Sound, Registry, Global, KeyBindings, CmdList, Music;
    664667
    665668{$R *.lfm}
     
    36423645  if Assigned(FMessgExDlg) then FreeAndNil(FMessgExDlg);
    36433646  if Assigned(FHelpDlg) then FreeAndNil(FHelpDlg);
     3647  if Assigned(FLogDlg) then FreeAndNil(FLogDlg);
    36443648
    36453649  MainFormKeyDown := nil;
     
    65666570  end;
    65676571  {$ENDIF}
     6572end;
     6573
     6574function TMainScreen.GetLogDlg: TLogDlg;
     6575begin
     6576  if not Assigned(FLogDlg) then FLogDlg := TLogDlg.Create(nil);
     6577  Result := FLogDlg;
    65686578end;
    65696579
Note: See TracChangeset for help on using the changeset viewer.