Ignore:
Timestamp:
Jun 7, 2024, 2:36:34 PM (5 months ago)
Author:
chronos
Message:
  • Fixed: Fullscreen mode was not working on start.
  • Added: Step button in AI form to do single step.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormMain.pas

    r87 r88  
    3636    MenuItemGame: TMenuItem;
    3737    TimerDraw: TTimer;
    38     procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
     38    procedure FormActivate(Sender: TObject);
    3939    procedure FormCreate(Sender: TObject);
    4040    procedure FormDestroy(Sender: TObject);
     
    171171end;
    172172
    173 procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction);
    174 begin
    175   Core.Core.PersistentForm1.Save(Self);
     173procedure TFormMain.FormActivate(Sender: TObject);
     174begin
     175  FullScreen := Core.Core.PersistentForm1.FormFullScreen;
    176176end;
    177177
     
    194194procedure TFormMain.FormShow(Sender: TObject);
    195195begin
    196   FullScreen := Core.Core.PersistentForm1.FormFullScreen;
    197 
    198196  UpdateInterface;
    199   if Core.Core.Game.Board.GetEmptyTilesCount > Core.Core.Game.Board.Size.X * Core.Core.Game.Board.Size.Y -
    200     InitialTileCount then
     197  if Core.Core.Game.Board.GetEmptyTilesCount > Core.Core.Game.Board.Size.X *
     198    Core.Core.Game.Board.Size.Y - InitialTileCount then
    201199    Core.Core.Game.New;
    202200end;
Note: See TracChangeset for help on using the changeset viewer.