self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
local currentTab = self:GetParent():GetID();
if ( GetCurrentGuildBankTab() ~= currentTab or button == "RightButton" ) then
PlaySound("GuildBankOpenBag");
end
GuildBankTab_OnClick(self, button, currentTab);
GameTooltip:SetOwner(self, "ANCHOR_LEFT");
GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, 1);
GameTooltip:Hide();
GuildBankPopupButton_OnClick(self, button, down);
SmallMoneyFrame_OnLoad(self, "GUILDBANK");
SmallMoneyFrame_OnLoad(self, "GUILDBANKWITHDRAW");
SmallMoneyFrame_OnLoad(self);
MoneyFrame_SetType(self, "STATIC");
SetItemRef(link, text, button);
FauxScrollFrame_OnVerticalScroll(self, offset, GUILDBANK_TRANSACTION_HEIGHT, GuildBankLogScroll)
if ( CanEditGuildTabInfo(GetCurrentGuildBankTab()) ) then
GuildBankTabInfoEditBox:SetFocus();
else
GuildBankTabInfoEditBox:ClearFocus();
end
if ( CanEditGuildTabInfo(GetCurrentGuildBankTab()) ) then
GuildBankTabInfoEditBox:SetFocus();
else
GuildBankTabInfoEditBox:ClearFocus();
end
ScrollingEdit_OnTextChanged(self, self:GetParent());
local currentTab = GetCurrentGuildBankTab();
if ( currentTab > GetNumGuildBankTabs() ) then
GuildBankInfoSaveButton:Hide();
elseif ( CanEditGuildTabInfo(currentTab) ) then
GuildBankInfoSaveButton:Show();
else
GuildBankInfoSaveButton:Hide();
end
ScrollingEdit_OnCursorChanged(self, x, y-10, w, h);
ScrollingEdit_OnUpdate(self, elapsed, self:GetParent());
GuildBankInfoSaveButton:Click();
GuildBankPopupFrame:Hide();
StaticPopup_Hide("GUILDBANK_WITHDRAW");
StaticPopup_Hide("GUILDBANK_DEPOSIT");
StaticPopup_Hide("CONFIRM_BUY_GUILDBANK_TAB");
CloseGuildBankFrame();
PlaySound("GuildVaultClose");
if ( GuildBankPopupOkayButton:IsEnabled() ~= 0 ) then
GuildBankPopupOkayButton_OnClick(self);
end
GuildBankPopupEditBox:ClearFocus();
FauxScrollFrame_OnVerticalScroll(self, offset, GUILDBANK_ICON_ROW_HEIGHT, GuildBankPopupFrame_Update);
PlaySound("igCharacterInfoTab");