Changeset 536 for trunk/LocalPlayer/IsoEngine.pas
- Timestamp:
- Apr 15, 2024, 8:59:23 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/IsoEngine.pas
r533 r536 76 76 procedure PaintGrid(X, Y, nx, ny: Integer); 77 77 procedure FillRect(X, Y, Width, Height, Color: Integer); 78 procedure Text out(X, Y, Color: Integer; const S: string);78 procedure TextOut(X, Y, Color: Integer; const S: string); 79 79 procedure Sprite(HGr: TGraphicSet; xDst, yDst, Width, Height, xGr, yGr: Integer); 80 80 procedure TSprite(xDst, yDst, grix: Integer; PureBlack: Boolean = False); … … 581 581 end; 582 582 583 procedure TIsoMap.Text out(X, Y, Color: Integer; const S: string);583 procedure TIsoMap.TextOut(X, Y, Color: Integer; const S: string); 584 584 begin 585 585 FOutput.Canvas.Font.Color := Color; … … 797 797 LabelTextColor := $000000; 798 798 end; 799 Text out(xShield + 2, yShield - 1, LabelTextColor, S);799 TextOut(xShield + 2, yShield - 1, LabelTextColor, S); 800 800 end; 801 801 end; … … 1076 1076 if IsCapital then 1077 1077 FOutput.Canvas.Font.Style := FOutput.Canvas.Font.Style + [TFontStyle.fsUnderline]; 1078 Text out(xs + 1, Y - 9, $000000, S);1079 Text out(xs, Y - 10, $FFFFFF, S);1078 TextOut(xs + 1, Y - 9, $000000, S); 1079 TextOut(xs, Y - 10, $FFFFFF, S); 1080 1080 if IsCapital then 1081 1081 FOutput.Canvas.Font.Style := FOutput.Canvas.Font.Style - [TFontStyle.fsUnderline]; … … 1272 1272 PaintUnit(X + (xxt - xxu), Y + (yyt - yyu_anchor), UnitInfo, 1273 1273 MyUn[uix].Status); 1274 // if Showuix then Text out(x + 16, y + 5, $80FF00, IntToStr(uix));1274 // if Showuix then TextOut(x + 16, y + 5, $80FF00, IntToStr(uix)); 1275 1275 end 1276 1276 else {$ENDIF} PaintUnit(X + (xxt - xxu), Y + (yyt - yyu_anchor), UnitInfo, 0); … … 1290 1290 if (Loc >= 0) and (Loc < G.lx * G.ly) then 1291 1291 if ShowLoc then 1292 Text out(X + xxt - 16, Y + yyt - 9, $FFFF00, IntToStr(Loc))1292 TextOut(X + xxt - 16, Y + yyt - 9, $FFFF00, IntToStr(Loc)) 1293 1293 else if ShowDebug and (DebugMap <> nil) and (Loc >= 0) and 1294 1294 (Loc < G.lx * G.ly) and (DebugMap[Loc] <> 0) then 1295 Text out(X + xxt - 16, Y + yyt - 9, $00E0FF,1295 TextOut(X + xxt - 16, Y + yyt - 9, $00E0FF, 1296 1296 IntToStr(Integer(DebugMap[Loc]))) 1297 1297 end;
Note:
See TracChangeset
for help on using the changeset viewer.