Changeset 325 for trunk/LocalPlayer/CityScreen.pas
- Timestamp:
- Mar 23, 2021, 10:49:30 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/CityScreen.pas
r324 r325 5 5 6 6 uses 7 {$IFDEF LINUX} 8 LMessages, 9 {$ENDIF} 7 {$IFDEF LINUX}LMessages,{$ENDIF} 10 8 Protocol, ClientTools, Term, ScreenTools, IsoEngine, BaseWin, 11 9 LCLIntf, LCLType, Messages, SysUtils, Classes, Graphics, Controls, Forms, ExtCtrls, … … 53 51 procedure PageUpBtnClick(Sender: TObject); 54 52 procedure PageDownBtnClick(Sender: TObject); 55 53 private 54 c: TCity; 55 Report: TCityReportNew; 56 cOwner: Integer; 57 cGov: Integer; 58 emix: Integer; { enemy model index of produced unit } 59 cix: Integer; 60 cLoc: Integer; 61 Mode: Integer; 62 ZoomArea: Integer; 63 Page: Integer; 64 PageCount: Integer; 65 BlinkTime: Integer; 66 OpenSoundEvent: Integer; 67 SizeClass: Integer; 68 AgePrepared: Integer; 69 Optimize_cixTileChange: Integer; 70 Optimize_TilesBeforeChange: Integer; 71 Happened: cardinal; 72 imix: array [0 .. 15] of integer; 73 CityAreaInfo: TCityAreaInfo; 74 AreaMap: TIsoMap; 75 CityMapTemplate: TBitmap; 76 SmallCityMapTemplate: TBitmap; 77 Back: TBitmap; 78 SmallCityMap: TBitmap; 79 ZoomCityMap: TBitmap; 80 Template: TBitmap; 81 IsPort: Boolean; 82 ProdHint: Boolean; 83 AllowChange: Boolean; 84 procedure InitSmallCityMap; 85 procedure InitZoomCityMap; 86 procedure ChooseProject; 87 procedure ChangeCity(d: integer); 88 procedure ChangeResourceWeights(iResourceWeights: integer); 89 procedure OnPlaySound(var Msg: TMessage); message WM_PLAYSOUND; 56 90 public 57 91 RestoreUnFocus: integer; … … 61 95 procedure Reset; 62 96 procedure CheckAge; 63 64 private65 c: TCity;66 Report: TCityReportNew;67 cOwner, cGov, emix { enemy model index of produced unit } , cix, cLoc, Mode,68 ZoomArea, Page, PageCount, BlinkTime, OpenSoundEvent, SizeClass,69 AgePrepared: integer;70 Optimize_cixTileChange, Optimize_TilesBeforeChange: integer;71 Happened: cardinal;72 imix: array [0 .. 15] of integer;73 CityAreaInfo: TCityAreaInfo;74 AreaMap: TIsoMap;75 CityMapTemplate, SmallCityMapTemplate, Back, SmallCityMap, ZoomCityMap,76 Template: TBitmap;77 IsPort, ProdHint, AllowChange: boolean;78 procedure InitSmallCityMap;79 procedure InitZoomCityMap;80 procedure ChooseProject;81 procedure ChangeCity(d: integer);82 procedure ChangeResourceWeights(iResourceWeights: integer);83 procedure OnPlaySound(var Msg: TMessage); message WM_PLAYSOUND;84 97 end; 85 98 … … 87 100 CityDlg: TCityDlg; 88 101 102 89 103 implementation 90 104 91 105 uses 92 Select, Messg, MessgEx, Help, Tribes, Directories, Math, UPixelPointer,Sound;106 Select, Messg, MessgEx, Help, Tribes, Directories, Math, Sound; 93 107 94 108 {$R *.lfm} … … 278 292 c := MyCity[cix]; 279 293 case MyMap[cLoc] and fTerrain of 280 fPrairie: 281 cli1 := cliPrairie; 282 fHills: 283 cli1 := cliHills; 284 fTundra: 285 cli1 := cliTundra; 294 fPrairie: cli1 := cliPrairie; 295 fHills: cli1 := cliHills; 296 fTundra: cli1 := cliTundra; 286 297 else 287 298 cli1 := cliPlains; … … 1340 1351 not csResourceWeightsMask; // off 1341 1352 c.Status := MyCity[cix].Status; 1342 SmartUpdateContent 1353 SmartUpdateContent; 1343 1354 end; 1344 1355 exit; … … 1737 1748 begin 1738 1749 dec(Page); 1739 SmartUpdateContent 1750 SmartUpdateContent; 1740 1751 end; 1741 1752 end; … … 1746 1757 begin 1747 1758 inc(Page); 1748 SmartUpdateContent 1759 SmartUpdateContent; 1749 1760 end; 1750 1761 end;
Note:
See TracChangeset
for help on using the changeset viewer.