GetUnitPowerBarInfo

From Warcraft Wiki
Jump to navigation Jump to search
GitHub Octocat.png  Townlong-Yak BAD.png  ProfIcons engineering.png  BTNTemp.png GetUnitPowerBarInfo TheWarWithin-Icon-Inline.pngDragonflight-Icon-Inline.pngCata-Logo-Small.png + 8.3.0
GitHub Octocat.png  Townlong-Yak BAD.png  ProfIcons engineering.png  BTNTemp.png GetUnitPowerBarInfoByID TheWarWithin-Icon-Inline.pngDragonflight-Icon-Inline.pngCata-Logo-Small.png + 8.3.0

Needs summary.

info = GetUnitPowerBarInfo(unitToken)
     = GetUnitPowerBarInfoByID(barID)

Arguments

GetUnitPowerBarInfo

unitToken
string : UnitId

GetUnitPowerBarInfoByID

barID
number - from UnitPowerBarID()

Returns

info
UnitPowerBarInfo
Field Type Description
ID number
barType number
minPower number
startInset number
endInset number
smooth boolean
hideFromOthers boolean
showOnRaid boolean
opaqueSpark boolean
opaqueFlash boolean
anchorTop boolean
forcePercentage boolean
sparkUnderFrame boolean
flashAtMinPower boolean
fractionalCounter boolean
animateNumbers boolean

Patch changes

Battle for Azeroth Patch 8.3.0 (2020-01-14): Added. Replaces UnitAlternatePowerInfo() and UnitAlternatePowerCounterInfo() which are deprecated. [1]