Changeset 72 for trunk/UEngine.pas
- Timestamp:
- Jan 11, 2023, 5:18:36 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UEngine.pas
r71 r72 219 219 procedure SetActive(const AValue: Boolean); 220 220 procedure SetBitmap(const AValue: TBitmap); 221 procedure Redraw;222 221 function IsInsideHouses(Pos: TPoint): Boolean; 223 222 procedure InitPlayers; 224 223 procedure CheckGameEnd; 224 procedure ClearBackground; 225 225 procedure DrawMenu; 226 226 procedure DrawStats; … … 250 250 procedure ResizePlayerFrames; 251 251 procedure Tick; 252 procedure Redraw; 252 253 procedure Draw; 253 254 procedure DrawThread(Thread: TVirtualThread); … … 1211 1212 begin 1212 1213 with Bitmap.Canvas do begin 1213 Brush.Style := bsSolid; 1214 Brush.Color := clBlack; 1215 Clear; 1214 ClearBackground; 1216 1215 1217 1216 X := Bitmap.Width div 2; … … 1257 1256 begin 1258 1257 with Bitmap.Canvas do begin 1259 Brush.Style := bsSolid; 1260 Brush.Color := clBlack; 1261 Clear; 1258 ClearBackground; 1262 1259 1263 1260 X := Bitmap.Width div 2; … … 1308 1305 begin 1309 1306 with Bitmap.Canvas do begin 1310 Brush.Style := bsSolid; 1311 Brush.Color := clBlack; 1312 Clear; 1307 ClearBackground; 1313 1308 1314 1309 Brush.Style := bsClear; … … 1607 1602 end; 1608 1603 1609 procedure TEngine.DrawMenu; 1610 var 1611 Text: string; 1612 MenuWidth: Integer; 1604 procedure TEngine.ClearBackground; 1613 1605 begin 1614 1606 with Bitmap.Canvas do begin 1615 1607 Brush.Style := bsSolid; 1616 1608 Brush.Color := clBlack; 1617 Clear; 1609 FillRect(0, 0, Bitmap.Width, Bitmap.Height); 1610 end; 1611 end; 1612 1613 procedure TEngine.DrawMenu; 1614 var 1615 Text: string; 1616 MenuWidth: Integer; 1617 begin 1618 with Bitmap.Canvas do begin 1619 ClearBackground; 1618 1620 1619 1621 if FShowMenuStats then begin
Note:
See TracChangeset
for help on using the changeset viewer.