unitframes: add option to use short names

This commit is contained in:
Sergio Álvarez
2018-05-15 17:54:33 +02:00
committed by Shagu
parent e178971b39
commit b0527b31c4
5 changed files with 6 additions and 0 deletions
+2
View File
@@ -1676,6 +1676,8 @@ function pfUI.uf:GetStatusValue(unit, pos)
return level .. " " .. name
elseif config == "name" then
return unit:GetColor("unit") .. UnitName(unitstr)
elseif config == "nameshort" then
return unit:GetColor("unit") .. strsub(UnitName(unitstr), 0, 3)
elseif config == "level" then
return unit:GetColor("level") .. pfUI.uf:GetLevelString(unitstr)
elseif config == "class" then