unitframes: add option for reverse unitstr text

This commit is contained in:
shagu
2021-12-12 22:50:21 +01:00
parent e4b888fe70
commit 90dc763411
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -2286,6 +2286,10 @@ function pfUI.uf:GetStatusValue(unit, pos)
local name = unit:GetColor("unit") .. UnitName(unitstr)
local level = unit:GetColor("level") .. pfUI.uf:GetLevelString(unitstr)
return level .. " " .. name
elseif config == "unitrev" then
local name = unit:GetColor("unit") .. UnitName(unitstr)
local level = unit:GetColor("level") .. pfUI.uf:GetLevelString(unitstr)
return name .. " " .. level
elseif config == "name" then
return unit:GetColor("unit") .. UnitName(unitstr)
elseif config == "nameshort" then
+1
View File
@@ -1024,6 +1024,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
["uf_texts"] = {
"none:" .. T["Disable"],
"unit:" .. T["Unit String"],
"unitrev:" .. T["Unit String (Reverse)"],
"name:" .. T["Name"],
"nameshort:" .. T["Name (Short)"],
"level:" .. T["Level"],