Changeset 33 for trunk/UCore.pas
- Timestamp:
- Mar 5, 2014, 12:01:04 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r32 r33 6 6 7 7 uses 8 Classes, SysUtils, FileUtil, ActnList, Controls, Dialogs, Forms, UGame; 8 Classes, SysUtils, FileUtil, ActnList, Controls, Dialogs, Forms, UGame, 9 UCoolTranslator; 9 10 10 11 type … … 13 14 14 15 TCore = class(TDataModule) 16 ASettings: TAction; 15 17 ActionList1: TActionList; 16 18 AExit: TAction; … … 19 21 AGameNew: TAction; 20 22 AGameRestart: TAction; 23 CoolTranslator1: TCoolTranslator; 21 24 ImageList1: TImageList; 22 25 procedure AExitExecute(Sender: TObject); … … 25 28 procedure AGameNewExecute(Sender: TObject); 26 29 procedure AGameRestartExecute(Sender: TObject); 30 procedure ASettingsExecute(Sender: TObject); 31 procedure CoolTranslator1Translate(Sender: TObject); 27 32 procedure DataModuleCreate(Sender: TObject); 28 33 procedure DataModuleDestroy(Sender: TObject); … … 49 54 50 55 uses 51 UFormMove, UFormMain, UFormNew ;56 UFormMove, UFormMain, UFormNew, UFormSettings; 52 57 53 58 resourcestring … … 125 130 end; 126 131 132 procedure TCore.ASettingsExecute(Sender: TObject); 133 begin 134 FormSettings.Load; 135 if FormSettings.ShowModal = mrOk then 136 FormSettings.Save; 137 end; 138 139 procedure TCore.CoolTranslator1Translate(Sender: TObject); 140 begin 141 UGame.InitStrings; 142 end; 143 127 144 procedure TCore.DataModuleCreate(Sender: TObject); 128 145 begin
Note:
See TracChangeset
for help on using the changeset viewer.