MainMenuExpBar.lockShow = 0; SetTextStatusBarText(MainMenuExpBar, MainMenuBarExpText); MainMenuExpBar_Update();
TextStatusBar_Initialize(self); self:RegisterEvent("PLAYER_ENTERING_WORLD"); self:RegisterEvent("PLAYER_XP_UPDATE"); self.textLockable = 1; self.cvar = "xpBarText"; self.cvarLabel = "XP_BAR_TEXT"; self.alwaysPrefix = true;
if ( event == "CVAR_UPDATE" ) then TextStatusBar_OnEvent(self, event, ...); else MainMenuExpBar_Update(); end
if ( GetCVar("xpBarText") == "1" ) then TextStatusBar_UpdateTextString(self); end
TextStatusBar_UpdateTextString(self); ShowTextStatusBarText(self); ExhaustionTick.timer = 1; GameTooltip_AddNewbieTip(self, XPBAR_LABEL, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_XPBAR, 1); GameTooltip.canAddRestStateLine = 1;
HideTextStatusBarText(self); GameTooltip:Hide(); ExhaustionTick.timer = nil;
ExhaustionTick_OnUpdate(ExhaustionTick, elapsed);
if (not self:IsShown()) then return; end TextStatusBar_OnValueChanged(self);
GameTooltip_AddNewbieTip(self, LEAVE_VEHICLE, 1.0, 1.0, 1.0, nil);
RaiseFrameLevel(MainMenuBarArtFrame);