totemplates
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user