Changeset 88 for trunk/Forms/FormMain.pas
- Timestamp:
- Jun 7, 2024, 2:36:34 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormMain.pas
r87 r88 36 36 MenuItemGame: TMenuItem; 37 37 TimerDraw: TTimer; 38 procedure Form Close(Sender: TObject; var CloseAction: TCloseAction);38 procedure FormActivate(Sender: TObject); 39 39 procedure FormCreate(Sender: TObject); 40 40 procedure FormDestroy(Sender: TObject); … … 171 171 end; 172 172 173 procedure TFormMain.Form Close(Sender: TObject; var CloseAction: TCloseAction);174 begin 175 Core.Core.PersistentForm1.Save(Self);173 procedure TFormMain.FormActivate(Sender: TObject); 174 begin 175 FullScreen := Core.Core.PersistentForm1.FormFullScreen; 176 176 end; 177 177 … … 194 194 procedure TFormMain.FormShow(Sender: TObject); 195 195 begin 196 FullScreen := Core.Core.PersistentForm1.FormFullScreen;197 198 196 UpdateInterface; 199 if Core.Core.Game.Board.GetEmptyTilesCount > Core.Core.Game.Board.Size.X * Core.Core.Game.Board.Size.Y -200 InitialTileCount then197 if Core.Core.Game.Board.GetEmptyTilesCount > Core.Core.Game.Board.Size.X * 198 Core.Core.Game.Board.Size.Y - InitialTileCount then 201 199 Core.Core.Game.New; 202 200 end;
Note:
See TracChangeset
for help on using the changeset viewer.