totemplates

This commit is contained in:
Sumsebrum
2022-08-07 05:37:44 +02:00
parent 128f32f57f
commit 391e149b6d
7 changed files with 407 additions and 576 deletions

View File

@ -374,11 +374,23 @@ function TotemPlates:ToggleAddon(nameplate, show)
if addonFrames and #addonFrames > 0 then
if show then
for _,v in ipairs(addonFrames) do
v:Show()
if nameplate.unitFrame and nameplate.unitFrame.UpdateAllElements then
Gladdy:Debug("INFO", "TotemPlates:ToggleAddon - NAME_PLATE_UNIT_ADDED - nameplate.unitFrame:UpdateAllElements")
nameplate.unitFrame:UpdateAllElements("NAME_PLATE_UNIT_ADDED")
else
Gladdy:Debug("INFO", "TotemPlates:ToggleAddon - NAME_PLATE_UNIT_ADDED - Show")
v:Show()
end
end
else
for _,v in ipairs(addonFrames) do
v:Hide()
if nameplate.unitFrame and nameplate.unitFrame.UpdateAllElements then
Gladdy:Debug("INFO", "TotemPlates:ToggleAddon - NAME_PLATE_UNIT_REMOVED - nameplate.unitFrame:UpdateAllElements")
nameplate.unitFrame:UpdateAllElements("NAME_PLATE_UNIT_REMOVED")
else
Gladdy:Debug("INFO", "TotemPlates:ToggleAddon - NAME_PLATE_UNIT_REMOVED - Hide")
v:Hide()
end
end
end
end