Changeset 349 for branches/highdpi/LocalPlayer/UnitStat.pas
- Timestamp:
- Apr 6, 2021, 8:11:02 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/UnitStat.pas
r303 r349 7 7 UDpiControls, Protocol, ClientTools, Term, ScreenTools, BaseWin, 8 8 LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, Forms, 9 ButtonB, ButtonC ;9 ButtonB, ButtonC, IsoEngine; 10 10 11 11 type … … 24 24 procedure FormClose(Sender: TObject; var Action: TCloseAction); 25 25 procedure HelpBtnClick(Sender: TObject); 26 26 private 27 NoMap: TIsoMap; 27 28 public 28 29 procedure CheckAge; … … 51 52 52 53 uses 53 Tribes, IsoEngine,Help, Directories;54 Tribes, Help, Directories; 54 55 55 56 {$R *.lfm} … … 73 74 begin 74 75 inherited; 76 NoMap := TIsoMap.Create; 75 77 AgePrepared := -2; 76 78 TitleHeight := DpiScreen.Height; … … 91 93 FreeAndNil(Template); 92 94 FreeAndNil(Back); 95 FreeAndNil(NoMap); 93 96 end; 94 97 … … 136 139 begin 137 140 mox := @MyRO.EnemyModel[emix]; 138 if Tribe[owner].ModelPicture[mix].HGr = 0then141 if not Assigned(Tribe[owner].ModelPicture[mix].HGr) then 139 142 InitEnemyModel(emix); 140 143 end … … 521 524 begin 522 525 if Kind in [dkOwnUnit, dkEnemyUnit, dkEnemyCityDefense] then 523 with ui do526 with ui, NoMap do 524 527 begin 525 528 { Frame(offscreen.canvas,xView-1,yView-1,xView+64,yView+48, … … 529 532 with offscreen.Canvas do 530 533 begin 531 Brush.Color := GrExt[HGrSystem].Data.Canvas.Pixels[98, 67];534 Brush.Color := HGrSystem.Data.Canvas.Pixels[98, 67]; 532 535 offscreen.Canvas.FillRect(Rect(xView, yView, xView + 64, 533 536 yView + 16)); … … 574 577 Sprite(offscreen, HGrStdUnits, xView, yView, xxu * 2, yyu * 2, 575 578 1 + 6 * (xxu * 2 + 1), 1); 576 FrameImage(offscreen.Canvas, GrExt[HGrSystem].Data, xView - 20,579 FrameImage(offscreen.Canvas, HGrSystem.Data, xView - 20, 577 580 yView + 5, 12, 14, 121 + Exp div ExpCost * 13, 28); 578 581 if Health < 100 then
Note:
See TracChangeset
for help on using the changeset viewer.