Changeset 211 for trunk/Forms/UFormClient.pas
- Timestamp:
- May 23, 2018, 8:53:58 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.