Ignore:
Timestamp:
Mar 22, 2021, 10:51:43 PM (4 years ago)
Author:
chronos
Message:
  • Added: Allow to switch between three tile sizes by mouse wheel over map to perform zoom in or zoom out.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/IsoEngine.pas

    r318 r321  
    7777function IsJungle(y: integer): boolean;
    7878procedure Init(InitEnemyModelHandler: TInitEnemyModelEvent);
    79 function ApplyTileSize(xxtNew, yytNew: integer): boolean;
     79function ApplyTileSize(ATileSize: TTileSize): boolean;
    8080procedure Done;
    8181procedure Reset;
     
    137137end;
    138138
    139 function ApplyTileSize(xxtNew, yytNew: integer): boolean;
     139function ApplyTileSize(ATileSize: TTileSize): boolean;
    140140var
    141141  i: Integer;
     
    151151  MaskLine: array [0 .. 50 * 3 - 1] of TPixelPointer; // 32 = assumed maximum for yyt
    152152  Border: boolean;
    153 begin
     153  xxtNew: Integer;
     154  yytNew: Integer;
     155begin
     156  xxtNew := TileSizes[ATileSize].X;
     157  yytNew := TileSizes[ATileSize].Y;
    154158  result := false;
    155159  HGrTerrainNew := LoadGraphicSet(Format('Terrain%dx%d.png',
     
    163167  xxt := xxtNew;
    164168  yyt := yytNew;
     169  TileSize := ATileSize;
    165170  HGrTerrain := HGrTerrainNew;
    166171  HGrCities := HGrCitiesNew;
Note: See TracChangeset for help on using the changeset viewer.