Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new UIMenuPercentagePanel(title?: string, percentage?: number, minText?: string, maxText?: string): UIMenuPercentagePanel

Properties

Private Readonly _activeBar

_activeBar: Rectangle

Private Readonly _backgroundBar

_backgroundBar: Rectangle

Private _lastPercentage

_lastPercentage: number

Private Readonly _maxText

_maxText: Text

Private Readonly _minText

_minText: Text

Private _pressed

_pressed: boolean = false

Private Readonly _title

_title: Text

Protected Readonly background

background: Sprite

Protected enabled

enabled: boolean = true

Readonly id

id: string = ...

Protected parentItem

parentItem: undefined | UIMenuItem

Accessors

Enabled

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

Height

  • get Height(): number

MaxText

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

MinText

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

ParentItem

ParentMenu

  • get ParentMenu(): undefined | Menu

Percentage

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

Title

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

Methods

Private _getProgress

  • _getProgress(): number

Private _processControls

  • _processControls(): void

draw

  • draw(): void

setVerticalPosition

  • setVerticalPosition(y: number): void

updateParentItem

  • updateParentItem(): void

Generated using TypeDoc