Changeset 330 for trunk/LocalPlayer/Help.pas
- Timestamp:
- Mar 26, 2021, 2:16:04 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Help.pas
r328 r330 7 7 Protocol, ScreenTools, BaseWin, StringTables, Math, LCLIntf, LCLType, 8 8 Messages, SysUtils, Classes, Graphics, Controls, Forms, ExtCtrls, 9 ButtonB, PVSB, Types, fgl ;9 ButtonB, PVSB, Types, fgl, IsoEngine; 10 10 11 11 const … … 102 102 ExtPic, TerrIcon: TBitmap; 103 103 ScrollBar: TPVScrollbar; 104 NoMap: TIsoMap; 104 105 x0: array [-2..180] of Integer; 105 106 procedure PaintTerrIcon(x, y, xSrc, ySrc: Integer); … … 273 274 begin 274 275 inherited; 276 NoMap := TIsoMap.Create; 277 275 278 HistItems := THistItems.Create; 276 279 … … 331 334 // FreeAndNil(CaptionFont); 332 335 FreeAndNil(HistItems); 336 FreeAndNil(NoMap); 333 337 end; 334 338 … … 502 506 procedure THelpDlg.PaintTerrIcon(x, y, xSrc, ySrc: integer); 503 507 begin 504 Frame(OffScreen.Canvas, x - 1, y - 1, x + xSizeBig, y + ySizeBig, 505 $000000, $000000); 506 if 2 * yyt < 40 then begin 507 Sprite(OffScreen, HGrTerrain, x, y, 56, 2 * yyt, xSrc, ySrc); 508 Sprite(OffScreen, HGrTerrain, x, y + 2 * yyt, 56, 40 - 2 * yyt, 508 with NoMap do begin 509 Frame(OffScreen.Canvas, x - 1, y - 1, x + xSizeBig, y + ySizeBig, 510 $000000, $000000); 511 if 2 * yyt < 40 then begin 512 Sprite(OffScreen, HGrTerrain, x, y, 56, 2 * yyt, xSrc, ySrc); 513 Sprite(OffScreen, HGrTerrain, x, y + 2 * yyt, 56, 40 - 2 * yyt, 514 xSrc, ySrc); 515 end else 516 Sprite(OffScreen, HGrTerrain, x, y, 56, 40, xSrc, ySrc); 517 Sprite(OffScreen, HGrTerrain, x, y, xxt, yyt, xSrc + xxt, ySrc + yyt); 518 Sprite(OffScreen, HGrTerrain, x, y + yyt, xxt, 40 - yyt, xSrc + xxt, ySrc); 519 Sprite(OffScreen, HGrTerrain, x + xxt, y, 56 - xxt, yyt, xSrc, ySrc + yyt); 520 Sprite(OffScreen, HGrTerrain, x + xxt, y + yyt, 56 - xxt, 40 - yyt, 509 521 xSrc, ySrc); 510 end else 511 Sprite(OffScreen, HGrTerrain, x, y, 56, 40, xSrc, ySrc); 512 Sprite(OffScreen, HGrTerrain, x, y, xxt, yyt, xSrc + xxt, ySrc + yyt); 513 Sprite(OffScreen, HGrTerrain, x, y + yyt, xxt, 40 - yyt, xSrc + xxt, ySrc); 514 Sprite(OffScreen, HGrTerrain, x + xxt, y, 56 - xxt, yyt, xSrc, ySrc + yyt); 515 Sprite(OffScreen, HGrTerrain, x + xxt, y + yyt, 56 - xxt, 40 - yyt, 516 xSrc, ySrc); 522 end; 517 523 end; 518 524 … … 605 611 12 + x0[i], -7 + i * 24, 56, 40, 137, 127); 606 612 1: 607 begin613 with NoMap do begin 608 614 PaintTerrIcon(12 + x0[i], -7 + i * 24, 609 615 1 + 3 * (xxt * 2 + 1), 1 + yyt); … … 618 624 end; 619 625 2: 620 begin626 with NoMap do begin 621 627 PaintTerrIcon(12 + x0[i], -7 + i * 24, 622 628 1 + 7 * (xxt * 2 + 1), 1 + yyt + 4 * (yyt * 3 + 1)); … … 703 709 end; 704 710 pkTer, pkBigTer: 705 begin711 with NoMap do begin 706 712 if HelpLineInfo.Format = pkBigTer then 707 713 y := i * 24 - 3 + yyt … … 758 764 end; 759 765 pkTerImp: 760 begin766 with NoMap do begin 761 767 ofs := 8; 762 768 if HelpLineInfo.Picpix = 5 then
Note:
See TracChangeset
for help on using the changeset viewer.