Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Menu

Hierarchy

  • Menu

Index

Constructors

constructor

  • new Menu(title: any, subtitle: any, offset: any, spriteLibrary?: any, spriteName?: any): Menu
  • Parameters

    • title: any
    • subtitle: any
    • offset: any
    • Optional spriteLibrary: any
    • Optional spriteName: any

    Returns Menu

Properties

AUDIO_BACK

AUDIO_BACK: string = "BACK"

AUDIO_ERROR

AUDIO_ERROR: string = "ERROR"

AUDIO_LEFTRIGHT

AUDIO_LEFTRIGHT: string = "NAV_LEFT_RIGHT"

AUDIO_LIBRARY

AUDIO_LIBRARY: string = "HUD_FRONTEND_DEFAULT_SOUNDSET"

AUDIO_SELECT

AUDIO_SELECT: string = "SELECT"

AUDIO_UPDOWN

AUDIO_UPDOWN: string = "NAV_UP_DOWN"

checkboxChange

checkboxChange: LiteEvent = new LiteEvent()

children

children: Map<string, Menu>

id

id: string = uuidv4()

indexChange

indexChange: LiteEvent = new LiteEvent()

itemSelect

itemSelect: LiteEvent = new LiteEvent()

listChange

listChange: LiteEvent = new LiteEvent()

menuChange

menuChange: LiteEvent = new LiteEvent()

menuClose

menuClose: LiteEvent = new LiteEvent()

menuItems

menuOpen

menuOpen: LiteEvent = new LiteEvent()

mouseControlsEnabled

mouseControlsEnabled: boolean = false

parentItem

parentItem: UIMenuItem

parentMenu

parentMenu: Menu

sliderChange

sliderChange: LiteEvent = new LiteEvent()

sliderSelect

sliderSelect: LiteEvent = new LiteEvent()

visible

visible: boolean = false

widthOffset

widthOffset: number = 0

Accessors

CurrentSelection

  • get CurrentSelection(): number
  • set CurrentSelection(v: number): void

Subtitle

  • set Subtitle(text: string): void

Methods

addItem

bindMenuToItem

clear

  • clear(): void

close

  • close(): void

getScreenResolutionMantainRatio

  • getScreenResolutionMantainRatio(): Size

goBack

  • goBack(): void

goDown

  • goDown(): void

goDownOverflow

  • goDownOverflow(): void

goLeft

  • goLeft(): void

goRight

  • goRight(): void

goUp

  • goUp(): void

goUpOverflow

  • goUpOverflow(): void

open

  • open(): void

processControl

  • processControl(): void

refreshIndex

  • refreshIndex(): void

releaseMenuFromItem

  • releaseMenuFromItem(releaseFrom: UIMenuItem): boolean

selectItem

  • selectItem(): void

setMenuwidthOffset

  • setMenuwidthOffset(widthOffset: number): void

Generated using TypeDoc