Changeset 44 for trunk/Forms
- Timestamp:
- Apr 19, 2019, 12:02:27 PM (6 years ago)
- Location:
- trunk/Forms
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UMainForm.lfm
r38 r44 1 1 object MainForm: TMainForm 2 2 Left = 486 3 Height = 5153 Height = 618 4 4 Top = 258 5 Width = 6425 Width = 770 6 6 Caption = 'Tunneler' 7 ClientHeight = 4908 ClientWidth = 6429 DesignTimePPI = 1 207 ClientHeight = 584 8 ClientWidth = 770 9 DesignTimePPI = 144 10 10 Menu = MainMenu1 11 11 OnClose = FormClose … … 20 20 Left = 0 21 21 Height = 28 22 Top = 46223 Width = 64222 Top = 556 23 Width = 770 24 24 Panels = < 25 25 item 26 Width = 6226 Width = 74 27 27 end 28 28 item 29 Width = 6229 Width = 74 30 30 end 31 31 item 32 Width = 6232 Width = 74 33 33 end 34 34 item 35 Width = 6235 Width = 74 36 36 end 37 37 item 38 Width = 6238 Width = 74 39 39 end 40 40 item 41 Width = 6241 Width = 74 42 42 end 43 43 item 44 Width = 6244 Width = 74 45 45 end> 46 46 ParentFont = False … … 49 49 object Image1: TImage 50 50 Left = 0 51 Height = 46251 Height = 556 52 52 Top = 0 53 Width = 64253 Width = 770 54 54 Align = alClient 55 55 OnMouseLeave = Image1MouseLeave … … 59 59 Interval = 50 60 60 OnTimer = TimerDrawTimer 61 left = 1 2462 top = 6361 left = 149 62 top = 76 63 63 end 64 64 object MainMenu1: TMainMenu 65 left = 2 3066 top = 2 065 left = 276 66 top = 24 67 67 object MenuItem1: TMenuItem 68 68 Caption = 'Game' … … 93 93 Interval = 20 94 94 OnTimer = TimerEngineTickTimer 95 left = 1 2096 top = 1 3095 left = 144 96 top = 156 97 97 end 98 98 object ActionList1: TActionList 99 left = 360100 top = 4 099 left = 432 100 top = 48 101 101 object AFullScreen: TAction 102 102 Caption = 'Fullscreen mode' … … 121 121 object AAbout: TAction 122 122 Caption = 'About' 123 OnExecute = AAboutExecute 123 124 end 124 125 object AShowRawImageDesc: TAction … … 127 128 end 128 129 end 129 object CoolTranslator1: TCoolTranslator130 POFilesFolder = 'Languages'131 left = 360132 top = 130133 end134 object ApplicationInfo1: TApplicationInfo135 Identification = 1136 VersionMajor = 1137 VersionMinor = 0138 VersionBugFix = 0139 VersionSuffix = 'alfa'140 CompanyName = 'Chronosoft'141 HomePage = 'https://app.zdechov.net/Tunneler/'142 AuthorsName = 'Chronos'143 EmailContact = 'robie@centrum.cz'144 AppName = 'Tunneler'145 ReleaseDate = 43573146 RegistryKey = '\Software\Chronosoft\Tunneler'147 RegistryRoot = rrKeyCurrentUser148 License = 'CC0'149 left = 124150 top = 220151 end152 130 object XMLConfig1: TXMLConfig 153 131 StartEmpty = False 154 132 RootName = 'CONFIG' 155 133 ReadOnly = False 156 left = 1 24157 top = 3 00134 left = 149 135 top = 360 158 136 end 159 137 end -
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); -
trunk/Forms/UNewGameForm.pas
r43 r44 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 ComCtrls, U Core;9 ComCtrls, UEngine; 10 10 11 11 type … … 81 81 82 82 uses 83 U MainForm;83 UCore; 84 84 85 85 { TNewGameForm } … … 275 275 procedure TNewGameForm.FormCreate(Sender: TObject); 276 276 begin 277 MainForm.CoolTranslator1.TranslateComponentRecursive(Self);277 Core.CoolTranslator1.TranslateComponentRecursive(Self); 278 278 Players := TPlayers.Create; 279 279 end;
Note:
See TracChangeset
for help on using the changeset viewer.