Changeset 211 for trunk/Forms
- Timestamp:
- May 23, 2018, 8:53:58 PM (6 years ago)
- Location:
- trunk/Forms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormClient.lfm
r206 r211 7 7 ClientHeight = 621 8 8 ClientWidth = 775 9 DesignTimePPI = 1 209 DesignTimePPI = 144 10 10 OnClose = FormClose 11 11 OnCreate = FormCreate … … 17 17 object StatusBar1: TStatusBar 18 18 Left = 0 19 Height = 2820 Top = 59 319 Height = 30 20 Top = 591 21 21 Width = 775 22 22 Panels = < … … 34 34 object ToolBar1: TToolBar 35 35 Left = 0 36 Height = 59 336 Height = 591 37 37 Top = 0 38 38 Width = 32 … … 75 75 object PaintBox1: TPaintBox 76 76 Left = 32 77 Height = 59 377 Height = 591 78 78 Top = 0 79 79 Width = 743 -
trunk/Forms/UFormClient.pas
r207 r211 79 79 procedure SetClient(AValue: TClient); 80 80 procedure DoClientChange(Sender: TObject); 81 procedure DoGameEnd(Sender: TObject); 81 82 procedure DoTurnStart(Sender: TObject); 82 83 procedure DoMove(CellFrom, CellTo: TCell; var CountOnce, … … 231 232 FClient.OnTurnStart := DoTurnStart; 232 233 FClient.OnDestroy := DoClientDestroy; 234 FClient.OnGameEnd := DoGameEnd; 233 235 FClient.View.DestRect := TRect.CreateBounds(TPoint.Create(0, 0), TPoint.Create(PaintBox1.Width, PaintBox1.Height)); 234 236 end; … … 237 239 238 240 procedure TFormClient.DoClientChange(Sender: TObject); 241 begin 242 Redraw; 243 end; 244 245 procedure TFormClient.DoGameEnd(Sender: TObject); 239 246 begin 240 247 Redraw; … … 245 252 TurnActive := True; 246 253 Synchronize(UpdateInterface); 254 Synchronize(Redraw); 247 255 end; 248 256
Note:
See TracChangeset
for help on using the changeset viewer.