Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HUDPartInteractiveTutorial

Hierarchy

Index

Constructors

constructor

Methods

cleanup

  • cleanup(): void
  • Cleans up the hud element, if overridden make sure to call super.cleanups

    Returns void

close

  • close(): void
  • Should close the element, in case its supported

    Returns void

closeOnBackgroundClick

  • closeOnBackgroundClick(element: any, closeMethod?: any): void
  • Closes this element when its background is clicked

    Parameters

    • element: any
    • Default value closeMethod: any = null

    Returns void

closeOnOverlayOpen

  • closeOnOverlayOpen(closeMethod?: any): void
  • Calls closeMethod if an overlay is opened

    Parameters

    • Default value closeMethod: any = null

    Returns void

createElements

  • createElements(parent: any): void
  • Parameters

    • parent: any

    Returns void

deserialize

  • deserialize(data: any): string
  • Parameters

    • data: any

    Returns string

draw

  • draw(parameters: any): void
  • Parameters

    • parameters: any

    Returns void

drawOverlays

  • drawOverlays(parameters: any): void
  • Should draw any overlays (screen space)

    Parameters

    • parameters: any

    Returns void

forwardGameSpeedKeybindings

  • forwardGameSpeedKeybindings(sourceMapper: any): void
  • Forwards the game speed keybindings so you can toggle pause / Fastforward in the building tooltip and such

    Parameters

    • sourceMapper: any

    Returns void

forwardMapMovementKeybindings

  • forwardMapMovementKeybindings(sourceMapper: any): void
  • Forwards the map movement keybindings so you can move the map with the arrow keys

    Parameters

    • sourceMapper: any

    Returns void

forwardSidebarKeybindings

  • forwardSidebarKeybindings(sourceMapper: any): void
  • Forwards the game speed keybindings so you can toggle pause / Fastforward in the building tooltip and such

    Parameters

    • sourceMapper: any

    Returns void

initialize

  • initialize(): void

isBlockingOverlay

  • isBlockingOverlay(): boolean
  • Should return true if this overlay is open and currently blocking any user interaction

    Returns boolean

isEnabled

  • isEnabled(): any
  • Returns if the tutorial is currently enabled

    Returns any

onTextChanged

  • onTextChanged(text: any): void
  • Internal text changed handler

    Parameters

    • text: any

    Returns void

registerClickDetector

  • registerClickDetector(detector: any): void
  • Registers a new click detector

    Parameters

    • detector: any

    Returns void

serialize

  • serialize(): object
  • Returns object

    • currentStep: any

shouldPauseGame

  • shouldPauseGame(): boolean
  • Should return false if the game should be paused

    Returns boolean

shouldPauseRendering

  • shouldPauseRendering(): boolean
  • Should return true if the widget has a modal dialog opened and thus the game does not need to update / redraw

    Returns boolean

trackClicks

  • trackClicks(element: any, handler: any, args?: object): void
  • Helper method to construct a new click detector

    Parameters

    • element: any

      The element to listen on

    • handler: any

      The handler to call on this object

    • Default value args: object = {}

      Click detector arguments

    Returns void

update

  • update(): any
  • Returns any

Static getJsonSchema

  • getJsonSchema(): object
  • Returns object

    • additionalProperties: boolean
    • properties: any
    • required: string[]
    • type: string