Changeset 44 for trunk/Forms/UMainForm.pas
- Timestamp:
- Apr 19, 2019, 12:02:27 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UMainForm.pas
r43 r44 7 7 uses 8 8 XMLConf, Classes, SysUtils, FileUtil, Forms, Controls, Graphics, 9 Dialogs, ExtCtrls, ComCtrls, Menus, ActnList, U Core, UPlatform, Math,9 Dialogs, ExtCtrls, ComCtrls, Menus, ActnList, UEngine, UPlatform, Math, 10 10 DateUtils, GraphType, UPersistentForm, UApplicationInfo, UCoolTranslator, 11 11 LCLType, URegistry; … … 17 17 TMainForm = class(TForm) 18 18 AAbout: TAction; 19 ApplicationInfo1: TApplicationInfo;20 19 AShowRawImageDesc: TAction; 21 20 AShowMap: TAction; … … 24 23 AFullScreen: TAction; 25 24 ActionList1: TActionList; 26 CoolTranslator1: TCoolTranslator;27 25 Image1: TImage; 28 26 MainMenu1: TMainMenu; … … 39 37 TimerEngineTick: TTimer; 40 38 XMLConfig1: TXMLConfig; 39 procedure AAboutExecute(Sender: TObject); 41 40 procedure AExitExecute(Sender: TObject); 42 41 procedure AFullScreenExecute(Sender: TObject); … … 77 76 78 77 uses 79 U MapForm, UNewGameForm;78 UCore, UMapForm, UNewGameForm, UFormAbout; 80 79 81 80 resourcestring … … 136 135 137 136 PersistentForm := TPersistentForm.Create(nil); 138 PersistentForm.RegistryContext := TRegistryContext.Create( ApplicationInfo1.RegistryRoot,139 ApplicationInfo1.RegistryKey);137 PersistentForm.RegistryContext := TRegistryContext.Create(Core.ApplicationInfo.RegistryRoot, 138 Core.ApplicationInfo.RegistryKey); 140 139 141 140 Application.OnDeactivate := FormDeactivate; … … 144 143 Engine := TEngine.Create; 145 144 Engine.Bitmap := Image1.Picture.Bitmap; 146 Co olTranslator1.Language :=CoolTranslator1.Languages.SearchByCode('cs');145 Core.CoolTranslator1.Language := Core.CoolTranslator1.Languages.SearchByCode('cs'); 147 146 LoadConfig; 148 147 Engine.NewGame; … … 220 219 end; 221 220 221 procedure TMainForm.AAboutExecute(Sender: TObject); 222 begin 223 FormAbout := TFormAbout.Create(nil); 224 FormAbout.ShowModal; 225 FreeAndNil(FormAbout); 226 end; 227 222 228 procedure TMainForm.FormKeyDown(Sender: TObject; var Key: Word; 223 229 Shift: TShiftState);
Note:
See TracChangeset
for help on using the changeset viewer.