self.isBonus = 1; self.alwaysBonus = 1; ActionButton_OnLoad(self); self:RegisterEvent("UPDATE_BONUS_ACTIONBAR"); self:SetFrameLevel(self:GetFrameLevel() + 2); local cooldown = _G[self:GetName().."Cooldown"]; cooldown:SetFrameLevel(cooldown:GetFrameLevel() + 2);
VehicleActionButton_OnClick(self, button, down);
self:RegisterForClicks("LeftButtonUp", "RightButtonUp"); _G[self:GetName().."Highlight"]:SetAlpha(0.5);
VehicleSeatIndicatorButton_OnClick(self, button, down);
VehicleSeatIndicatorButton_OnEnter(self, motion);
VehicleSeatIndicatorButton_OnLeave(self, motion);
GameTooltip_AddNewbieTip(self, AIM_UP, 1.0, 1.0, 1.0, nil);
GameTooltip_AddNewbieTip(self, AIM_DOWN, 1.0, 1.0, 1.0, nil);
GameTooltip_AddNewbieTip(self, LEAVE_VEHICLE, 1.0, 1.0, 1.0, nil);
TextStatusBar_Initialize(self); self.textLockable = 1; self.cvar = "playerStatusText"; self.cvarLabel = "STATUS_TEXT_PLAYER"; self.showPercentage = true; self.prefix = HEALTH; self.tooltipAnchorPoint = "ANCHOR_LEFT"; self.alwaysShow = true; UnitFrameHealthBar_Initialize("vehicle", self, VehicleMenuBarHealthBarText, true); UnitFrameHealthBar_Update(self, "vehicle");
UnitFrameHealthBar_OnValueChanged(self, value); VehicleMenuBarStatusBars_ShowTooltip(self);
TextStatusBar_Initialize(self); self.textLockable = 1; self.cvar = "playerStatusText"; self.cvarLabel = "STATUS_TEXT_PLAYER"; self.showPercentage = true; self.tooltipAnchorPoint = "ANCHOR_RIGHT"; self.alwaysShow = true; UnitFrameManaBar_Initialize ("vehicle", self, VehicleMenuBarPowerBarText, true); UnitFrameManaBar_Update(self, "vehicle");
RaiseFrameLevel(VehicleMenuBarArtFrame); VehicleMenuBar_OnLoad(self);