<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="ModernEscapeMenuFrame" parent="UIParent" inherits="BasicFrameTemplateWithInset" movable="true" enableMouse="true" hidden="true">
        <Size x="300" y="500"/>
        <Anchors>
            <Anchor point="CENTER"/>
        </Anchors>
        <Layers>
            <Layer level="BACKGROUND">
                <Texture name="$parentBackground" parentKey="Background">
                    <Anchors>
                        <Anchor point="TOPLEFT" x="14" y="-14" />
                        <Anchor point="BOTTOMRIGHT" x="-14" y="14" />
                    </Anchors>
                    <Color r="0.2" g="0.2" b="0.2"/>
                </Texture>
            </Layer>
            <Layer level="BORDER">
                <Texture name="$parentBackgroundOverlay" parentKey="BackgroundOverlay" alpha="0.5" file="Interface\MountChest\background">
                    <Anchors>
                        <Anchor point="TOPLEFT" x="14" y="-14" />
                        <Anchor point="BOTTOMRIGHT" x="-14" y="14" />
                    </Anchors>
                </Texture>
            </Layer>
        </Layers>
        <Frames>
            <Button name="$parentCloseButton" parentKey="closeButton">
                <Size x="56" y="56"/>
                <Anchors>
                    <Anchor point="TOPRIGHT" x="8" y="8" />
                </Anchors>
                <Scripts>
                    <OnLoad>
                        self.NormalTexture:SetAtlas("Roulette-exit")
                        self.PushedTexture:SetAtlas("Roulette-exit-pressed")
                        self.HighlightTexture:SetAtlas("Roulette-exit-hover")
                    </OnLoad>
                    <OnClick function="UIPanelCloseButton_OnClick"/>
                </Scripts>
                <NormalTexture parentKey="NormalTexture"/>
                <PushedTexture parentKey="PushedTexture"/>
                <HighlightTexture parentKey="HighlightTexture" alphaMode="ADD" alpha="0.1"/>
            </Button>
            <Frame name="$parentHeaderFrame" parentKey="HeaderFrame">
                <Size x="280" y="44"/>
                <Anchors>
                    <Anchor point="TOP" x="0" y="16" />
                </Anchors>
                <Layers>
                    <Layer level="BACKGROUND">
                        <Texture name="$parentBackground" parentKey="Background"/>
                    </Layer>
                    <Layer level="BORDER">
                        <FontString name="$parentTitleText" parentKey="TitleText" font="Interface\CustomFonts\OpenSans-Bold.ttf" text="Menú de Juego">
                            <Anchors>
                                <Anchor point="CENTER" x="0" y="0" />
                            </Anchors>
                            <FontHeight val="15"/>
                        </FontString>
                    </Layer>
                </Layers>
                <Scripts>
                    <OnLoad>
                        self.Background:SetAtlas("Roulette-title-background")
                    </OnLoad>
                </Scripts>
            </Frame>
            
            <Button name="$parentOptionsButton" inherits="UIPanelButtonTemplate" text="Opciones">
                <Size x="200" y="30"/>
                <Anchors>
                    <Anchor point="TOP" x="0" y="-50"/>
                </Anchors>
                <Scripts>
                    <OnClick>
                        ToggleDropDownMenu(1, nil, ConfigurationDropDown, self, 0, 0)
                        PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON)
                    </OnClick>
                </Scripts>
            </Button>
            <Button name="$parentInterfaceButton" inherits="UIPanelButtonTemplate" text="Interfaz">
                <Size x="200" y="30"/>
                <Anchors>
                    <Anchor point="TOP" relativeTo="$parentOptionsButton" relativePoint="BOTTOM" x="0" y="-10"/>
                </Anchors>
                <Scripts>
                    <OnClick>
                        InterfaceOptionsFrame_Show()
                        ModernEscapeMenuFrame:Hide()
                        PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON)
                    </OnClick>
                </Scripts>
            </Button>
            <Button name="$parentMacrosButton" inherits="UIPanelButtonTemplate" text="Macros">
                <Size x="200" y="30"/>
                <Anchors>
                    <Anchor point="TOP" relativeTo="$parentInterfaceButton" relativePoint="BOTTOM" x="0" y="-10"/>
                </Anchors>
                <Scripts>
                    <OnClick>
                        ShowMacroFrame()
                        ModernEscapeMenuFrame:Hide()
                        PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON)
                    </OnClick>
                </Scripts>
            </Button>
            <Button name="$parentHelpButton" inherits="UIPanelButtonTemplate" text="Ayuda">
                <Size x="200" y="30"/>
                <Anchors>
                    <Anchor point="TOP" relativeTo="$parentMacrosButton" relativePoint="BOTTOM" x="0" y="-10"/>
                </Anchors>
                <Scripts>
                    <OnClick>
                        ToggleHelpFrame()
                        ModernEscapeMenuFrame:Hide()
                        PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON)
                    </OnClick>
                </Scripts>
            </Button>
            <Button name="$parentCodeButton" inherits="UIPanelButtonTemplate" text="Códigos Regalo">
                <Size x="200" y="30"/>
                <Anchors>
                    <Anchor point="TOP" relativeTo="$parentHelpButton" relativePoint="BOTTOM" x="0" y="-10"/>
                </Anchors>
                <Scripts>
                    <OnClick>
                        ShowUIPanel(PCodeNash)
                        ModernEscapeMenuFrame:Hide()
                        PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON)
                    </OnClick>
                </Scripts>
            </Button>
            <Button name="$parentKeyBindingsButton" inherits="UIPanelButtonTemplate" text="Teclado">
                <Size x="200" y="30"/>
                <Anchors>
                    <Anchor point="TOP" relativeTo="$parentCodeButton" relativePoint="BOTTOM" x="0" y="-10"/>
                </Anchors>
                <Scripts>
                    <OnClick>
                        KeyBindingFrame_LoadUI()
                        ShowUIPanel(KeyBindingFrame)
                        ModernEscapeMenuFrame:Hide()
                        PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON)
                    </OnClick>
                </Scripts>
            </Button>
            <Button name="$parentStoreButton" inherits="UIPanelButtonTemplate" text="Tienda">
                <Size x="200" y="30"/>
                <Anchors>
                    <Anchor point="TOP" relativeTo="$parentKeyBindingsButton" relativePoint="BOTTOM" x="0" y="-10"/>
                </Anchors>
                <Scripts>
                    <OnClick>
                        ShowUIPanel(ShopMainFrame)
                        ModernEscapeMenuFrame:Hide()
                        PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON)
                    </OnClick>
                </Scripts>
            </Button>
			<Button name="$parentAddOnsButton" inherits="UIPanelButtonTemplate" text="Accesorios">
				<Size x="200" y="30"/>
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentStoreButton" relativePoint="BOTTOM" x="0" y="-10"/>
				</Anchors>
				<Scripts>
					<OnClick>
						ShowUIPanel(ACP_AddonList)
						ModernEscapeMenuFrame:Hide()
						PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON)
					</OnClick>
				</Scripts>
			</Button>


            <Button name="$parentLogoutButton" inherits="UIPanelButtonTemplate" text="Desconectar">
                <Size x="200" y="30"/>
                <Anchors>
                    <Anchor point="TOP" relativeTo="$parentAddOnsButton" relativePoint="BOTTOM" x="0" y="-10"/>
                </Anchors>
                <Scripts>
                    <OnClick>
                        Logout()
                        PlaySound(SOUNDKIT.IG_MAINMENU_LOGOUT)
                    </OnClick>
                </Scripts>
            </Button>
            <Button name="$parentQuitButton" inherits="UIPanelButtonTemplate" text="Salir del Juego">
                <Size x="200" y="30"/>
                <Anchors>
                    <Anchor point="TOP" relativeTo="$parentLogoutButton" relativePoint="BOTTOM" x="0" y="-10"/>
                </Anchors>
                <Scripts>
                    <OnClick>
                        Quit()
                        PlaySound(SOUNDKIT.IG_MAINMENU_QUIT)
                    </OnClick>
                </Scripts>
            </Button>
        </Frames>
        <Scripts>
            <OnLoad>
                self:RegisterForDrag("LeftButton")
            </OnLoad>
            <OnDragStart>
                self:StartMoving()
            </OnDragStart>
            <OnDragStop>
                self:StopMovingOrSizing()
            </OnDragStop>
        </Scripts>
    </Frame>
</Ui>
