Ignore:
Timestamp:
Jan 5, 2023, 10:14:31 PM (23 months ago)
Author:
chronos
Message:
  • Modified: Hide main menu in full screen mode.
  • Modified: Use colors as player names.
  • Modified: Use black background around player frames.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r61 r62  
    5151    procedure Image1Resize(Sender: TObject);
    5252    procedure TimerDrawTimer(Sender: TObject);
    53     procedure TimerEngineTickTimer(Sender: TObject);
    5453  private
    5554    StartTime: TDateTime;
     
    5857    procedure LoadConfig;
    5958    procedure SaveConfig;
     59    procedure UpdateInterface;
    6060  public
    6161    PersistentForm: TPersistentForm;
     
    110110end;
    111111
    112 procedure TFormMain.TimerEngineTickTimer(Sender: TObject);
    113 begin
    114   //Engine.Tick;
    115 end;
    116 
    117112procedure TFormMain.LoadConfig;
    118113begin
     
    134129  ForceDirectories(ExtractFileDir(XMLConfig1.Filename));
    135130  XMLConfig1.Flush;
     131end;
     132
     133procedure TFormMain.UpdateInterface;
     134begin
     135  if FullScreenEnabled then Menu := nil
     136    else Menu := MainMenu1;
     137  {$IFDEF DEBUG}
     138  StatusBar1.Visible := not FullScreenEnabled;
     139  {$ENDIF}
    136140end;
    137141
     
    169173procedure TFormMain.FormDestroy(Sender: TObject);
    170174begin
     175  TimerDraw.Enabled := False;
    171176  FreeAndNil(PersistentForm);
    172177  FreeAndNil(Engine);
     
    177182  FullScreenEnabled := not FullScreenEnabled;
    178183  PersistentForm.SetFullScreen(FullScreenEnabled);
     184  UpdateInterface;
    179185end;
    180186
     
    238244  PersistentForm.Load(Self, False, True);
    239245  FullScreenEnabled := PersistentForm.FormFullScreen;
    240   {$IFDEF DEBUG}
    241   StatusBar1.Visible := True;
    242   {$ENDIF}
     246  UpdateInterface
    243247end;
    244248
Note: See TracChangeset for help on using the changeset viewer.