Changeset 28 for trunk/Forms/UMainForm.pas
- Timestamp:
- Oct 3, 2011, 8:17:16 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UMainForm.pas
r24 r28 72 72 73 73 uses 74 UMapForm, UNewGameForm; 74 UMapForm, UNewGameForm, UDebugForm; 75 76 resourcestring 77 SRound = '%0:s of %1:s'; 75 78 76 79 { TMainForm } … … 91 94 // IntToStr(TPlayer(Engine.Players[0]).Direction); 92 95 StatusBar1.Panels[2].Text := FloatToStr(RoundTo(DrawDuration / OneMillisecond, -2)); 93 //StatusBar1.Panels[3].Text := IntToStr(TPlayer(Engine.Players[0]).Bullets.Count); 96 StatusBar1.Panels[3].Text := Format(SRound, [IntToStr(Engine.CurrentRound), 97 IntToStr(Engine.MaxRound)]); 94 98 finally 95 99 Engine.Lock.Release; … … 200 204 PersistentForm.Load(Self); 201 205 CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode('cs'); 206 DebugForm.Show; 202 207 end; 203 208 … … 209 214 procedure TMainForm.Image1Resize(Sender: TObject); 210 215 begin 211 Image1.Picture.Bitmap.SetSize(Image1.Width, Image1.Height); 212 Engine.ResizePlayerFrames; 216 try 217 Engine.Lock.Acquire; 218 Image1.Picture.Bitmap.SetSize(Image1.Width, Image1.Height); 219 Engine.ResizePlayerFrames; 220 finally 221 Engine.Lock.Release; 222 end; 213 223 end; 214 224
Note:
See TracChangeset
for help on using the changeset viewer.