Changeset 336 for trunk/Core.pas
- Timestamp:
- Sep 7, 2024, 10:29:16 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Core.pas
r330 r336 16 16 TCore = class(TDataModule) 17 17 AAbout: TAction; 18 ATests: TAction; 18 19 AFullscreen: TAction; 19 20 AToggleFogOfWar: TAction; … … 60 61 procedure AShowKeyShortcutsExecute(Sender: TObject); 61 62 procedure AShowUnitMovesExecute(Sender: TObject); 63 procedure ATestsExecute(Sender: TObject); 62 64 procedure AToggleFogOfWarExecute(Sender: TObject); 63 65 procedure Translator1Translate(Sender: TObject); … … 127 129 128 130 uses 129 FormNew, FormSettings, ClientAI, FormKeyShortcuts, Common, FormEx, 130 FormHelp, FormUnitMoves, FormPlayersStats, ClientGUI, FormAbout ;131 FormNew, FormSettings, ClientAI, FormKeyShortcuts, Common, FormEx, FormTests, 132 FormHelp, FormUnitMoves, FormPlayersStats, ClientGUI, FormAbout, Tests; 131 133 132 134 const … … 292 294 procedure TCore.UpdateInterface; 293 295 begin 294 Core.AGameEnd.Enabled := Game.Running; 295 Core.AFullscreen.Checked := FormMain.FullScreen; 296 AGameEnd.Enabled := Game.Running; 297 AFullscreen.Checked := FormMain.FullScreen; 298 {$ifdef DEBUG} 299 ATests.Visible := True; 300 ATests.Enabled := True; 301 {$else} 302 ATests.Visible := False; 303 ATests.Enabled := False; 304 {$endif} 296 305 end; 297 306 … … 470 479 FormMain.FormUnitMoves.Game := Game; 471 480 FormMain.FormUnitMoves.Show; 481 end; 482 483 procedure TCore.ATestsExecute(Sender: TObject); 484 var 485 FormTests: TFormTests; 486 begin 487 FormTests := TFormTests.Create(nil); 488 FormTests.TestCases := GetTestCases; 489 FormTests.ShowModal; 490 FormTests.Free; 472 491 end; 473 492
Note:
See TracChangeset
for help on using the changeset viewer.