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

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/UnitStat.pas

    r531 r536  
    305305        S := Phrases.Lookup('UNITSPECIAL');
    306306        Font.Color := $000000;
    307         Textout(X - 1, Y + 1, S);
     307        TextOut(X - 1, Y + 1, S);
    308308        Font.Color := $B0B0B0;
    309         Textout(X - 2, Y, S);
     309        TextOut(X - 2, Y, S);
    310310      end
    311311      else
     
    346346              FillRect(Rect(X - 3 + dx, Y + 2, X + W - 1 + dx, Y + 16));
    347347              Brush.Style := TBrushStyle.bsClear;
    348               Textout(X - 3 + dx + 1, Y, S);
     348              TextOut(X - 3 + dx + 1, Y, S);
    349349              Inc(dx, W + 1);
    350350            end;
     
    364364    DLine(Dst.Canvas, X - 2, X + 170, Y + 16, T.ColorBevelShade, T.ColorBevelLight);
    365365    LoweredTextOut(Dst.Canvas, -1, T, X - 2, Y, Cap);
    366     RisedTextout(Dst.Canvas, X + 170 - BiColorTextWidth(Dst.Canvas, S), Y, S);
     366    RisedTextOut(Dst.Canvas, X + 170 - BiColorTextWidth(Dst.Canvas, S), Y, S);
    367367  end;
    368368
     
    559559            LightGradient(Offscreen.Canvas, xView - 45, yView + 24, 38,
    560560              (ColorOfHealth(Health) and $FEFEFE shr 2) * 3);
    561             RisedTextout(Offscreen.Canvas, xView - 45 + 20 -
     561            RisedTextOut(Offscreen.Canvas, xView - 45 + 20 -
    562562              BiColorTextWidth(Offscreen.Canvas, S) div 2, yView + 23, S);
    563563          end;
     
    579579
    580580      DarkGradient(Offscreen.Canvas, xTotal - 6, yTotal + 1, 180, 2);
    581       RisedTextout(Offscreen.Canvas, xTotal - 2, yTotal,
     581      RisedTextOut(Offscreen.Canvas, xTotal - 2, yTotal,
    582582        Phrases.Lookup('UNITSTRENGTH'));
    583583      S := IntToStr(mi.Attack) + '/' + IntToStr(mi.Defense);
    584       RisedTextout(Offscreen.Canvas,
     584      RisedTextOut(Offscreen.Canvas,
    585585        xTotal + 170 - BiColorTextWidth(Offscreen.Canvas, S), yTotal, S);
    586586      FeatureBar(Offscreen, xTotal, yTotal + 19, mi, MainTexture);
     
    595595      else
    596596        S := IntToStr(mi.cost * BuildCostMod[G.Difficulty[Me]] div 12);
    597       RisedTextout(Offscreen.Canvas,
     597      RisedTextOut(Offscreen.Canvas,
    598598        xTotal + 159 - BiColorTextWidth(Offscreen.Canvas, S), yTotal + 57, S);
    599599      Sprite(Offscreen, HGrSystem, xTotal + 160, yTotal + 57 + 5, 10,
     
    614614            MainTexture.ColorTextLight);
    615615          S := TurnToString(MyModel[mixShow].IntroTurn);
    616           RisedTextout(Offscreen.Canvas,
     616          RisedTextOut(Offscreen.Canvas,
    617617            xTotal + 170 - BiColorTextWidth(Offscreen.Canvas, S),
    618618            (yTotal + StatDown - 19), S);
     
    673673      yCaption := 79;
    674674  end;
    675   RisedTextout(Offscreen.Canvas,
     675  RisedTextOut(Offscreen.Canvas,
    676676    (ClientWidth - BiColorTextWidth(Offscreen.Canvas, Caption)) div 2,
    677677    yCaption, Caption);
Note: See TracChangeset for help on using the changeset viewer.