<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">
<Frame name="GameMenuFrame" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="UIParent">
<Size x="195" y="255"/>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
<BackgroundInsets>
<AbsInset left="11" right="12" top="12" bottom="11"/>
</BackgroundInsets>
<TileSize>
<AbsValue val="32"/>
</TileSize>
<EdgeSize>
<AbsValue val="32"/>
</EdgeSize>
</Backdrop>
<Layers>
<Layer level="ARTWORK">
<Texture name="GameMenuFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
<Size x="256" y="64"/>
<Anchors>
<Anchor point="TOP" x="0" y="12"/>
</Anchors>
</Texture>
<FontString inherits="GameFontNormal" text="MAINMENU_BUTTON">
<Anchors>
<Anchor point="TOP" relativeTo="GameMenuFrameHeader" x="0" y="-14"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="GameMenuButtonHelp" inherits="GameMenuButtonTemplate" text="GAMEMENU_HELP">
<Anchors>
<Anchor point="CENTER" relativePoint="TOP" x="0" y="-42"/>
</Anchors>
<Scripts>
<OnClick>
PlaySound("igMainMenuOption");
ToggleHelpFrame()
</OnClick>
</Scripts>
</Button>
<Button name="GameMenuButtonOptions" inherits="GameMenuButtonTemplate" text="SYSTEMOPTIONS_MENU">
<Anchors>
<Anchor point="TOP" relativeTo="GameMenuButtonHelp" relativePoint="BOTTOM" x="0" y="-1"/>
</Anchors>
<Scripts>
<OnShow>
if (IsBlizzCon()) then
self:Disable();
else
self:Enable();
end
</OnShow>
<OnClick>
PlaySound("igMainMenuOption");
ShowUIPanel(VideoOptionsFrame);
VideoOptionsFrame.lastFrame = GameMenuFrame;
</OnClick>
</Scripts>
</Button>
<Button name="GameMenuButtonUIOptions" inherits="GameMenuButtonTemplate" text="UIOPTIONS_MENU">
<Anchors>
<Anchor point="TOP" relativeTo="GameMenuButtonOptions" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
PlaySound("igMainMenuOption");
ShowUIPanel(InterfaceOptionsFrame);
InterfaceOptionsFrame.lastFrame = GameMenuFrame;
</OnClick>
</Scripts>
</Button>
<Button name="GameMenuButtonMacOptions" inherits="GameMenuButtonTemplate" text="MAC_OPTIONS">
<Anchors>
<Anchor point="TOP" relativeTo="GameMenuButtonOptions" relativePoint="BOTTOM" x="0" y="-1"/>
</Anchors>
<Scripts>
<OnClick>
PlaySound("igMainMenuOption");
HideUIPanel(GameMenuFrame);
ShowUIPanel(MacOptionsFrame);
</OnClick>
<OnLoad>
if(not IsMacClient()) then
GameMenuButtonMacOptions:Hide();
GameMenuButtonUIOptions:SetPoint("TOP", GameMenuButtonOptions, "BOTTOM", 0, -1);
else
GameMenuFrame:SetHeight(GameMenuFrame:GetHeight() + 20);
GameMenuButtonMacOptions:Show();
GameMenuButtonUIOptions:SetPoint("TOP", GameMenuButtonMacOptions, "BOTTOM", 0, -1);
end
</OnLoad>
</Scripts>
</Button>
<Button name="GameMenuButtonKeybindings" inherits="GameMenuButtonTemplate" text="KEY_BINDINGS">
<Anchors>
<Anchor point="TOP" relativeTo="GameMenuButtonUIOptions" relativePoint="BOTTOM" x="0" y="-1"/>
</Anchors>
<Scripts>
<OnClick>
PlaySound("igMainMenuOption");
KeyBindingFrame_LoadUI();
KeyBindingFrame.mode = 1;
ShowUIPanel(KeyBindingFrame);
</OnClick>
</Scripts>
</Button>
<Button name="GameMenuButtonMacros" inherits="GameMenuButtonTemplate" text="MACROS">
<Anchors>
<Anchor point="TOP" relativeTo="GameMenuButtonKeybindings" relativePoint="BOTTOM" x="0" y="-1"/>
</Anchors>
<Scripts>
<OnClick>
PlaySound("igMainMenuOption");
HideUIPanel(GameMenuFrame);
ShowMacroFrame();
</OnClick>
</Scripts>
</Button>
<Button name="GameMenuButtonRatings" inherits="GameMenuButtonTemplate" hidden="true" text="RATINGS_MENU">
<Anchors>
<Anchor point="TOP" relativeTo="GameMenuButtonMacros" relativePoint="BOTTOM" x="0" y="-1"/>
</Anchors>
<Scripts>
<OnClick>
PlaySound("igMainMenuOption");
HideUIPanel(GameMenuFrame);
ShowUIPanel(RatingMenuFrame);
</OnClick>
</Scripts>
</Button>
<Button name="GameMenuButtonLogout" inherits="GameMenuButtonTemplate" text="LOGOUT">
<Anchors>
<Anchor point="TOP" relativeTo="GameMenuButtonMacros" relativePoint="BOTTOM" x="0" y="-16"/>
</Anchors>
<Scripts>
<OnShow>
if (GameMenuButtonRatings:IsShown()) then
self:SetPoint("TOP", GameMenuButtonRatings, "BOTTOM", 0, -1);
end;
if ( not StaticPopup_Visible("CAMP") and not StaticPopup_Visible("QUIT") ) then
self:Enable();
else
self:Disable();
end
</OnShow>
<OnClick>
PlaySound("igMainMenuLogout");
Logout();
HideUIPanel(GameMenuFrame);
</OnClick>
</Scripts>
</Button>
<Button name="GameMenuButtonQuit" inherits="GameMenuButtonTemplate" text="EXIT_GAME">
<Anchors>
<Anchor point="TOP" relativeTo="GameMenuButtonLogout" relativePoint="BOTTOM" x="0" y="-1"/>
</Anchors>
<Scripts>
<OnShow>
if ( not StaticPopup_Visible("CAMP") and not StaticPopup_Visible("QUIT") ) then
self:Enable();
else
self:Disable();
end
</OnShow>
<OnClick>
PlaySound("igMainMenuQuit");
Quit();
HideUIPanel(GameMenuFrame);
</OnClick>
</Scripts>
</Button>
<Button name="GameMenuButtonContinue" inherits="GameMenuButtonTemplate" text="RETURN_TO_GAME">
<Anchors>
<Anchor point="TOP" relativeTo="GameMenuButtonQuit" relativePoint="BOTTOM" x="0" y="-16"/>
</Anchors>
<Scripts>
<OnClick>
PlaySound("igMainMenuContinue");
HideUIPanel(GameMenuFrame);
</OnClick>
</Scripts>
</Button>
</Frames>
<Scripts>
<OnShow>
UpdateMicroButtons();
Disable_BagButtons();
VoiceChat_Toggle();
</OnShow>
<OnHide>
UpdateMicroButtons();
Enable_BagButtons();
</OnHide>
</Scripts>
</Frame>
</Ui>