Constructor
new UITile(posopt, sizeopt, tileInfoopt, coloropt, angleopt, mirroropt)
Parameters:Name | Type | Attributes | Default | Description |
---|
pos | Vector2 | <optional>
| | |
size | Vector2 | <optional>
| | |
tileInfo | TileInfo | <optional>
| | |
color | Color | <optional>
| WHITE | |
angle | number | <optional>
| 0 | |
mirror | boolean | <optional>
| false | |
Extends
Members
angle
PropertiesType | Description |
---|
number | Angle to rotate in radians |
children
Properties
color
Properties
font
Properties
hoverColor
Properties
lineColor
Properties
lineWidth
Properties
localPos
PropertiesType | Description |
---|
Vector2 | Local position of the object |
mirror
PropertiesType | Description |
---|
boolean | Should it be mirrored? |
parent
Properties
pos
PropertiesType | Description |
---|
Vector2 | Screen space position of the object |
size
PropertiesType | Description |
---|
Vector2 | Screen space size of the object |
textColor
Properties
tileInfo
PropertiesType | Description |
---|
TileInfo | Tile image to use |
visible
Properties
Methods
addChild(child)
Add a child UIObject to this object
onChange()
Called when the state of this object changes
onEnter()
Called when the mouse enters the object
onLeave()
Called when the mouse leaves the object
onPress()
Called when the mouse is pressed while over the object
onRelease()
Called when the mouse is released while over the object
removeChild(child)
Remove a child UIObject from this object
render()
Render the object, called automatically by plugin once each frame
update()
Update the object, called automatically by plugin once each frame