Changeset 51 for trunk/Forms
- Timestamp:
- Dec 20, 2021, 6:45:12 PM (3 years ago)
- Location:
- trunk/Forms
- Files:
-
- 3 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormNewGame.pas
r47 r51 288 288 procedure TFormNewGame.FormCreate(Sender: TObject); 289 289 begin 290 Core. CoolTranslator1.TranslateComponentRecursive(Self);290 Core.Translator1.TranslateComponentRecursive(Self); 291 291 Players := TPlayers.Create; 292 292 end; -
trunk/Forms/UMainForm.lfm
r47 r51 1 1 object MainForm: TMainForm 2 Left = 4863 Height = 5154 Top = 2585 Width = 6422 Left = 692 3 Height = 618 4 Top = 479 5 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 … … 16 16 OnKeyUp = FormKeyUp 17 17 OnShow = FormShow 18 LCLVersion = '2.0. 2.0'18 LCLVersion = '2.0.12.0' 19 19 object StatusBar1: TStatusBar 20 20 Left = 0 21 Height = 2 822 Top = 46223 Width = 64221 Height = 27 22 Top = 557 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 = 557 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 = 12462 top = 6361 Left = 149 62 Top = 76 63 63 end 64 64 object MainMenu1: TMainMenu 65 left = 23066 top = 2065 Left = 276 66 Top = 24 67 67 object MenuItem1: TMenuItem 68 68 Caption = 'Game' … … 93 93 Interval = 20 94 94 OnTimer = TimerEngineTickTimer 95 left = 12096 top = 13095 Left = 144 96 Top = 156 97 97 end 98 98 object ActionList1: TActionList 99 left = 360100 top = 4099 Left = 432 100 Top = 48 101 101 object AFullScreen: TAction 102 102 Caption = 'Fullscreen mode' … … 132 132 RootName = 'CONFIG' 133 133 ReadOnly = False 134 left = 124 135 top = 300 134 Left = 149 135 Top = 360 136 end 137 object AboutDialog1: TAboutDialog 138 CoolTranslator = Core.Translator1 139 ThemeManager = Core.ThemeManager1 140 ApplicationInfo = Core.ApplicationInfo 141 Left = 308 142 Top = 181 136 143 end 137 144 end -
trunk/Forms/UMainForm.pas
r47 r51 8 8 XMLConf, Classes, SysUtils, FileUtil, Forms, Controls, Graphics, 9 9 Dialogs, ExtCtrls, ComCtrls, Menus, ActnList, UEngine, UPlatform, Math, 10 DateUtils, GraphType, UPersistentForm, UApplicationInfo, U CoolTranslator,11 LCLType, URegistry ;10 DateUtils, GraphType, UPersistentForm, UApplicationInfo, UTranslator, 11 LCLType, URegistry, UAboutDialog; 12 12 13 13 type … … 17 17 TMainForm = class(TForm) 18 18 AAbout: TAction; 19 AboutDialog1: TAboutDialog; 19 20 AShowRawImageDesc: TAction; 20 21 AShowMap: TAction; … … 143 144 Engine := TEngine.Create; 144 145 Engine.Bitmap := Image1.Picture.Bitmap; 145 Core. CoolTranslator1.Language := Core.CoolTranslator1.Languages.SearchByCode('cs');146 Core.Translator1.Language := Core.Translator1.Languages.SearchByCode('cs'); 146 147 LoadConfig; 147 148 Engine.NewGame; … … 221 222 procedure TMainForm.AAboutExecute(Sender: TObject); 222 223 begin 223 FormAbout := TFormAbout.Create(nil); 224 FormAbout.ShowModal; 225 FreeAndNil(FormAbout); 224 AboutDialog1.Show; 226 225 end; 227 226
Note:
See TracChangeset
for help on using the changeset viewer.