Changeset 536 for trunk/LocalPlayer
- Timestamp:
- Apr 15, 2024, 8:59:23 PM (7 months ago)
- Location:
- trunk/LocalPlayer
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/CityScreen.pas
r530 r536 579 579 J := Pos('\', S); 580 580 if J = 0 then 581 LoweredText out(Offscreen.Canvas, -1, MainTexture, xmOpt + 40,581 LoweredTextOut(Offscreen.Canvas, -1, MainTexture, xmOpt + 40, 582 582 ymOpt - 9, S) 583 583 else 584 584 begin 585 LoweredText out(Offscreen.Canvas, -1, MainTexture, xmOpt + 40,585 LoweredTextOut(Offscreen.Canvas, -1, MainTexture, xmOpt + 40, 586 586 ymOpt - 17, Copy(S, 1, J - 1)); 587 LoweredText out(Offscreen.Canvas, -1, MainTexture, xmOpt + 40, ymOpt - 1,587 LoweredTextOut(Offscreen.Canvas, -1, MainTexture, xmOpt + 40, ymOpt - 1, 588 588 Copy(S, J + 1, 255)); 589 589 end; … … 718 718 CutCityFoodSurplus(Report.FoodSurplus, IsCityAlive, cGov, C.Size), 719 719 Report.Storage, 1, CanGrow); 720 LoweredText out(Offscreen.Canvas, -1, MainTexture, xFood + 3 - 5,720 LoweredTextOut(Offscreen.Canvas, -1, MainTexture, xFood + 3 - 5, 721 721 yFood + 102 - 20, Format('%d/%d', [TrueFood, Report.Storage])); 722 LoweredText out(Offscreen.Canvas, -1, MainTexture, xFood - 2, yFood + 66,722 LoweredTextOut(Offscreen.Canvas, -1, MainTexture, xFood - 2, yFood + 66, 723 723 Phrases.Lookup('STORAGE')); 724 724 … … 751 751 I := 0; 752 752 FillBar(xProd + 3, yProd + 16 + 63, TrueProd, I, PrCost, 4, True); 753 LoweredText out(Offscreen.Canvas, -1, MainTexture, xProd + 3 - 5,753 LoweredTextOut(Offscreen.Canvas, -1, MainTexture, xProd + 3 - 5, 754 754 yProd + 16 + 43, Format('%d/%d', [TrueProd, PrCost])); 755 755 if BiColorTextWidth(Offscreen.Canvas, PrName) > wBar + dxBar then … … 912 912 else { if SmallMapMode = smSupportedUnits then } 913 913 begin 914 LoweredText out(Offscreen.Canvas, -1, MainTexture, xZoomMap + 6,914 LoweredTextOut(Offscreen.Canvas, -1, MainTexture, xZoomMap + 6, 915 915 yZoomMap + 2, Phrases.Lookup('SUPUNITS')); 916 916 FreeSupp := C.Size * SupportFree[cGov] shr 1; -
trunk/LocalPlayer/CityType.pas
r531 r536 134 134 S := IntToStr(I + 1); 135 135 Font.Color := MainTexture.ColorTextLight; 136 Text out(xList + 20 + I mod nListCol * 42 - TextWidth(S) div 2,136 TextOut(xList + 20 + I mod nListCol * 42 - TextWidth(S) div 2, 137 137 yList + 15 + I div nListCol * 32 - TextHeight(S) div 2, S); 138 138 end; -
trunk/LocalPlayer/Diagram.pas
r522 r536 220 220 LineTo(X, InnerHeight - Border); 221 221 S := IntToStr(Abs(TurnToYear(T * LineStep))); 222 Text out(X - TextWidth(S) div 2, Border - 16, S);222 TextOut(X - TextWidth(S) div 2, Border - 16, S); 223 223 end; 224 224 -
trunk/LocalPlayer/Draft.pas
r531 r536 171 171 xTotal2 + W - 1 - dx, Y + 16)); 172 172 Brush.Style := TBrushStyle.bsClear; 173 Text out(xTotal2 - 3 - dx + 1, Y, S);173 TextOut(xTotal2 - 3 - dx + 1, Y, S); 174 174 end; 175 175 end; -
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; -
trunk/LocalPlayer/NatStat.pas
r531 r536 266 266 267 267 Offscreen.Canvas.Font.Assign(UniFont[ftCaption]); 268 RisedText out(Offscreen.Canvas,269 40 { (ClientWidth -BiColorTextWidth(offscreen.canvas,caption)) div 2 },268 RisedTextOut(Offscreen.Canvas, 269 40 { (ClientWidth - BiColorTextWidth(Offscreen.Canvas,Caption)) div 2 }, 270 270 7, Caption); 271 271 … … 383 383 begin 384 384 S := Phrases.Lookup('FRNOCIVILREP'); 385 RisedText out(Canvas, (ClientWidth - BiColorTextWidth(Canvas, S)) div 2,385 RisedTextOut(Canvas, (ClientWidth - BiColorTextWidth(Canvas, S)) div 2, 386 386 yReport + hReport div 2 - 10, S); 387 387 end; -
trunk/LocalPlayer/Select.pas
r531 r536 242 242 CityReport: TCityReportNew; 243 243 mox: ^TModelInfo; 244 S, number: string;244 S, Number: string; 245 245 CanGrow: Boolean; 246 246 begin … … 363 363 y0 + 2, 131, 3); 364 364 ca.Font.Assign(UniFont[ftSmall]); 365 RisedText out(Offscreen.Canvas, 103 + CityNameSpace + 4 + 31,365 RisedTextOut(Offscreen.Canvas, 103 + CityNameSpace + 4 + 31, 366 366 y0 + 1, S); 367 367 ca.Font.Assign(UniFont[ftNormal]); … … 652 652 else if (Kind = kScience) and (FutureCount > 0) then 653 653 begin 654 number := IntToStr(FutureCount);655 RisedText out(ca, 104 - 33 + 15 + 10 + TechNameSpace + 24 * J -656 BiColorTextWidth(ca, number) div 2, y0, number);654 Number := IntToStr(FutureCount); 655 RisedTextOut(ca, 104 - 33 + 15 + 10 + TechNameSpace + 24 * J - 656 BiColorTextWidth(ca, Number) div 2, y0, Number); 657 657 end; 658 658 end; -
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.