nameplates: add option to hide totems

This commit is contained in:
stokbaek
2017-11-18 01:59:41 +01:00
committed by Shagu
parent 39db877d9e
commit d699fc9e20
3 changed files with 11 additions and 0 deletions
+1
View File
@@ -526,6 +526,7 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("nameplates", nil, "raidiconsize", "16")
pfUI:UpdateConfig("nameplates", nil, "players", "0")
pfUI:UpdateConfig("nameplates", nil, "critters", "0")
pfUI:UpdateConfig("nameplates", nil, "totems", "0")
pfUI:UpdateConfig("nameplates", nil, "showhp", "0")
pfUI:UpdateConfig("nameplates", nil, "vpos", "-10")
pfUI:UpdateConfig("nameplates", nil, "width", "120")
+1
View File
@@ -1354,6 +1354,7 @@ pfUI:RegisterModule("gui", function ()
CreateConfig(this, T["Raid Icon Size"], C.nameplates, "raidiconsize")
CreateConfig(this, T["Show Players Only"], C.nameplates, "players", "checkbox")
CreateConfig(this, T["Hide Critters"], C.nameplates, "critters", "checkbox")
CreateConfig(this, T["Hide Totems"], C.nameplates, "totems", "checkbox")
CreateConfig(this, T["Show Health Points"], C.nameplates, "showhp", "checkbox")
CreateConfig(this, T["Vertical Position"], C.nameplates, "vpos")
CreateConfig(this, T["Nameplate Width"], C.nameplates, "width")
+9
View File
@@ -367,6 +367,15 @@ pfUI:RegisterModule("nameplates", function ()
end
end
-- hide totems
if C.nameplates.totems == "1" and not this.needNameUpdate then
for totem in pairs(L["totems"]) do
if string.find(unitname, totem) then
this:Hide()
end
end
end
-- level elite indicator
if this.needEliteUpdate and pfUI.nameplates.mobs[unitname] then
if level:GetText() ~= nil then