Changeset 268 for trunk/Forms/UFormClient.pas
- Timestamp:
- Jan 20, 2019, 9:32:16 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormClient.pas
r265 r268 254 254 ) 255 255 ); 256 Client.DrawCities(PaintBox1.Canvas, TempView); 257 end; 258 end; 259 for Y := 0 to CountP.Y do begin 260 for X := 0 to CountP.X do begin 261 TempView.Assign(View); 262 TempView.DestRect := TRect.Create( 263 TPoint.Create( 264 -StartP.X + R.Size.X * X, 265 -StartP.Y + R.Size.Y * Y 266 ), 267 TPoint.Create( 268 -StartP.X + R.Size.X * X + View.DestRect.Size.X, 269 -StartP.Y + R.Size.Y * Y + View.DestRect.Size.Y 270 ) 271 ); 272 Client.DrawSelection(PaintBox1.Canvas, TempView); 273 end; 274 end; 275 TempView.Free; 276 for Y := 0 to CountP.Y do begin 277 for X := 0 to CountP.X do begin 278 TempView.Assign(View); 279 TempView.DestRect := TRect.Create( 280 TPoint.Create( 281 -StartP.X + R.Size.X * X, 282 -StartP.Y + R.Size.Y * Y 283 ), 284 TPoint.Create( 285 -StartP.X + R.Size.X * X + View.DestRect.Size.X, 286 -StartP.Y + R.Size.Y * Y + View.DestRect.Size.Y 287 ) 288 ); 256 289 Client.DrawArrows(PaintBox1.Canvas, TempView); 257 290 end; 258 291 end; 259 TempView.Free;260 292 end else begin 261 293 Client.DrawCellLinks(PaintBox1.Canvas, View); 262 294 Client.Paint(PaintBox1.Canvas, View); 295 Client.DrawCities(PaintBox1.Canvas, View); 296 Client.DrawSelection(PaintBox1.Canvas, View); 263 297 Client.DrawArrows(PaintBox1.Canvas, View); 264 298 end; … … 316 350 FClient.OnNextPlayer := DoNextPlayer; 317 351 FClient.View.DestRect := TRect.CreateBounds(TPoint.Create(0, 0), TPoint.Create(PaintBox1.Width, PaintBox1.Height)); 352 FClient.ShowCellGrid := Core.ShowCellGrid; 318 353 end; 319 354 Redraw;
Note:
See TracChangeset
for help on using the changeset viewer.