mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-20 19:30:49 +00:00
nameplates: add option to hide totems
This commit is contained in:
@@ -526,6 +526,7 @@ function pfUI:LoadConfig()
|
|||||||
pfUI:UpdateConfig("nameplates", nil, "raidiconsize", "16")
|
pfUI:UpdateConfig("nameplates", nil, "raidiconsize", "16")
|
||||||
pfUI:UpdateConfig("nameplates", nil, "players", "0")
|
pfUI:UpdateConfig("nameplates", nil, "players", "0")
|
||||||
pfUI:UpdateConfig("nameplates", nil, "critters", "0")
|
pfUI:UpdateConfig("nameplates", nil, "critters", "0")
|
||||||
|
pfUI:UpdateConfig("nameplates", nil, "totems", "0")
|
||||||
pfUI:UpdateConfig("nameplates", nil, "showhp", "0")
|
pfUI:UpdateConfig("nameplates", nil, "showhp", "0")
|
||||||
pfUI:UpdateConfig("nameplates", nil, "vpos", "-10")
|
pfUI:UpdateConfig("nameplates", nil, "vpos", "-10")
|
||||||
pfUI:UpdateConfig("nameplates", nil, "width", "120")
|
pfUI:UpdateConfig("nameplates", nil, "width", "120")
|
||||||
|
|||||||
@@ -1354,6 +1354,7 @@ pfUI:RegisterModule("gui", function ()
|
|||||||
CreateConfig(this, T["Raid Icon Size"], C.nameplates, "raidiconsize")
|
CreateConfig(this, T["Raid Icon Size"], C.nameplates, "raidiconsize")
|
||||||
CreateConfig(this, T["Show Players Only"], C.nameplates, "players", "checkbox")
|
CreateConfig(this, T["Show Players Only"], C.nameplates, "players", "checkbox")
|
||||||
CreateConfig(this, T["Hide Critters"], C.nameplates, "critters", "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["Show Health Points"], C.nameplates, "showhp", "checkbox")
|
||||||
CreateConfig(this, T["Vertical Position"], C.nameplates, "vpos")
|
CreateConfig(this, T["Vertical Position"], C.nameplates, "vpos")
|
||||||
CreateConfig(this, T["Nameplate Width"], C.nameplates, "width")
|
CreateConfig(this, T["Nameplate Width"], C.nameplates, "width")
|
||||||
|
|||||||
@@ -367,6 +367,15 @@ pfUI:RegisterModule("nameplates", function ()
|
|||||||
end
|
end
|
||||||
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
|
-- level elite indicator
|
||||||
if this.needEliteUpdate and pfUI.nameplates.mobs[unitname] then
|
if this.needEliteUpdate and pfUI.nameplates.mobs[unitname] then
|
||||||
if level:GetText() ~= nil then
|
if level:GetText() ~= nil then
|
||||||
|
|||||||
Reference in New Issue
Block a user