TileDisplay.cellSize

From MiniScript Wiki
Revision as of 08:37, 8 July 2021 by Shellrider (talk | contribs) (Initial write up of page analogous to TileDisplay.tileSetTileSize)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The TileDisplay.cellSize property defines the size (in pixels) of the tiles drawn to the screen by a TileDisplay.

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.

To set the size of the tiles in the source image, use TileDisplay.tileSetTileSize

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