<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
<Script file="MainMenuBar.lua"/>
<Frame name="MainMenuBar" enableMouse="true" parent="UIParent">
<Animations>
<AnimationGroup parentKey="slideOut">
<Translation offsetX="0" offsetY="-180" duration="0.4" order="1"/>
<Scripts>
<OnFinished>
if MainMenuBar.hideOnFinish then
MainMenuBar:Hide();
end
ValidateActionBarTransition();
</OnFinished>
</Scripts>
</AnimationGroup>
</Animations>
<Size>
<AbsDimension x="1024" y="53"/>
</Size>
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
<Frames>
<StatusBar name="MainMenuExpBar" inherits="TextStatusBar">
<Size>
<AbsDimension x="1024" y="11"/>
</Size>
<Anchors>
<Anchor point="TOP"/>
</Anchors>
<Layers>
<!-- Patchwerk INFO
<Texture name="UI-VehicleXP-Divider.png" >
<Size x="9" y="10"/>
<TexCoords left="0.01562500" right="0.15625000" top="0.01562500" bottom="0.17187500"/>
</Texture>
<Texture name="UI-VehicleXP-Left.png" >
<Size x="16" y="16"/>
<TexCoords left="0.18750000" right="0.43750000" top="0.01562500" bottom="0.26562500"/>
</Texture>
<Texture name="UI-VehicleXP-Mid.png" >
<Size x="16" y="16"/>
<TexCoords left="0.46875000" right="0.71875000" top="0.01562500" bottom="0.26562500"/>
</Texture>
<Texture name="UI-VehicleXP-Right.png" >
<Size x="16" y="16"/>
<TexCoords left="0.18750000" right="0.43750000" top="0.29687500" bottom="0.54687500"/>
</Texture-->
<Layer level="BORDER">
<Texture name="ExhaustionLevelFillBar">
<Size>
<AbsDimension x="0" y="10"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="MainMenuExpBar">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Color r="1.0" g="1.0" b="1.0" a="1.0"/>
</Texture>
</Layer>
<Layer level="OVERLAY" textureSubLevel="-1">
<Texture name="MainMenuXPBarTextureLeftCap" file="Interface\MainMenuBar\UI-XP-Bar">
<Size>
<AbsDimension x="14" y="14"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativePoint="LEFT" x="-3" y="0"/>
</Anchors>
<TexCoords left="0.18750000" right="0.43750000" top="0.01562500" bottom="0.26562500"/>
</Texture>
<Texture name="MainMenuXPBarTextureRightCap" file="Interface\MainMenuBar\UI-XP-Bar">
<Size>
<AbsDimension x="14" y="14"/>
</Size>
<Anchors>
<Anchor point="RIGHT" relativePoint="RIGHT" x="3" y="0"/>
</Anchors>
<TexCoords left="0.18750000" right="0.43750000" top="0.29687500" bottom="0.54687500"/>
</Texture>
<Texture name="MainMenuXPBarTextureMid" file="Interface\MainMenuBar\UI-XP-Mid" horizTile="true">
<Size>
<AbsDimension x="14" y="14"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="MainMenuXPBarTextureLeftCap" relativePoint="RIGHT"/>
<Anchor point="RIGHT" relativeTo="MainMenuXPBarTextureRightCap" relativePoint="LEFT"/>
</Anchors>
</Texture>
</Layer>
<Layer level="BACKGROUND">
<Texture>
<Color r="0.0" g="0.0" b="0.0" a="0.5"/>
</Texture>
</Layer>
</Layers>
<Frames>
<Frame name="MainMenuBarOverlayFrame" frameStrata="DIALOG">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="MainMenuBar"/>
<Anchor point="BOTTOMRIGHT" relativeTo="MainMenuBar" y="2"/>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString name="MainMenuBarExpText" inherits="TextStatusBarText">
<Anchors>
<Anchor point="CENTER" relativeTo="MainMenuExpBar">
<Offset>
<AbsDimension x="0" y="1"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
MainMenuExpBar.lockShow = 0;
SetTextStatusBarText(MainMenuExpBar, MainMenuBarExpText);
ExpBar_Update();
</OnLoad>
</Scripts>
</Frame>
</Frames>
<Scripts>
<OnLoad>
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;
MainMenuExpBar_SetWidth(1024);
</OnLoad>
<OnEvent>
if ( event == "CVAR_UPDATE" ) then
TextStatusBar_OnEvent(self, event, ...);
else
ExpBar_Update();
end
</OnEvent>
<OnShow>
if ( GetCVar("xpBarText") == "1" ) then
TextStatusBar_UpdateTextString(self);
end
</OnShow>
<OnEnter>
TextStatusBar_UpdateTextString(self);
ShowTextStatusBarText(self);
ExhaustionTick.timer = 1;
local label = XPBAR_LABEL;
if IsTrialAccount() then
local rLevel = GetRestrictedAccountData();
if UnitLevel("player") >= rLevel then
label = label.." "..RED_FONT_COLOR_CODE..TRIAL_CAPPED.."|r";
end
end
GameTooltip_AddNewbieTip(self, label, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_XPBAR, 1);
GameTooltip.canAddRestStateLine = 1;
ExhaustionToolTipText();
</OnEnter>
<OnLeave>
HideTextStatusBarText(self);
GameTooltip:Hide();
ExhaustionTick.timer = nil;
</OnLeave>
<OnUpdate>
ExhaustionTick_OnUpdate(ExhaustionTick, elapsed);
</OnUpdate>
<OnValueChanged>
if (not self:IsShown()) then
return;
end
TextStatusBar_OnValueChanged(self);
</OnValueChanged>
</Scripts>
<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
<BarColor r="0.58" g="0.0" b="0.55"/>
</StatusBar>
<Frame name="MainMenuBarMaxLevelBar" enableMouse="true" hidden="true">
<Size>
<AbsDimension x="1024" y="7"/>
</Size>
<Anchors>
<Anchor point="TOP" relativeTo="MainMenuBar" relativePoint="TOP">
<Offset>
<AbsDimension x="0" y="-11"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="MainMenuMaxLevelBar0" file="Interface\MainMenuBar\UI-MainMenuBar-MaxLevel">
<Size>
<AbsDimension x="256" y="7"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP">
<Offset>
<AbsDimension x="-384" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="1.0" top="0" bottom="0.21875"/>
</Texture>
<Texture name="MainMenuMaxLevelBar1" file="Interface\MainMenuBar\UI-MainMenuBar-MaxLevel">
<Size>
<AbsDimension x="256" y="7"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="MainMenuMaxLevelBar0" relativePoint="RIGHT"/>
</Anchors>
<TexCoords left="0" right="1.0" top="0.25" bottom="0.46875"/>
</Texture>
<Texture name="MainMenuMaxLevelBar2" file="Interface\MainMenuBar\UI-MainMenuBar-MaxLevel">
<Size>
<AbsDimension x="256" y="7"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="MainMenuMaxLevelBar1" relativePoint="RIGHT"/>
</Anchors>
<TexCoords left="0" right="1.0" top="0.5" bottom="0.71875"/>
</Texture>
<Texture name="MainMenuMaxLevelBar3" file="Interface\MainMenuBar\UI-MainMenuBar-MaxLevel">
<Size>
<AbsDimension x="256" y="7"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="MainMenuMaxLevelBar2" relativePoint="RIGHT"/>
</Anchors>
<TexCoords left="0" right="1.0" top="0.75" bottom="0.96875"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnShow function="UIParent_ManageFramePositions"/>
<OnHide function="UIParent_ManageFramePositions"/>
</Scripts>
</Frame>
<Frame name="MainMenuBarArtFrame">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="MainMenuBar"/>
<Anchor point="BOTTOMRIGHT" relativeTo="MainMenuBar"/>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<Texture name="MainMenuBarTexture0" file="Interface\MainMenuBar\UI-MainMenuBar-Dwarf">
<Size>
<AbsDimension x="256" y="43"/>
</Size>
<Anchors>
<Anchor point="BOTTOM">
<Offset>
<AbsDimension x="-384" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="1.0" top="0.83203125" bottom="1.0"/>
</Texture>
<Texture name="MainMenuBarTexture1" file="Interface\MainMenuBar\UI-MainMenuBar-Dwarf">
<Size>
<AbsDimension x="256" y="43"/>
</Size>
<Anchors>
<Anchor point="BOTTOM">
<Offset>
<AbsDimension x="-128" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="1.0" top="0.58203125" bottom="0.75"/>
</Texture>
<Texture name="MainMenuBarTexture2" file="Interface\MainMenuBar\UI-MainMenuBar-Dwarf">
<Size>
<AbsDimension x="256" y="43"/>
</Size>
<Anchors>
<Anchor point="BOTTOM">
<Offset>
<AbsDimension x="128" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="1.0" top="0.33203125" bottom="0.5"/>
</Texture>
<Texture name="MainMenuBarTexture3" file="Interface\MainMenuBar\UI-MainMenuBar-Dwarf">
<Size>
<AbsDimension x="256" y="43"/>
</Size>
<Anchors>
<Anchor point="BOTTOM">
<Offset>
<AbsDimension x="384" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="1.0" top="0.08203125" bottom="0.25"/>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="MainMenuBarLeftEndCap" file="Interface\MainMenuBar\UI-MainMenuBar-EndCap-Dwarf">
<Size>
<AbsDimension x="128" y="128"/>
</Size>
<Anchors>
<Anchor point="BOTTOM">
<Offset>
<AbsDimension x="-544" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<Texture name="MainMenuBarRightEndCap" file="Interface\MainMenuBar\UI-MainMenuBar-EndCap-Dwarf">
<Size>
<AbsDimension x="128" y="128"/>
</Size>
<Anchors>
<Anchor point="BOTTOM">
<Offset>
<AbsDimension x="544" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="1.0" right="0.0" top="0.0" bottom="1.0"/>
</Texture>
<FontString name="MainMenuBarPageNumber" inherits="GameFontNormalSmall">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="30" y="-5"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad function="MainMenuBar_OnLoad"/>
<OnEvent function="MainMenuBar_OnEvent"/>
</Scripts>
</Frame>
<Button name="MainMenuBarVehicleLeaveButton" hidden="true">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad function="MainMenuBarVehicleLeaveButton_OnLoad"/>
<OnEvent function="MainMenuBarVehicleLeaveButton_OnEvent"/>
<OnClick function="VehicleExit"/>
<OnEnter>
GameTooltip_AddNewbieTip(self, LEAVE_VEHICLE, 1.0, 1.0, 1.0, nil);
</OnEnter>
<OnLeave function="GameTooltip_Hide"/>
</Scripts>
<NormalTexture file="Interface\Vehicles\UI-Vehicles-Button-Exit-Up">
<TexCoords left="0.140625" right="0.859375" top="0.140625" bottom="0.859375"/>
</NormalTexture>
<PushedTexture file="Interface\Vehicles\UI-Vehicles-Button-Exit-Down">
<TexCoords left="0.140625" right="0.859375" top="0.140625" bottom="0.859375"/>
</PushedTexture>
<HighlightTexture alphaMode="ADD" file="Interface\Vehicles\UI-Vehicles-Button-Highlight">
<TexCoords left="0.130625" right="0.879375" top="0.130625" bottom="0.879375"/>
</HighlightTexture>
</Button>
</Frames>
<Scripts>
<OnLoad>
RaiseFrameLevel(MainMenuBarArtFrame);
</OnLoad>
<OnShow>
UpdateMicroButtonsParent(MainMenuBarArtFrame);
MoveMicroButtons("BOTTOMLEFT", MainMenuBarArtFrame, "BOTTOMLEFT", 550, 2, false);
</OnShow>
</Scripts>
</Frame>
<Button name="ExhaustionTick" parent="MainMenuExpBar" hidden="false" frameStrata="DIALOG">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="MainMenuExpBar">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad function="ExhaustionTick_OnLoad"/>
<OnEvent function="ExhaustionTick_OnEvent"/>
<OnEnter function="ExhaustionToolTipText"/>
<OnLeave function="GameTooltip_Hide"/>
</Scripts>
<NormalTexture name="ExhaustionTickNormal" file="Interface\MainMenuBar\UI-ExhaustionTickNormal"/>
<HighlightTexture name="ExhaustionTickHighlight" file="Interface\MainMenuBar\UI-ExhaustionTickHighlight" alphaMode="ADD"/>
</Button>
</Ui>