Changeset 62 for trunk/Forms
- Timestamp:
- Jan 5, 2023, 10:14:31 PM (23 months ago)
- Location:
- trunk/Forms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r59 r62 1 1 object FormMain: TFormMain 2 2 Left = 692 3 Height = 5363 Height = 617 4 4 Top = 479 5 Width = 6685 Width = 770 6 6 Caption = 'Tunneler' 7 ClientHeight = 5 068 ClientWidth = 6689 DesignTimePPI = 1 257 ClientHeight = 583 8 ClientWidth = 770 9 DesignTimePPI = 144 10 10 Menu = MainMenu1 11 11 OnClose = FormClose … … 19 19 object StatusBar1: TStatusBar 20 20 Left = 0 21 Height = 2 422 Top = 48223 Width = 66821 Height = 28 22 Top = 555 23 Width = 770 24 24 Panels = < 25 25 item 26 Width = 6426 Width = 74 27 27 end 28 28 item 29 Width = 6429 Width = 74 30 30 end 31 31 item 32 Width = 6432 Width = 74 33 33 end 34 34 item 35 Width = 6435 Width = 74 36 36 end 37 37 item 38 Width = 6438 Width = 74 39 39 end 40 40 item 41 Width = 6441 Width = 74 42 42 end 43 43 item 44 Width = 6444 Width = 74 45 45 end> 46 46 ParentFont = False … … 50 50 object Image1: TImage 51 51 Left = 0 52 Height = 48252 Height = 555 53 53 Top = 0 54 Width = 66854 Width = 770 55 55 Align = alClient 56 56 OnResize = Image1Resize … … 59 59 Interval = 50 60 60 OnTimer = TimerDrawTimer 61 Left = 1 2962 Top = 6661 Left = 149 62 Top = 76 63 63 end 64 64 object MainMenu1: TMainMenu 65 Left = 2 4066 Top = 2 165 Left = 276 66 Top = 24 67 67 object MenuItem1: TMenuItem 68 68 Caption = 'Game' … … 92 92 object TimerEngineTick: TTimer 93 93 Interval = 20 94 OnTimer = TimerEngineTickTimer 95 Left = 125 96 Top = 135 94 Left = 144 95 Top = 156 97 96 end 98 97 object ActionList1: TActionList 99 Left = 375100 Top = 4 298 Left = 432 99 Top = 48 101 100 object AFullScreen: TAction 102 101 Caption = 'Fullscreen mode' … … 132 131 RootName = 'CONFIG' 133 132 ReadOnly = False 134 Left = 1 29135 Top = 3 13133 Left = 149 134 Top = 361 136 135 end 137 136 object AboutDialog1: TAboutDialog … … 139 138 ThemeManager = Core.ThemeManager1 140 139 ApplicationInfo = Core.ApplicationInfo 141 Left = 267142 Top = 1 57140 Left = 308 141 Top = 181 143 142 end 144 143 end -
trunk/Forms/UFormMain.pas
r61 r62 51 51 procedure Image1Resize(Sender: TObject); 52 52 procedure TimerDrawTimer(Sender: TObject); 53 procedure TimerEngineTickTimer(Sender: TObject);54 53 private 55 54 StartTime: TDateTime; … … 58 57 procedure LoadConfig; 59 58 procedure SaveConfig; 59 procedure UpdateInterface; 60 60 public 61 61 PersistentForm: TPersistentForm; … … 110 110 end; 111 111 112 procedure TFormMain.TimerEngineTickTimer(Sender: TObject);113 begin114 //Engine.Tick;115 end;116 117 112 procedure TFormMain.LoadConfig; 118 113 begin … … 134 129 ForceDirectories(ExtractFileDir(XMLConfig1.Filename)); 135 130 XMLConfig1.Flush; 131 end; 132 133 procedure TFormMain.UpdateInterface; 134 begin 135 if FullScreenEnabled then Menu := nil 136 else Menu := MainMenu1; 137 {$IFDEF DEBUG} 138 StatusBar1.Visible := not FullScreenEnabled; 139 {$ENDIF} 136 140 end; 137 141 … … 169 173 procedure TFormMain.FormDestroy(Sender: TObject); 170 174 begin 175 TimerDraw.Enabled := False; 171 176 FreeAndNil(PersistentForm); 172 177 FreeAndNil(Engine); … … 177 182 FullScreenEnabled := not FullScreenEnabled; 178 183 PersistentForm.SetFullScreen(FullScreenEnabled); 184 UpdateInterface; 179 185 end; 180 186 … … 238 244 PersistentForm.Load(Self, False, True); 239 245 FullScreenEnabled := PersistentForm.FormFullScreen; 240 {$IFDEF DEBUG} 241 StatusBar1.Visible := True; 242 {$ENDIF} 246 UpdateInterface 243 247 end; 244 248
Note:
See TracChangeset
for help on using the changeset viewer.