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);
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT"); GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, 1);
GameTooltip:Hide();
_G[self:GetName().."Highlight"]:SetVertexColor(1.0, 0.82, 0);
BattlefieldButton_OnClick(self, button, down);
GameTooltip_SetDefaultAnchor(GameTooltip, self) GameTooltip:SetText(self.title, HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b); GameTooltip:AddLine(self.tooltip, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1); GameTooltip:Show();
GameTooltip:Hide();
FauxScrollFrame_OnVerticalScroll(self, offset, BATTLEFIELD_ZONES_HEIGHT, BattlefieldFrame_Update)
GameTooltip_SetDefaultAnchor(GameTooltip, self) GameTooltip:SetText(BATTLEFIELD_GROUP_JOIN, HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b); GameTooltip:AddLine(NEWBIE_TOOLTIP_BATTLEFIELD_GROUP_JOIN, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1); GameTooltip:Show();
PlaySound("igCharacterInfoOpen"); BattlefieldFrame_Update();
CloseBattlefield(); UpdateMicroButtons(); PlaySound("igCharacterInfoClose");