Link Search Menu Expand Document

Sprite_Gauge.d overview


Table of contents


utils

GaugeStatusType (type alias)

Signature

export declare type GaugeStatusType = 'time' | 'hp' | 'mp' | 'tp'

Sprite_Gauge (class)

// Sprite_Gauge // // The sprite for displaying a status gauge.

Signature

export declare class Sprite_Gauge {
  constructor()
}

initMembers (method)

Signature

initMembers(): void

destroy (method)

Signature

destroy(options?: PIXIDestroyOptions): void

createBitmap (method)

Signature

createBitmap(): void

bitmapWidth (method)

Signature

bitmapWidth(): number

bitmapHeight (method)

Signature

bitmapHeight(): number

textHeight (method)

Signature

textHeight(): number

gaugeHeight (method)

Signature

gaugeHeight(): number

gaugeX (method)

Signature

gaugeX(): number

labelY (method)

Signature

labelY(): number

labelFontFace (method)

Signature

labelFontFace(): string

labelFontSize (method)

Signature

labelFontSize(): number

valueFontFace (method)

Signature

valueFontFace(): string

valueFontSize (method)

Signature

valueFontSize(): number

setup (method)

Signature

setup(battler: ActionTarget, statusType: GaugeStatusType): void

update (method)

Signature

update(): void

updateBitmap (method)

Signature

updateBitmap(): void

updateTargetValue (method)

Signature

updateTargetValue(value: number, maxValue: number): void

smoothness (method)

Signature

smoothness(): 20 | 5

updateGaugeAnimation (method)

Signature

updateGaugeAnimation(): void

updateFlashing (method)

Signature

updateFlashing(): void

flashingColor1 (method)

Signature

flashingColor1(): Color

flashingColor2 (method)

Signature

flashingColor2(): Color

isValid (method)

Signature

isValid(): boolean

currentValue (method)

Signature

currentValue(): number

currentMaxValue (method)

Signature

currentMaxValue(): number

label (method)

Signature

label(): string

gaugeBackColor (method)

Signature

gaugeBackColor(): string

gaugeColor1 (method)

Signature

gaugeColor1(): string

gaugeColor2 (method)

Signature

gaugeColor2(): string

labelColor (method)

Signature

labelColor(): string

labelOutlineColor (method)

Signature

labelOutlineColor(): string

labelOutlineWidth (method)

Signature

labelOutlineWidth(): number

valueColor (method)

Signature

valueColor(): string

valueOutlineColor (method)

Signature

valueOutlineColor(): string

valueOutlineWidth (method)

Signature

valueOutlineWidth(): number

redraw (method)

Signature

redraw(): void

drawGauge (method)

Signature

drawGauge(): void

drawGaugeRect (method)

Signature

drawGaugeRect(x: number, y: number, width: number, height: number): void

gaugeRate (method)

Signature

gaugeRate(): number

drawLabel (method)

Signature

drawLabel(): void

setupLabelFont (method)

Signature

setupLabelFont(): void

measureLabelWidth (method)

Signature

measureLabelWidth(): number

labelOpacity (method)

Signature

labelOpacity(): 255 | 160

drawValue (method)

Signature

drawValue(): void

setupValueFont (method)

Signature

setupValueFont(): void

_battler (property)

Signature

_battler: Game_Actor | Game_Enemy | null

_statusType (property)

Signature

_statusType: string

_value (property)

Signature

_value: number

_maxValue (property)

Signature

_maxValue: number

_targetValue (property)

Signature

_targetValue: number

_targetMaxValue (property)

Signature

_targetMaxValue: number

_duration (property)

Signature

_duration: number

_flashingCount (property)

Signature

_flashingCount: number