Originally Posted by neverg
Game92 for others to help you try to give more information that "just doesn't work". Any error popping up?
For example, to create Holy Power I simply created a Tag (because I'm outputing it through Text):
Code:
-- Holy Power
oUF.Tags["lumen:holypower"] = function(unit)
local hp = UnitPower('player', SPELL_POWER_HOLY_POWER)
local str
if hp == 1 then
str = string.format("|CFFffffff%d|r",hp)
elseif hp == 2 then
str = string.format("|CFFfff880%d|r",hp)
elseif hp == 3 then
str = string.format("|CFFf5e92f%d|r",hp)
else
str = ""
end
return str
end
oUF.TagEvents["lumen:holypower"] = "UNIT_POWER"
See other layouts on how to add runes to your layout, Shards is basicly the same way, but instead of using .Runes element you use .SoulShards. Hope that helps.
|
btw can you do the same with shards?
*EDIT i think i made it myself!*
*Edit full LUA:
http://pastebin.com/hXkrBuZw*
Need to change the color ;> *edit fixed*
Going to change that aswell
*edit fixed*