mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-06 05:30:00 +00:00
unitframes: add option for reverse unitstr text
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user