UISystem. UITile

UITile - A UI object that displays a tile image

Constructor

new UITile(pos, size, tileInfo, coloropt, angleopt, mirroropt)

Create a UITile object

Parameters:
NameTypeAttributesDefaultDescription
posVector2
sizeVector2
tileInfoTileInfo
colorColor<optional>
WHITE
anglenumber<optional>
0
mirrorboolean<optional>
false

Extends

  • UIObject

Members

angle

Properties
TypeDescription
number

Angle to rotate in radians

mirror

Properties
TypeDescription
boolean

Should it be mirrored?

tileInfo

Properties
TypeDescription
TileInfo

Tile image to use