Changeset 62 for trunk/Forms/UFormMain.pas
- Timestamp:
- Jan 5, 2023, 10:14:31 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.