Changeset 486 for trunk/LocalPlayer/Select.pas
- Timestamp:
- Dec 8, 2023, 8:25:31 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Select.pas
r474 r486 238 238 239 239 var 240 icon, ofs, X, Y, y0, lix, I, J, TextColor, Available, first, Test,241 FutureCount, growth, TrueFood, TrueProd: Integer;240 icon, ofs, X, Y, y0, lix, I, J, TextColor, Available, First, Test, 241 FutureCount, Growth, TrueFood, TrueProd: Integer; 242 242 CityReport: TCityReportNew; 243 243 mox: ^TModelInfo; … … 253 253 254 254 if Kind in [kCities, kCityEvents] then 255 with MyCity[lix]do255 with TCity(MyCity[lix]) do 256 256 begin 257 257 X := 104 - 76; … … 281 281 Font.Color := $000000; 282 282 S := IntToStr(MyCity[lix].Size); 283 TextOut(X - 4 - textwidth(S) div 2, Y, S);283 TextOut(X - 4 - TextWidth(S) div 2, Y, S); 284 284 end; 285 285 … … 402 402 ((Size < NeedAqueductSize) or (Built[imAqueduct] = 1) and 403 403 (Size < NeedSewerSize) or (Built[imSewer] = 1)); 404 Growth := CutCityFoodSurplus(CityReport.FoodSurplus, 405 (MyRO.Government <> gAnarchy) and (Flags and chCaptured = 0), 406 MyRO.Government, Size); 404 407 PaintRelativeProgressBar(Offscreen.Canvas, 1, X + 15 + CityNameSpace + 405 4, Y + 7, 68, TrueFood, CutCityFoodSurplus(CityReport.FoodSurplus, 406 (MyRO.Government <> gAnarchy) and (Flags and chCaptured = 0), 407 MyRO.Government, Size), CityReport.Storage, CanGrow, MainTexture); 408 4, Y + 7, 68, TrueFood, Growth, CityReport.Storage, CanGrow, MainTexture); 408 409 409 410 if Project <> cpImp + imTrGoods then … … 413 414 414 415 // production progress 415 growth := CityReport.Production;416 if ( growth < 0) or (MyRO.Government = gAnarchy) or416 Growth := CityReport.Production; 417 if (Growth < 0) or (MyRO.Government = gAnarchy) or 417 418 (Flags and chCaptured <> 0) then 418 growth := 0;419 Growth := 0; 419 420 PaintRelativeProgressBar(Offscreen.Canvas, 4, 420 X + CityNameSpace + 4 + 304 - 60 + 9, Y + 7, 68, TrueProd, growth,421 X + CityNameSpace + 4 + 304 - 60 + 9, Y + 7, 68, TrueProd, Growth, 421 422 CityReport.ProjectCost, True, MainTexture); 422 423 end;
Note:
See TracChangeset
for help on using the changeset viewer.