Changeset 317 for trunk/Forms/FormGameSystem.pas
- Timestamp:
- Jun 21, 2024, 12:44:53 PM (5 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormGameSystem.pas
r316 r317 1 unit UFormGameSystem;1 unit FormGameSystem; 2 2 3 3 interface … … 5 5 uses 6 6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 7 ComCtrls, UGameSystem, UFormList;7 ComCtrls, GameSystem, FormList, FormEx; 8 8 9 9 type … … 11 11 { TFormGameSystem } 12 12 13 TFormGameSystem = class(TForm )13 TFormGameSystem = class(TFormEx) 14 14 ButtonCancel: TButton; 15 15 ButtonOk: TButton; … … 28 28 procedure ButtonLoadClick(Sender: TObject); 29 29 procedure ButtonSaveClick(Sender: TObject); 30 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);31 30 procedure FormCreate(Sender: TObject); 32 31 procedure FormDestroy(Sender: TObject); 33 procedure FormShow(Sender: TObject);34 32 private 35 33 FGameSystem: TGameSystem; … … 44 42 end; 45 43 46 var47 FormGameSystem: TFormGameSystem;48 49 44 50 45 implementation 51 46 52 47 {$R *.lfm} 53 54 uses55 UCore;56 48 57 49 resourcestring … … 82 74 end; 83 75 84 procedure TFormGameSystem.FormClose(Sender: TObject;85 var CloseAction: TCloseAction);86 begin87 Core.PersistentForm.Save(Self);88 end;89 90 76 procedure TFormGameSystem.FormCreate(Sender: TObject); 91 77 begin 92 Core.ThemeManager1.UseTheme(Self);93 Core.CoolTranslator1.TranslateComponentRecursive(Self);94 78 FormUnitKinds := TFormList.Create(nil); 95 79 FormUnitKinds.ManualDock(TabSheetUnits, nil, alClient); … … 112 96 FreeAndNil(FormUnitKinds); 113 97 FreeAndNil(FormBuildingKinds); 114 end;115 116 procedure TFormGameSystem.FormShow(Sender: TObject);117 begin118 Core.PersistentForm.Load(Self);119 98 end; 120 99
Note:
See TracChangeset
for help on using the changeset viewer.