Перейти к основному содержанию

ToolHUD

Index

Classes

abstractAbstractButton

AbstractButton:

constructor

  • new AbstractButton(name: string, type: armor | tool, uiData: ButtonUIData): AbstractButton
  • Parameters

    • name: string
    • type: armor | tool
    • uiData: ButtonUIData

    Returns AbstractButton

bindedItems

bindedItems: any[]

name

name: string

type

type: armor | tool

uiData

uiData: ButtonUIData

uiElement

uiElement: UIButtonElement

bindItem

  • bindItem(id: number): void
  • Parameters

    • id: number

    Returns void

isBindedItem

  • isBindedItem(id: number): boolean
  • Parameters

    • id: number

    Returns boolean

onClick

  • onClick(player: number): void
  • Parameters

    • player: number

    Returns void

onUpdate

  • onUpdate(element: UIButtonElement): void
  • Parameters

    • element: UIButtonElement

    Returns void

ButtonFly

ButtonFly:

constructor

  • Returns ButtonFly

bindedItems

bindedItems: any[]

isTouched

isTouched: boolean

name

name: string

type

type: armor | tool

uiData

uiData: ButtonUIData

uiElement

uiElement: UIButtonElement

bindItem

  • bindItem(id: number): void
  • Parameters

    • id: number

    Returns void

isBindedItem

  • isBindedItem(id: number): boolean
  • Parameters

    • id: number

    Returns boolean

onClick

  • onClick(player: number): void
  • Parameters

    • player: number

    Returns void

onUpdate

  • onUpdate(): void
  • Returns void

ButtonHover

ButtonHover:

constructor

  • Returns ButtonHover

bindedItems

bindedItems: any[]

name

name: string

type

type: armor | tool

uiData

uiData: ButtonUIData

uiElement

uiElement: UIButtonElement

bindItem

  • bindItem(id: number): void
  • Parameters

    • id: number

    Returns void

isBindedItem

  • isBindedItem(id: number): boolean
  • Parameters

    • id: number

    Returns boolean

onClick

  • onClick(player: number): void
  • Parameters

    • player: number

    Returns void

onUpdate

  • onUpdate(element: UIButtonElement): void
  • Parameters

    • element: UIButtonElement

    Returns void

ButtonJump

ButtonJump:

constructor

  • Returns ButtonJump

bindedItems

bindedItems: any[]

name

name: string

type

type: armor | tool

uiData

uiData: ButtonUIData

uiElement

uiElement: UIButtonElement

bindItem

  • bindItem(id: number): void
  • Parameters

    • id: number

    Returns void

isBindedItem

  • isBindedItem(id: number): boolean
  • Parameters

    • id: number

    Returns boolean

onClick

  • onClick(player: number): void
  • Parameters

    • player: number

    Returns void

onUpdate

  • onUpdate(element: UIButtonElement): void
  • Parameters

    • element: UIButtonElement

    Returns void

ButtonNightvision

ButtonNightvision:

constructor

bindedItems

bindedItems: any[]

name

name: string

type

type: armor | tool

uiData

uiData: ButtonUIData

uiElement

uiElement: UIButtonElement

bindItem

  • bindItem(id: number): void
  • Parameters

    • id: number

    Returns void

isBindedItem

  • isBindedItem(id: number): boolean
  • Parameters

    • id: number

    Returns boolean

onClick

  • onClick(player: number): void
  • Parameters

    • player: number

    Returns void

onUpdate

  • onUpdate(element: UIButtonElement): void
  • Parameters

    • element: UIButtonElement

    Returns void

ButtonToolMode

ButtonToolMode:

constructor

bindedItems

bindedItems: any[]

name

name: string

type

type: armor | tool

uiData

uiData: ButtonUIData

uiElement

uiElement: UIButtonElement

bindItem

  • bindItem(id: number): void
  • Parameters

    • id: number

    Returns void

isBindedItem

  • isBindedItem(id: number): boolean
  • Parameters

    • id: number

    Returns boolean

onClick

  • onClick(player: number): void
  • Parameters

    • player: number

    Returns void

onUpdate

  • onUpdate(element: UIButtonElement): void
  • Parameters

    • element: UIButtonElement

    Returns void

Variables

constWindow

Window: UI.Window

constbuttons

buttons: {}

Type declaration

container

container: any

currentUIscreen

currentUIscreen: string

Functions

getButton

onClick

  • onClick(name: string): void
  • Parameters

    • name: string

    Returns void

registerButton

setArmorButton

  • setArmorButton(id: number, name: string): void
  • @deprecated

    Parameters

    • id: number
    • name: string

    Returns void

setButtonFor

  • setButtonFor(id: number, name: string): void
  • Parameters

    • id: number
    • name: string

    Returns void