Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UIMenuSliderItem

Hierarchy

Index

Constructors

constructor

  • new UIMenuSliderItem(text: string, items: any[], index: number, description?: string, divider?: boolean): UIMenuSliderItem

Properties

backColor

backColor: Color = UIMenuItem.defaultBackColor

description

description: string

enabled

enabled: boolean

foreColor

foreColor: Color = UIMenuItem.defaultForeColor

highlightedBackColor

highlightedBackColor: Color = UIMenuItem.defaultHighlightedBackColor

highlightedForeColor

highlightedForeColor: Color = UIMenuItem.defaultHighlightedForeColor

hovered

hovered: boolean

id

id: string = uuidv4()

leftBadge

leftBadge: BadgeStyle = BadgeStyle.None

offset

offset: Point

parent

parent: Menu

rightBadge

rightBadge: BadgeStyle = BadgeStyle.None

rightLabel

rightLabel: string = ""

selected

selected: boolean

Static defaultBackColor

defaultBackColor: Color = Color.empty

Static defaultForeColor

defaultForeColor: Color = Color.whiteSmoke

Static defaultHighlightedBackColor

defaultHighlightedBackColor: Color = Color.white

Static defaultHighlightedForeColor

defaultHighlightedForeColor: Color = Color.black

Accessors

Index

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

Text

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

Methods

addEvent

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

badgeToColor

badgeToSpriteLib

badgeToSpriteName

  • badgeToSpriteName(badge: BadgeStyle, selected: boolean): string

draw

  • draw(): void

fireEvent

  • fireEvent(): void

indexToItem

  • indexToItem(index: number): any

isBagdeWhiteSprite

setLeftBadge

setRightBadge

setRightLabel

  • setRightLabel(text: string): void

setVerticalPosition

  • setVerticalPosition(y: number): void

Generated using TypeDoc