TileHUD

TileHUD

An implementation of the PlaceableHUD base class which renders a heads-up-display interface for Tile objects.

Constructor

new TileHUD()

Extends

Members

(static) defaultOptions

layer :PlaceablesLayer

Inherited From:

Convenience access for the canvas layer which this HUD modifies

Type:

object :PlaceableObject

Overrides:

Reference a PlaceableObject this HUD is currently bound to

Type:

Methods

(protected) _onClickControl(event)

Overrides:

Handle mouse clicks to control a HUD control button

Parameters:
Name Type Description
event PointerEvent

The originating click event

(async, protected) _onSort(up, event) → {Promise}

Inherited From:

Handle sorting the z-order of the object

Parameters:
Name Type Description
up boolean

Move the object upwards in the vertical stack?

event PointerEvent

The originating mouse click event

Returns:
Type
Promise

(async) _render()

Inherited From:

activateListeners()

Inherited From:

bind(object)

Inherited From:

Bind the HUD to a new PlaceableObject and display it

Parameters:
Name Type Description
object PlaceableObject

A PlaceableObject instance to which the HUD should be bound

clear()

Inherited From:

Clear the HUD by fading out it's active HTML and recording the new display state

getData()

Overrides:

setPosition()

Overrides: