Cidan / BetterBags

A total replacement AddOn for World of Warcraft bag frames, inspired by AdiBags.
MIT License
89 stars 38 forks source link

[Feature]: Dafault open to Warband Bank when visiting actual bank #715

Open Weetbix813 opened 3 weeks ago

Weetbix813 commented 3 weeks ago

Describe the feature

I'd really like to default to the first tab of my Warband Bank account instead of that character's bank tabs when I go to the actual bank. Thanks!

Describe the implementation

When I go to the config options there would be a check box or something for "Default to Warband bank when opening bank"

marco-vrinssen commented 3 weeks ago

@Cidan, the following does the trick.

local function OpenWarbandBank() BankFrameTab3:Click() end

local BankFrameEvents = CreateFrame("Frame") BankFrameEvents:RegisterEvent("BANKFRAME_OPENED") BankFrameEvents:SetScript("OnEvent", function() C_Timer.After(0, OpenWarbandBank) end)