A basic abstract class to act as a holder and processor for UI elements.

Hierarchy (view full)

Constructors

Properties

active: boolean = false
awaitingActionInput: boolean
cursor: number = 0
message: Text
mode: null | number
onActionInput: null | Function
pendingPrompt: boolean
prompt: Sprite
scene: default
textCallbackTimer: null | TimerEvent
textTimer: null | TimerEvent
tutorialActive: boolean = false
tutorialOverlay: Rectangle

Methods

  • Add the sprite to be displayed at the end of messages with prompts

    Parameters

    • container: Container

      the container to add the sprite to

    Returns void

  • Parameters

    • text: string
    • Optionalname: string
    • Optionaldelay: null | number
    • Optionalcallback: null | Function
    • OptionalcallbackDelay: null | number
    • Optionalprompt: null | boolean
    • OptionalpromptDelay: null | number

    Returns void

  • Parameters

    • Optionalcallback: null | Function
    • OptionalcallbackDelay: null | number

    Returns void

  • Parameters

    • text: string
    • Optionaldelay: null | number
    • Optionalcallback: null | Function
    • OptionalcallbackDelay: null | number
    • Optionalprompt: null | boolean
    • OptionalpromptDelay: null | number

    Returns void