
Add option to hide ElvUI bank window if Baganator is active for bank
Closed this issue ยท 1 comments
What version(s) of WoW are you using?
Retail
What problem are you experiencing that led to you asking for this feature?
At present, the ElvUI bank window still displays behind the Baganator window when the bank is opened, and I have not found a way to to disable it in ElvUI's settings. This behavior makes it harder to "read" the Baganator window.
What solution would you like?
Add a checkbox to hide the window.
But how? For myself, I created a micro addon to do this. I struggled to find a way to make it work with just the hide() function, so I changed the container for ElvUI's bank window instead.
local f = CreateFrame("Frame")
f:RegisterEvent("BANKFRAME_OPENED")
f:SetScript("OnEvent",function(self,event,...)
local FrameHolder = CreateFrame("Frame", "HiddenFrameHolder", UIParent, "SecureHandlerStateTemplate")
RegisterStateDriver(FrameHolder, "visibility", "hide")
if C_AddOns.IsAddOnLoaded("Baganator") then
ElvUI_BankContainerFrame:SetParent(FrameHolder)
end
end)
To make the frame show again, change the state driver:
RegisterStateDriver(FrameHolder, "visibility", "show")
Any alternatives you can think of?
No response
Anything else?
Is there a way to do this and I've just missed it? I've looked, but it's possible I'm just a derp.