self.scrollBarHideable = true;
ScrollFrame_OnLoad(self);
ScrollFrame_OnScrollRangeChanged(self);
local scrollBar = _G[self:GetName().."ScrollBar"];
self.scrollBarBackground:SetParent(scrollBar);
self.scrollBarArtTop:SetParent(scrollBar);
self.scrollBarArtBottom:SetParent(scrollBar);
self.defaultWidth = self:GetWidth();
local resizeFunc = function(scrollBar)
if ( scrollBar:IsShown() ) then
self:SetWidth(self.defaultWidth);
else
self:SetWidth(self.defaultWidth + scrollBar:GetWidth() + 7);
end
end
scrollBar:SetScript("OnHide", resizeFunc);
scrollBar:SetScript("OnShow", resizeFunc);
resizeFunc(scrollBar);
FauxScrollFrame_OnVerticalScroll(self, offset, BATTLEFIELD_ZONES_HEIGHT, BattlefieldFrame_Update)
PlaySound("igCharacterInfoOpen");
BattlefieldFrame_Update();
CloseBattlefield();
UpdateMicroButtons();
PlaySound("igCharacterInfoClose");