Loading...

Adding max HP to unitframes?

1
Currently on the TBC version of Tukui the following options are available for health tag on player and target frame:
-Current HP
-Hp and Percent
-Pecent
Image



Is it possible to add HP Current/Max and Percent as an option?

I have already modified my local version of tags.lua where I added the following lines:
oUF.Tags.Events["Tukui:MaxHP"] = "UNIT_HEALTH"
oUF.Tags.Methods["Tukui:MaxHP"] = function(unit)
local HP = UnitFrames.ShortValue(UnitHealthMax(unit))

return HP
end

and in Tukui.lua (savedvariables) I added the following modification:
["UnitFrames"] = {
["TargetHealthTag"] = "|cff549654[Tukui:CurrentHP] / [Tukui:MaxHP] - [perhp]%|r",
["ScrollingCombatText"] = true,
["PlayerHealthTag"] = "|cff549654[Tukui:CurrentHP] / [Tukui:MaxHP] - [perhp]%|r",
["ScrollingCombatTextAnim"] = "diagonal",
}

This displays like this ingame:
Image



Is this something that can be added as a official option in the ingame config menu? :)