An icon representing a Door Control

Hierarchy

  • Container
    • DoorControl

Accessors

  • get center(): Point

    The center of the wall which contains the door.

    Returns Point

  • get isVisible(): boolean

    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.

    Returns boolean

Methods

  • Draw the DoorControl icon, displaying its icon texture and border

    Returns Promise<DoorControl>

  • Protected

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

    Returns Texture<Resource>

  • Protected

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

    Parameters

    • event: FederatedEvent<UIEvent | PixiTouch>

      The originating interaction event

    Returns any

  • Protected

    Handle mouse out events on a door control icon.

    Parameters

    • event: FederatedEvent<UIEvent | PixiTouch>

      The originating interaction event

    Returns undefined | false

  • Protected

    Handle mouse over events on a door control icon.

    Parameters

    • event: FederatedEvent<UIEvent | PixiTouch>

      The originating interaction event

    Returns undefined | false

  • Protected

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

    Parameters

    • event: FederatedEvent<UIEvent | PixiTouch>

      The originating interaction event

    Returns any