Ignore:
Timestamp:
Apr 15, 2024, 8:59:23 PM (7 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/IsoEngine.pas

    r533 r536  
    7676    procedure PaintGrid(X, Y, nx, ny: Integer);
    7777    procedure FillRect(X, Y, Width, Height, Color: Integer);
    78     procedure Textout(X, Y, Color: Integer; const S: string);
     78    procedure TextOut(X, Y, Color: Integer; const S: string);
    7979    procedure Sprite(HGr: TGraphicSet; xDst, yDst, Width, Height, xGr, yGr: Integer);
    8080    procedure TSprite(xDst, yDst, grix: Integer; PureBlack: Boolean = False);
     
    581581end;
    582582
    583 procedure TIsoMap.Textout(X, Y, Color: Integer; const S: string);
     583procedure TIsoMap.TextOut(X, Y, Color: Integer; const S: string);
    584584begin
    585585  FOutput.Canvas.Font.Color := Color;
     
    797797      LabelTextColor := $000000;
    798798    end;
    799     Textout(xShield + 2, yShield - 1, LabelTextColor, S);
     799    TextOut(xShield + 2, yShield - 1, LabelTextColor, S);
    800800  end;
    801801end;
     
    10761076      if IsCapital then
    10771077        FOutput.Canvas.Font.Style := FOutput.Canvas.Font.Style + [TFontStyle.fsUnderline];
    1078       Textout(xs + 1, Y - 9, $000000, S);
    1079       Textout(xs, Y - 10, $FFFFFF, S);
     1078      TextOut(xs + 1, Y - 9, $000000, S);
     1079      TextOut(xs, Y - 10, $FFFFFF, S);
    10801080      if IsCapital then
    10811081        FOutput.Canvas.Font.Style := FOutput.Canvas.Font.Style - [TFontStyle.fsUnderline];
     
    12721272            PaintUnit(X + (xxt - xxu), Y + (yyt - yyu_anchor), UnitInfo,
    12731273              MyUn[uix].Status);
    1274           // if Showuix then Textout(x + 16, y + 5, $80FF00, IntToStr(uix));
     1274          // if Showuix then TextOut(x + 16, y + 5, $80FF00, IntToStr(uix));
    12751275        end
    12761276        else {$ENDIF} PaintUnit(X + (xxt - xxu), Y + (yyt - yyu_anchor), UnitInfo, 0);
     
    12901290  if (Loc >= 0) and (Loc < G.lx * G.ly) then
    12911291    if ShowLoc then
    1292       Textout(X + xxt - 16, Y + yyt - 9, $FFFF00, IntToStr(Loc))
     1292      TextOut(X + xxt - 16, Y + yyt - 9, $FFFF00, IntToStr(Loc))
    12931293    else if ShowDebug and (DebugMap <> nil) and (Loc >= 0) and
    12941294      (Loc < G.lx * G.ly) and (DebugMap[Loc] <> 0) then
    1295       Textout(X + xxt - 16, Y + yyt - 9, $00E0FF,
     1295      TextOut(X + xxt - 16, Y + yyt - 9, $00E0FF,
    12961296        IntToStr(Integer(DebugMap[Loc])))
    12971297end;
Note: See TracChangeset for help on using the changeset viewer.