Originally Posted by Kanegasi
The Enum.PowerType.Mana shown in the linked code is a number. Here’s the full table:
Lua Code:
Enum = { PowerType = { Alternate = 10, ArcaneCharges = 16, Chi = 12, ComboPoints = 4, Energy = 3, Focus = 2, Fury = 17, HealthCost = -2, HolyPower = 9, Insanity = 13, LunarPower = 8, Maelstrom = 11, Mana = 0, None = -1, NumPowerTypes = 19, Obsolete = 14, Obsolete2 = 15, Pain = 18, Rage = 1, Runes = 5, RunicPower = 6, SoulShards = 7, }, }
|
Thanks for the list but I'm a bit lost on how to incorporate it into my current code snippet.
The following shows the current main power amount, I need it to show alternate power percentage (in my case, mana) :
Code:
function()
local percent = (UnitPower("player")/UnitPowerMax("player"))*100
return floor(percent+0.5)..""
end