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
+1
View File
@@ -301,6 +301,7 @@ pfUI_translation["enUS"] = {
["Mousewheel Scroll Speed"] = nil,
["ms"] = nil,
["Name"] = nil,
["Name (Short)"] = nil,
["Nameplates"] = nil,
["Nameplate Width"] = nil,
["N/A"] = nil,
+1
View File
@@ -301,6 +301,7 @@ pfUI_translation["esES"] = {
["Mousewheel Scroll Speed"] = "Velocidad de Rueda",
["ms"] = "ms",
["Name"] = "Nombre",
["Name (Short)"] = "Nombre (Corto)",
["Nameplates"] = "Placas Indentificativas",
["Nameplate Width"] = "Ancho de las Placas Indentificativas",
["N/A"] = nil,
+1
View File
@@ -301,6 +301,7 @@ pfUI_translation["frFR"] = {
["Mousewheel Scroll Speed"] = nil,
["ms"] = nil,
["Name"] = "Nom",
["Name (Short)"] = "Nom (Court)",
["Nameplates"] = "Barres de vie flottantes",
["Nameplate Width"] = "Largeur des barres de vie flottantes",
["N/A"] = nil,
+1
View File
@@ -501,6 +501,7 @@ pfUI:RegisterModule("gui", function ()
"none:" .. T["Disable"],
"unit:" .. T["Unit String"],
"name:" .. T["Name"],
"nameshort:" .. T["Name (Short)"],
"level:" .. T["Level"],
"class:" .. T["Class"],
"healthdyn:" .. T["Health - Auto"],