Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Private Readonly _checkboxSprite

_checkboxSprite: Sprite

Private _checked

_checked: boolean = false

Private _style

_style: CheckboxStyle = CheckboxStyle.Tick

Readonly activated

activated: LiteEvent = ...

Protected Readonly badgeLeft

badgeLeft: Sprite

Protected Readonly badgeRight

badgeRight: Sprite

Readonly checkboxChanged

checkboxChanged: LiteEvent = ...

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

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

BackColor

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

Checked

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

Description

  • get Description(): string
  • set Description(value: string): 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

IsMouseInBounds

  • get IsMouseInBounds(): boolean

LeftBadge

Panels

RightBadge

RightLabel

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

Style

Text

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

Methods

Private _getSpriteColor

Private _getSpriteName

  • _getSpriteName(): string

addEvent

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

addPanel

badgeToColor

badgeToTextureName

draw

  • draw(): void

findPanelIndex

fireEvent

  • fireEvent(): void

formatDescription

  • formatDescription(): void

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