Changeset 325 for trunk/LocalPlayer/Term.pas
- Timestamp:
- Mar 23, 2021, 10:49:30 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Term.pas
r321 r325 224 224 procedure MovieSpeedBtnClick(Sender: TObject); 225 225 private 226 xw, yw, xwd, ywd, xwMini, ywMini, xMidPanel, xRightPanel, xTroop, xTerrain, 227 xMini, yMini, ywmax, ywcenter, TroopLoc, TrCnt, TrRow, TrPitch, MapWidth, 228 MapOffset, MapHeight, BlinkTime, BrushLoc, EditLoc, xMouse, 229 yMouse: integer; 226 xw: Integer; 227 yw: Integer; 228 xwd: Integer; 229 ywd: Integer; 230 xwMini: Integer; 231 ywMini: Integer; 232 xMidPanel: Integer; 233 xRightPanel: Integer; 234 xTroop: Integer; 235 xTerrain: Integer; 236 xMini: Integer; 237 yMini: Integer; 238 ywmax: Integer; 239 ywcenter: Integer; 240 TroopLoc: Integer; 241 TrCnt: Integer; 242 TrRow: Integer; 243 TrPitch: Integer; 244 MapWidth: Integer; 245 MapOffset: Integer; 246 MapHeight: Integer; 247 BlinkTime: Integer; 248 BrushLoc: Integer; 249 EditLoc: Integer; 250 xMouse: Integer; 251 yMouse: Integer; 230 252 BrushType: Cardinal; 231 trix: array [0 .. 63] of integer;253 trix: array [0 .. 63] of Integer; 232 254 AILogo: array [0 .. nPl - 1] of TBitmap; 233 Mini, Panel, TopBar: TBitmap; 255 Mini: TBitmap; 256 Panel: TBitmap; 257 TopBar: TBitmap; 234 258 sb: TPVScrollbar; 235 Closable, RepaintOnResize, Tracking, TurnComplete, Edited, GoOnPhase, 236 HaveStrategyAdvice, FirstMovieTurn: boolean; 259 Closable: Boolean; 260 RepaintOnResize: Boolean; 261 Tracking: Boolean; 262 TurnComplete: Boolean; 263 Edited: Boolean; 264 GoOnPhase: Boolean; 265 HaveStrategyAdvice: Boolean; 266 FirstMovieTurn: Boolean; 237 267 PrevWindowState: TWindowState; 238 268 CurrentWindowState: TWindowState; … … 322 352 end; 323 353 324 TPriceSet = Set of $00 .. $FF;354 TPriceSet = set of $00 .. $FF; 325 355 326 356 const … … 416 446 sbAll = $FF; 417 447 418 TileSizes: array [TTileSize] of TPoint = ((X: 33; Y: 16), (X: 48; Y: 24), (X: 72; Y: 36)); 448 TileSizes: array [TTileSize] of TPoint = ((X: 33; Y: 16), (X: 48; Y: 24), 449 (X: 72; Y: 36)); 419 450 420 451 type … … 432 463 ToldWonders: array [0 .. 27] of TWonderInfo; 433 464 ToldTech: array [0 .. nAdv - 1] of ShortInt; 465 end; 466 467 TDipMem = record 468 pContact: Integer; 469 SentCommand: Integer; 470 FormerTreaty: Integer; 471 SentOffer: TOffer; 472 DeliveredPrices: TPriceSet; 473 ReceivedPrices: TPriceSet; 434 474 end; 435 475 … … 468 508 TribeOriginal: array [0 .. nPl - 1] of Boolean; 469 509 LostArmy: array [0 .. nPl * nMmax - 1] of Integer; 470 DipMem: array [0 .. nPl - 1] of record 471 pContact: Integer; 472 SentCommand: Integer; 473 FormerTreaty: Integer; 474 SentOffer: TOffer; 475 DeliveredPrices: TPriceSet; 476 ReceivedPrices: TPriceSet; 477 end; 510 DipMem: array [0 .. nPl - 1] of TDipMem; 478 511 479 512 function CityEventName(i: integer): string; … … 4189 4222 Brush.Style := bsClear; 4190 4223 OffscreenUser := self; 4191 exit 4224 exit; 4192 4225 end; 4193 4226 … … 4214 4247 offscreen.Canvas.Font.Assign(UniFont[ftSmall]); 4215 4248 ProcessRect(xw, yw, MapWidth div xxt, MapHeight div yyt, 4216 prPaint or prInvalidate) 4249 prPaint or prInvalidate); 4217 4250 end 4218 4251 else … … 4285 4318 TopBarHeight + MapHeight - overlap); 4286 4319 RectInvalidate(xMidPanel, TopBarHeight + MapHeight - overlap, xRightPanel, 4287 TopBarHeight + MapHeight) 4320 TopBarHeight + MapHeight); 4288 4321 end; 4289 4322 // if (xwd<>xw) or (ywd<>yw) then … … 4953 4986 end; 4954 4987 RectInvalidate(0, 0, ClientWidth, TopBarHeight); 4955 end; { PanelPaint }4988 end; 4956 4989 4957 4990 procedure TMainScreen.FocusOnLoc(Loc: integer; Options: integer = 0); … … 4968 5001 begin 4969 5002 Centre(Loc); 4970 PaintAllMaps 5003 PaintAllMaps; 4971 5004 end 4972 5005 else if not MapValid then … … 5003 5036 begin 5004 5037 NewFocus := uix; 5005 Break 5038 Break; 5006 5039 end 5007 5040 else … … 5011 5044 begin 5012 5045 NewFocus := uix; 5013 Dist := TestDist 5014 end 5015 end 5046 Dist := TestDist; 5047 end; 5048 end; 5016 5049 end; 5017 5050 if GotoOnly then … … 5043 5076 PanelPaint; 5044 5077 end; 5045 end; { NextUnit }5078 end; 5046 5079 5047 5080 procedure TMainScreen.Scroll(dx, dy: integer); … … 5083 5116 PaintLocTemp(MyUn[UnFocus].Loc) 5084 5117 else if TurnComplete and not supervising then 5085 EOT.SetButtonIndexFast(eotBlinkOn) 5086 end 5118 EOT.SetButtonIndexFast(eotBlinkOn); 5119 end; 5087 5120 end 5088 5121 else … … 5113 5146 Screen.ActiveForm.OnDeactivate(nil); 5114 5147 Scroll(dx, dy); 5115 end 5148 end; 5116 5149 end; 5117 5150 … … 5134 5167 EOT.SetButtonIndexFast(eotBlinkOff) 5135 5168 else if BlinkTime = BlinkOffTime then 5136 EOT.SetButtonIndexFast(eotBlinkOn) 5137 end 5138 end 5169 EOT.SetButtonIndexFast(eotBlinkOn); 5170 end; 5171 end; 5139 5172 end; 5140 5173 … … 5155 5188 else if yw > ywmax then 5156 5189 yw := ywmax; 5157 end 5190 end; 5158 5191 end; 5159 5192
Note:
See TracChangeset
for help on using the changeset viewer.