Changeset 732 for trunk/Start.pas


Ignore:
Timestamp:
Jan 17, 2026, 9:21:53 AM (6 hours ago)
Author:
chronos
Message:
  • Modified: Background form belongs to Start screen. Changed from global variable to local variable of StartDlg.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Start.pas

    r725 r732  
    55
    66uses
    7   GameServer, Messg, ButtonBase, ButtonA, ButtonC, ButtonB, Area,
     7  GameServer, Messg, ButtonBase, ButtonA, ButtonC, ButtonB, Area, Back,
    88  LCLIntf, LCLType, SysUtils, Classes, BaseWin, ListBoxEx, LazFileUtils, Math,
    99  Registry, DrawDlg, Generics.Collections, Protocol, MiniMap, Brain, Translator,
     
    143143    procedure OffscreenPaint; override;
    144144  public
     145    Background: TBackground;
    145146    EmptyPicture: TBitmap;
    146147    Translator: TTranslator;
     
    156157
    157158uses
    158   Global, Directories, Direct, ScreenTools, Inp, Back, Settings, KeyBindings,
     159  Global, Directories, Direct, ScreenTools, Inp, Settings, KeyBindings,
    159160  Languages, Music;
    160161
     
    224225  AIBrains: TBrains;
    225226begin
     227  Background := TBackground.Create(nil);
     228
    226229  TitleHeight := 0;
    227230  PlayerSlots := TPlayerSlots.Create;
     
    340343  FreeAndNil(PlayerSlots);
    341344  FreeAndNil(MiniMap);
     345  FreeAndNil(Background);
    342346end;
    343347
Note: See TracChangeset for help on using the changeset viewer.