DoorControl

DoorControl

An icon representing a Door Control

Constructor

new DoorControl()

Extends

  • PIXI.Container

Members

isVisible :boolean

See:

Determine whether the DoorControl is visible to the calling user's perspective. The control is always visible if the user is a GM and no Tokens are controlled.

Type:
  • boolean

Methods

_getTexture() → {PIXI.Texture}

Get the icon texture to use for the Door Control icon based on the door state

Returns:
Type
PIXI.Texture

(protected) _onMouseDown(event)

Handle left mouse down events on a door control icon. This should only toggle between the OPEN and CLOSED states.

Parameters:
Name Type Description
event PIXI.InteractionEvent

The originating interaction event

(protected) _onMouseOut(event)

Handle mouse out events on a door control icon.

Parameters:
Name Type Description
event PIXI.InteractionEvent

The originating interaction event

(protected) _onMouseOver(event)

Handle mouse over events on a door control icon.

Parameters:
Name Type Description
event PIXI.InteractionEvent

The originating interaction event

(protected) _onRightDown(event)

Handle right mouse down events on a door control icon. This should toggle whether the door is LOCKED or CLOSED.

Parameters:
Name Type Description
event PIXI.InteractionEvent

The originating interaction event

(async) draw() → {Promise.<DoorControl>}

Draw the DoorControl icon, displaying it's icon texture and border

Returns:
Type
Promise.<DoorControl>