mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-02 11:40:01 +00:00
unitframes: add min/max display
This commit is contained in:
@@ -1293,6 +1293,12 @@ function pfUI.uf:GetStatusValue(unit, pos)
|
||||
else
|
||||
return unit:GetColor("health") .. pfUI.api.Abbreviate(UnitHealth(unitstr))
|
||||
end
|
||||
elseif config == "healthminmax" then
|
||||
local hp, hpmax = UnitHealth(unitstr), UnitHealthMax(unitstr)
|
||||
if unit.label == "target" and MobHealth3 then
|
||||
hp, hpmax = MobHealth3:GetUnitHealth(unit.label)
|
||||
end
|
||||
return unit:GetColor("health") .. pfUI.api.Abbreviate(hp) .. "/" .. pfUI.api.Abbreviate(hpmax)
|
||||
|
||||
-- mana/power/focus
|
||||
elseif config == "power" then
|
||||
@@ -1315,6 +1321,8 @@ function pfUI.uf:GetStatusValue(unit, pos)
|
||||
else
|
||||
return unit:GetColor("power") .. pfUI.api.Abbreviate(UnitMana(unitstr))
|
||||
end
|
||||
elseif config == "powerminmax" then
|
||||
return unit:GetColor("power") .. pfUI.api.Abbreviate(UnitMana(unitstr)) .. "/" .. pfUI.api.Abbreviate(UnitManaMax(unitstr))
|
||||
else
|
||||
return ""
|
||||
end
|
||||
|
||||
+3
-1
@@ -615,11 +615,13 @@ pfUI:RegisterModule("gui", function ()
|
||||
"healthmax:" .. T["Health - Max"],
|
||||
"healthperc:" .. T["Health - Percentage"],
|
||||
"healthmiss:" .. T["Health - Missing"],
|
||||
"healthminmax:" .. T["Health - Min/Max"],
|
||||
"powerdyn:" .. T["Mana - Auto"],
|
||||
"power:" .. T["Mana - Current"],
|
||||
"powermax:" .. T["Mana - Max"],
|
||||
"powerperc:" .. T["Mana - Percentage"],
|
||||
"powermiss:" .. T["Mana - Missing"]
|
||||
"powermiss:" .. T["Mana - Missing"],
|
||||
"powerminmax:" .. T["Mana - Min/Max"],
|
||||
}
|
||||
|
||||
local dropdown_panel_values = {
|
||||
|
||||
Reference in New Issue
Block a user