Changeset 314 for trunk/LocalPlayer
- Timestamp:
- Mar 18, 2021, 9:46:52 PM (4 years ago)
- Location:
- trunk/LocalPlayer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/IsoEngine.pas
r313 r314 6 6 uses 7 7 Protocol, ClientTools, ScreenTools, Tribes, {$IFNDEF SCR}Term, {$ENDIF} 8 LCLIntf, LCLType, SysUtils, Classes, Graphics, UPixelPointer ;8 LCLIntf, LCLType, SysUtils, Classes, Graphics, UPixelPointer, UGraphicSet; 9 9 10 10 type … … 51 51 procedure FillRect(x, y, Width, Height, Color: integer); 52 52 procedure Textout(x, y, Color: integer; const s: string); 53 procedure Sprite(HGr: TGr ExtDescr; xDst, yDst, Width, Height, xGr, yGr: integer);53 procedure Sprite(HGr: TGraphicSet; xDst, yDst, Width, Height, xGr, yGr: integer); 54 54 procedure TSprite(xDst, yDst, grix: integer; PureBlack: boolean = false); 55 55 … … 144 144 xSrc: Integer; 145 145 ySrc: Integer; 146 HGrTerrainNew: TGr ExtDescr;147 HGrCitiesNew: TGr ExtDescr;146 HGrTerrainNew: TGraphicSet; 147 HGrCitiesNew: TGraphicSet; 148 148 Age: Integer; 149 149 Size: Integer; … … 534 534 end; 535 535 536 procedure TIsoMap.Sprite(HGr: TGr ExtDescr; xDst, yDst, Width, Height, xGr, yGr: integer);536 procedure TIsoMap.Sprite(HGr: TGraphicSet; xDst, yDst, Width, Height, xGr, yGr: integer); 537 537 begin 538 538 BitBltBitmap(HGr.Mask, xDst, yDst, Width, Height, xGr, yGr, SRCAND); … … 640 640 var 641 641 age: Integer; 642 cHGr: TGr ExtDescr;642 cHGr: TGraphicSet; 643 643 cpix: Integer; 644 644 xGr: Integer; -
trunk/LocalPlayer/Term.pas
r313 r314 13 13 Protocol, Tribes, PVSB, ClientTools, ScreenTools, BaseWin, Messg, ButtonBase, 14 14 LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, DrawDlg, Types, 15 Forms, Menus, ExtCtrls, dateutils, Platform, ButtonB, ButtonC, EOTButton, Area; 15 Forms, Menus, ExtCtrls, dateutils, Platform, ButtonB, ButtonC, EOTButton, Area, 16 UGraphicSet; 16 17 17 18 const … … 445 446 SoundPreloadDone: Integer; 446 447 MarkCityLoc: Integer; 447 HGrTerrain: TGr ExtDescr;448 HGrCities: TGr ExtDescr;448 HGrTerrain: TGraphicSet; 449 HGrCities: TGraphicSet; 449 450 MovieSpeed: Integer; 450 451 CityRepMask: Cardinal; … … 4314 4315 Sprite(Panel, HGrSystem, xMini - 2 + (4 * G.lx + 2 * (MarkCityLoc mod G.lx) 4315 4316 + (G.lx - MapWidth div (xxt * 2)) - 2 * xwd) mod (2 * G.lx) + 4316 MarkCityLoc div G.lx and 1, yMini - 3 + MarkCityLoc div G.lx, 10,4317 10, 77, 47)4317 MarkCityLoc div G.lx and 1, yMini - 3 + MarkCityLoc div G.lx, CityMark2.Width, 4318 CityMark2.Height, CityMark2.Left, CityMark2.Top) 4318 4319 else if ywmax <= 0 then 4319 4320 Frame(Panel.Canvas, xMini + 2 + G.lx - MapWidth div (xxt * 2), yMini + 2, -
trunk/LocalPlayer/Tribes.pas
r313 r314 5 5 6 6 uses 7 Protocol, ScreenTools, LazFileUtils, Classes, Graphics, SysUtils, Global; 7 Protocol, ScreenTools, LazFileUtils, Classes, Graphics, SysUtils, Global, 8 UGraphicSet; 8 9 9 10 type … … 14 15 15 16 TModelPicture = record 16 HGr: TGr ExtDescr;17 HGr: TGraphicSet; 17 18 pix: Integer; 18 19 xShield: Integer; … … 29 30 30 31 TTribe = class 31 symHGr: TGr ExtDescr;32 symHGr: TGraphicSet; 32 33 sympix: Integer; 33 faceHGr: TGr ExtDescr;34 faceHGr: TGraphicSet; 34 35 facepix: Integer; 35 cHGr: TGr ExtDescr;36 cHGr: TGraphicSet; 36 37 cpix: Integer; 37 38 // symbol and city graphics … … 62 63 var 63 64 Tribe: array [0 .. nPl - 1] of TTribe; 64 HGrStdUnits: TGr ExtDescr;65 HGrStdUnits: TGraphicSet; 65 66 66 67 procedure Init; … … 70 71 procedure FindStdModelPicture(Code: Integer; var pix: Integer; var Name: string); 71 72 function GetTribeInfo(FileName: string; var Name: string; var Color: TColor): Boolean; 72 procedure FindPosition(HGr: TGr ExtDescr; x, y, xmax, ymax: Integer; Mark: TColor;73 procedure FindPosition(HGr: TGraphicSet; x, y, xmax, ymax: Integer; Mark: TColor; 73 74 var xp, yp: Integer); 74 75 … … 82 83 TChosenModelPictureInfo = record 83 84 Hash: Integer; 84 HGr: TGr ExtDescr;85 HGr: TGraphicSet; 85 86 pix: Integer; 86 87 ModelName: ShortString; … … 328 329 end; 329 330 330 procedure FindPosition(HGr: TGr ExtDescr; x, y, xmax, ymax: Integer; Mark: TColor;331 procedure FindPosition(HGr: TGraphicSet; x, y, xmax, ymax: Integer; Mark: TColor; 331 332 var xp, yp: Integer); 332 333 begin … … 560 561 i: Integer; 561 562 Cnt: Integer; 562 HGr: TGr ExtDescr;563 HGr: TGraphicSet; 563 564 Used: Integer; 564 565 LeastUsed: Integer;
Note:
See TracChangeset
for help on using the changeset viewer.