Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new UIMenuSliderItem(text: string, items: unknown[], startIndex?: number, description?: string, showDivider?: boolean, arrowOnlyOnSelected?: boolean): UIMenuSliderItem

Properties

Private _arrowOnlyOnSelected

_arrowOnlyOnSelected: boolean = false

Private Readonly _background

_background: Rectangle

Private Readonly _divider

_divider: Rectangle

Private _index

_index: number = 0

Private _items

_items: unknown[] = []

Private Readonly _leftArrow

_leftArrow: Sprite

Private _leftSliderBadge

_leftSliderBadge: BadgeStyle = BadgeStyle.None

Private Readonly _leftSliderBadgeSprite

_leftSliderBadgeSprite: Sprite

Private Readonly _rightArrow

_rightArrow: Sprite

Private _rightSliderBadge

_rightSliderBadge: BadgeStyle = BadgeStyle.None

Private Readonly _rightSliderBadgeSprite

_rightSliderBadgeSprite: Sprite

Private _showDivider

_showDivider: boolean = true

Private Readonly _slider

_slider: Rectangle

Readonly activated

activated: LiteEvent = ...

Protected Readonly badgeLeft

badgeLeft: Sprite

Protected Readonly badgeRight

badgeRight: Sprite

enabled

enabled: boolean = true

hovered

hovered: boolean = false

Readonly id

id: string = ...

Protected Readonly labelText

labelText: Text

offset

offset: Point = ...

Readonly panelActivated

panelActivated: LiteEvent = ...

parent

parent: undefined | Menu

Protected Readonly rectangle

rectangle: Rectangle

selected

selected: boolean = false

Protected Readonly selectedSprite

selectedSprite: Sprite

Readonly sliderChanged

sliderChanged: LiteEvent = ...

Readonly sliderSelected

sliderSelected: LiteEvent = ...

Protected supportsDescription

supportsDescription: boolean = true

Protected supportsLeftBadge

supportsLeftBadge: boolean = true

Protected supportsPanels

supportsPanels: boolean = true

Protected supportsRightBadge

supportsRightBadge: boolean = false

Protected supportsRightLabel

supportsRightLabel: boolean = false

Protected Readonly text

text: Text

Static defaultBackColor

defaultBackColor: Color = Color.empty

Static defaultForeColor

defaultForeColor: Color = Color.whiteSmoke

Static defaultHighlightedBackColor

defaultHighlightedBackColor: Color = Color.white

Static defaultHighlightedForeColor

defaultHighlightedForeColor: Color = Color.black

Static defaultHoveredBackColor

defaultHoveredBackColor: Color = ...

Static defaultHoveredForeColor

defaultHoveredForeColor: Color = UIMenuItem.defaultForeColor

Accessors

ArrowOnlyOnSelected

  • get ArrowOnlyOnSelected(): boolean
  • set ArrowOnlyOnSelected(value: boolean): void

BackColor

  • get BackColor(): Color
  • set BackColor(value: Color): void

BackgroundColor

  • get BackgroundColor(): Color
  • set BackgroundColor(value: Color): void

Description

  • get Description(): string
  • set Description(value: string): void

DividerColor

  • get DividerColor(): Color
  • set DividerColor(value: Color): void

ForeColor

  • get ForeColor(): Color
  • set ForeColor(value: Color): void

FormattedDescription

  • get FormattedDescription(): string

HighlightedBackColor

  • get HighlightedBackColor(): Color
  • set HighlightedBackColor(value: Color): void

HighlightedForeColor

  • get HighlightedForeColor(): Color
  • set HighlightedForeColor(value: Color): void

Index

  • get Index(): number
  • set Index(value: number): void

IsMouseInBounds

  • get IsMouseInBounds(): boolean

IsMouseInBoundsOfLeftArrow

  • get IsMouseInBoundsOfLeftArrow(): boolean

IsMouseInBoundsOfRightArrow

  • get IsMouseInBoundsOfRightArrow(): boolean

Item

  • get Item(): unknown

Items

  • get Items(): unknown[]
  • set Items(value: unknown[]): void

LeftBadge

LeftSliderBadge

Panels

RightBadge

RightLabel

  • get RightLabel(): string
  • set RightLabel(value: string): void

RightSliderBadge

ShowDivider

  • get ShowDivider(): boolean
  • set ShowDivider(value: boolean): void

SliderColor

  • get SliderColor(): Color
  • set SliderColor(value: Color): void

Text

  • get Text(): string
  • set Text(value: string): void

Methods

addEvent

  • addEvent(event: string, ...args: unknown[]): void

addPanel

badgeToColor

badgeToTextureName

draw

  • draw(): void

findPanelIndex

fireEvent

  • fireEvent(): void

formatDescription

  • formatDescription(): void

indexToItem

  • indexToItem(index: number): unknown

removePanel

setVerticalPosition

  • setVerticalPosition(y: number): void

Static badgeToTextureDict

Static getBadgeSize

Static getBadgeSpriteHeightOffset

  • getBadgeSpriteHeightOffset(sprite: Sprite): number

Static getBadgeSpriteWidthOffset

  • getBadgeSpriteWidthOffset(sprite: Sprite): number

Generated using TypeDoc