mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 19:19:59 +00:00
nameplates: only show visible nameplates
This commit is contained in:
@@ -16,10 +16,11 @@ pfUI:RegisterModule("nameplates", function ()
|
||||
if not nameplate.done and nameplate:GetObjectType() == "Button" then
|
||||
local regions = nameplate:GetRegions()
|
||||
if regions and regions:GetObjectType() == "Texture" and regions:GetTexture() == "Interface\\Tooltips\\Nameplate-Border" then
|
||||
local visible = nameplate:IsVisible()
|
||||
nameplate:Hide()
|
||||
nameplate:SetScript("OnShow", pfUI.nameplates.CreateNameplate)
|
||||
nameplate:SetScript("OnUpdate", pfUI.nameplates.UpdateNameplate)
|
||||
nameplate:Show()
|
||||
if visible then nameplate:Show() end
|
||||
nameplate.done = true
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user