Changeset 53 for trunk/Forms
- Timestamp:
- Jan 4, 2022, 3:27:03 PM (3 years ago)
- Location:
- trunk/Forms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r52 r53 5 5 Width = 770 6 6 Caption = 'Tunneler' 7 ClientHeight = 58 87 ClientHeight = 584 8 8 ClientWidth = 770 9 9 DesignTimePPI = 144 … … 19 19 object StatusBar1: TStatusBar 20 20 Left = 0 21 Height = 3622 Top = 55 221 Height = 27 22 Top = 557 23 23 Width = 770 24 24 Panels = < … … 49 49 object Image1: TImage 50 50 Left = 0 51 Height = 55 251 Height = 557 52 52 Top = 0 53 53 Width = 770 … … 135 135 end 136 136 object AboutDialog1: TAboutDialog 137 CoolTranslator = Core.Translator1137 Translator = Core.Translator1 138 138 ThemeManager = Core.ThemeManager1 139 139 ApplicationInfo = Core.ApplicationInfo -
trunk/Forms/UFormMain.pas
r52 r53 55 55 procedure TimerEngineTickTimer(Sender: TObject); 56 56 private 57 OriginalBounds: TRect;58 OriginalWindowState: TWindowState;59 ScreenBounds: TRect;60 57 StartTime: TDateTime; 61 58 Drawing: Boolean; … … 92 89 StartTime := NowPrecise; 93 90 //Engine.Draw; 94 Engine.Lock.Acquire; 95 try 96 //StatusBar1.Panels[1].Text := IntToStr(TPlayer(Engine.Players[0]).Position.X) + ', ' + 97 // IntToStr(TPlayer(Engine.Players[0]).Position.Y) + ' ' + 98 // IntToStr(TPlayer(Engine.Players[0]).Direction); 99 StatusBar1.Panels[2].Text := FloatToStr(RoundTo(Engine.DrawDuration / OneMillisecond, -2)); 100 StatusBar1.Panels[3].Text := Format(SRound, [IntToStr(Engine.CurrentRound), 101 IntToStr(Engine.MaxRound)]); 102 finally 103 Engine.Lock.Release; 91 if Assigned(Engine) then begin 92 Engine.Lock.Acquire; 93 try 94 //StatusBar1.Panels[1].Text := IntToStr(TPlayer(Engine.Players[0]).Position.X) + ', ' + 95 // IntToStr(TPlayer(Engine.Players[0]).Position.Y) + ' ' + 96 // IntToStr(TPlayer(Engine.Players[0]).Direction); 97 StatusBar1.Panels[2].Text := FloatToStr(RoundTo(Engine.DrawDuration / OneMillisecond, -2)); 98 StatusBar1.Panels[3].Text := Format(SRound, [IntToStr(Engine.CurrentRound), 99 IntToStr(Engine.MaxRound)]); 100 finally 101 Engine.Lock.Release; 102 end; 104 103 end; 105 104 finally
Note:
See TracChangeset
for help on using the changeset viewer.