Changeset 536 for trunk/LocalPlayer/UnitStat.pas
- Timestamp:
- Apr 15, 2024, 8:59:23 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/UnitStat.pas
r531 r536 305 305 S := Phrases.Lookup('UNITSPECIAL'); 306 306 Font.Color := $000000; 307 Text out(X - 1, Y + 1, S);307 TextOut(X - 1, Y + 1, S); 308 308 Font.Color := $B0B0B0; 309 Text out(X - 2, Y, S);309 TextOut(X - 2, Y, S); 310 310 end 311 311 else … … 346 346 FillRect(Rect(X - 3 + dx, Y + 2, X + W - 1 + dx, Y + 16)); 347 347 Brush.Style := TBrushStyle.bsClear; 348 Text out(X - 3 + dx + 1, Y, S);348 TextOut(X - 3 + dx + 1, Y, S); 349 349 Inc(dx, W + 1); 350 350 end; … … 364 364 DLine(Dst.Canvas, X - 2, X + 170, Y + 16, T.ColorBevelShade, T.ColorBevelLight); 365 365 LoweredTextOut(Dst.Canvas, -1, T, X - 2, Y, Cap); 366 RisedText out(Dst.Canvas, X + 170 - BiColorTextWidth(Dst.Canvas, S), Y, S);366 RisedTextOut(Dst.Canvas, X + 170 - BiColorTextWidth(Dst.Canvas, S), Y, S); 367 367 end; 368 368 … … 559 559 LightGradient(Offscreen.Canvas, xView - 45, yView + 24, 38, 560 560 (ColorOfHealth(Health) and $FEFEFE shr 2) * 3); 561 RisedText out(Offscreen.Canvas, xView - 45 + 20 -561 RisedTextOut(Offscreen.Canvas, xView - 45 + 20 - 562 562 BiColorTextWidth(Offscreen.Canvas, S) div 2, yView + 23, S); 563 563 end; … … 579 579 580 580 DarkGradient(Offscreen.Canvas, xTotal - 6, yTotal + 1, 180, 2); 581 RisedText out(Offscreen.Canvas, xTotal - 2, yTotal,581 RisedTextOut(Offscreen.Canvas, xTotal - 2, yTotal, 582 582 Phrases.Lookup('UNITSTRENGTH')); 583 583 S := IntToStr(mi.Attack) + '/' + IntToStr(mi.Defense); 584 RisedText out(Offscreen.Canvas,584 RisedTextOut(Offscreen.Canvas, 585 585 xTotal + 170 - BiColorTextWidth(Offscreen.Canvas, S), yTotal, S); 586 586 FeatureBar(Offscreen, xTotal, yTotal + 19, mi, MainTexture); … … 595 595 else 596 596 S := IntToStr(mi.cost * BuildCostMod[G.Difficulty[Me]] div 12); 597 RisedText out(Offscreen.Canvas,597 RisedTextOut(Offscreen.Canvas, 598 598 xTotal + 159 - BiColorTextWidth(Offscreen.Canvas, S), yTotal + 57, S); 599 599 Sprite(Offscreen, HGrSystem, xTotal + 160, yTotal + 57 + 5, 10, … … 614 614 MainTexture.ColorTextLight); 615 615 S := TurnToString(MyModel[mixShow].IntroTurn); 616 RisedText out(Offscreen.Canvas,616 RisedTextOut(Offscreen.Canvas, 617 617 xTotal + 170 - BiColorTextWidth(Offscreen.Canvas, S), 618 618 (yTotal + StatDown - 19), S); … … 673 673 yCaption := 79; 674 674 end; 675 RisedText out(Offscreen.Canvas,675 RisedTextOut(Offscreen.Canvas, 676 676 (ClientWidth - BiColorTextWidth(Offscreen.Canvas, Caption)) div 2, 677 677 yCaption, Caption);
Note:
See TracChangeset
for help on using the changeset viewer.