v0.13.8

GetUnitPowerBarTextureInfo

functionguessedavailable in: camelot

Returns a texture of the unit's alternate power bar and its color. · description by wowlua

signaturewowlua
function GetUnitPowerBarTextureInfo(    unitToken: string,    textureIndex: number,    timerIndex: number?): (number, number, number, number, number)

Parameters

nametypedescription
unitTokenstringUnitId
textureIndexnumberWhich of the bar's textures.
timerIndexnumber?The bar's timer, for timer textures.

Returns

#nametype
1texturenumber
2colorRnumber
3colorGnumber
4colorBnumber
5colorAnumber

In wowlua's emulated client

guessedThe answer is worked out from Blizzard's documentation, its UI code and the function's name, and not checked against the client. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Unit system, camelot 1.60.1). Description: written by wowlua where no documentation describes the entry. Parameter and result notes: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.