Hierarchy

Constructors

  • Returns Ui

Properties

event: IEventEmitter<Ui, IUiEvents>
focus: default = ...
highlights: default = ...
hudWidth: default = ...
itemStylesheetHandler: default = ...
loadingBridge: default = ...
promptsBridge: default = ...
saveDropHandler: default = ...
scale: default = ...
screens: default = ...
selection: default = ...
serverJoinHandler: default = ...
tooltips: default = ...
versionText: undefined | default<HTMLElement> = ...
viewport: default = ...

Accessors

  • get primaryScreenId(): ScreenId
  • Screen id used while in game / playing

    Returns ScreenId

  • get windowHeight(): number
  • Returns number

  • get windowWidth(): number
  • Returns number

Methods

  • Parameters

    • path: string

    Returns void

  • Parameters

    • id: string | number
    • host: any

    Returns boolean

  • Parameters

    • enabled: boolean

    Returns void

  • Returns a percentage of the screen based on the given number of pixels on the given Axis.

    Parameters

    • axis: Axis
    • pixels: number

    Returns number

  • Returns a number of pixels based on the given percentage of the screen on the given Axis.

    Parameters

    • axis: Axis
    • percentage: number

    Returns number

  • Returns 0 | 30

  • Returns void

  • Returns boolean

  • Returns void

  • Returns void

  • Parameters

    • _: any
    • language: string

    Returns void

  • Returns void

  • Returns boolean

  • Returns boolean

  • Returns void

  • Parameters

    Returns Promise<void>

  • Returns boolean

  • Returns boolean

  • Returns void

  • Returns boolean

  • Returns void

  • Parameters

    • sound: SfxType | "sort" | "equip" | "unequip" | "activate" | "choose" | "close" | "disable" | "enable" | "input" | "inputdelete" | "invalid" | "open" | "opensmall" | "protect" | "reorder" | "select" | "stack" | "trade" | "unprotect" | "unstack"

    Returns void

  • Parameters

    • Rest ...elements: (undefined | HTMLElement | default<HTMLElement>)[]

      The elements to refresh translations inside

    Returns void

  • Registers an object as a "data host", which allows its fields to be saved to saveData or saveDataGlobal

    Parameters

    • id: string | number
    • host: any

    Returns void

  • Returns void

  • Returns void

  • Parameters

    • path: string

    Returns void

  • Parameters

    • opacity: number = ...
    • save: boolean = true

      Whether or not to save the new scale into options. Defaults to true.

    Returns void

  • Parameters

    • owner: default<HTMLElement>
    • Rest ...components: default<HTMLElement>[]

    Returns void

  • Parameters

    • enabled: boolean

    Returns Ui

  • Toggles fullscreen

    Returns void

  • Parameters

    • Optional fullscreen: boolean

      Whether or not fullscreen is enabled

    Returns void

  • Toggle health vignette

    Parameters

    • healthVignette: boolean

    Returns void

  • Returns void

  • Returns void

  • Returns void

  • Returns void

  • Returns void

Generated using TypeDoc