TileDisplay.tileSetTileSize

From MiniScript Wiki
Jump to navigation Jump to search

The TileDisplay.tileSetTileSize property defines the size of the tiles in a tile set used by a tile display.

The value may be either:

  • a simple number, used as both the width and the height of square tiles; or
  • a [width, height] list (i.e. a 2-element list of numbers), defining the tile width and height separately.

Note that this property defines the size (in pixels) of the tiles in the source image (the tile set). To set the size of the cells as they appear on screen, use TileDisplay.cellSize.

See also: TileDisplay.tileSet, TileDisplay.setCell, TileDisplay.cellSize