You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
155 lines
5.5 KiB
155 lines
5.5 KiB
<Ui>
|
|
|
|
<Script file="menus.lua"/>
|
|
|
|
<!-- this is a parent frame template for each menu level -->
|
|
<Frame name="RematchMenuFrameTemplate" mixin="RematchMenuFrameMixin" clampedToScreen="true" inherits="RematchShadowBackdropTemplate" enableMouse="true" hidden="true" virtual="true">
|
|
<KeyValues>
|
|
<KeyValue key="isRematchMenu" value="true" type="boolean"/>
|
|
<KeyValue key="timer" value="0" type="number"/>
|
|
</KeyValues>
|
|
<Frames>
|
|
<!-- Title is the top part of the menu with a brown/gold background to display
|
|
what menu is being shown in the Title.Text fontstring below -->
|
|
<Frame parentKey="Title" useParentLevel="true">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" x="3" y="-3"/>
|
|
<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" x="-3" y="-23"/>
|
|
</Anchors>
|
|
<Layers>
|
|
<Layer level="BACKGROUND" textureSubLevel="3">
|
|
<Texture file="Interface\PetBattles\PetJournal" setAllPoints="true">
|
|
<TexCoords left="0.189453125" right="0.658203125" top="0.486328125" bottom="0.5708203125"/>
|
|
</Texture>
|
|
</Layer>
|
|
<Layer level="BORDER">
|
|
<Texture file="Interface\Tooltips\UI-Tooltip-Border">
|
|
<Size x="0" y="5"/>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMLEFT" x="0" y="-3"/>
|
|
<Anchor point="BOTTOMRIGHT" x="0" y="-3"/>
|
|
</Anchors>
|
|
<TexCoords left="0.8125" right="0.9453125" top="0.625" bottom="0.9375"/>
|
|
<Color r="0.5" g="0.5" b="0.5"/>
|
|
</Texture>
|
|
<FontString parentKey="Text" inherits="GameFontNormal" justifyH="CENTER" justifyV="CENTER">
|
|
<Size x="0" y="18"/>
|
|
<Anchors>
|
|
<Anchor point="LEFT" x="0" y="-1"/>
|
|
<Anchor point="RIGHT" x="0" y="-1"/>
|
|
</Anchors>
|
|
<Color r="1" g="0.82" b="0.5"/>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
</Frame>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnHide method="OnHide"/>
|
|
<OnUpdate method="OnUpdate"/>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<!-- the menu item buttons that display all text/options (aside from title which is a part of the parent frame) -->
|
|
<Button name="RematchMenuButtonTemplate" mixin="RematchMenuButtonMixin" virtual="true">
|
|
<Size x="0" y="20"/>
|
|
<Layers>
|
|
<Layer level="BACKGROUND">
|
|
<Texture parentKey="Highlight" hidden="true">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" x="-2" y="0"/>
|
|
<Anchor point="BOTTOMRIGHT" x="2" y="0"/>
|
|
</Anchors>
|
|
<!-- <Color r=".25" g=".5" b="1" a=".25"/> -->
|
|
<Color r="1" g="1" b="1" a="0.1"/>
|
|
</Texture>
|
|
</Layer>
|
|
<Layer level="ARTWORK">
|
|
<Texture parentKey="Check" file="Interface\Addons\Rematch\Textures\checkbuttons" hidden="true">
|
|
<Size x="22" y="22"/>
|
|
<Anchors>
|
|
<Anchor point="LEFT" x="-2" y="0"/>
|
|
</Anchors>
|
|
<TexCoords left="0" right="0.25" top="0.5" bottom="0.75"/>
|
|
</Texture>
|
|
<Texture parentKey="Icon" hidden="true">
|
|
<Size x="18" y="18"/>
|
|
<Anchors>
|
|
<Anchor point="LEFT" x="4" y="0"/>
|
|
</Anchors>
|
|
<TexCoords left="0.075" right="0.925" top="0.075" bottom="0.925"/>
|
|
</Texture>
|
|
<FontString parentKey="Text" inherits="GameFontHighlight" justifyH="LEFT">
|
|
<Size x="0" y="18"/>
|
|
<Anchors>
|
|
<Anchor point="LEFT" x="0" y="-1"/>
|
|
</Anchors>
|
|
</FontString>
|
|
<Texture parentKey="Arrow" file="Interface\Buttons\Arrow-Up-Up" hidden="true">
|
|
<Size x="18" y="18"/>
|
|
<Anchors>
|
|
<Anchor point="RIGHT" x="8" y="-1"/>
|
|
</Anchors>
|
|
</Texture>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnEnter method="OnEnter"/>
|
|
<OnLeave method="OnLeave"/>
|
|
<OnMouseDown method="OnMouseDown"/>
|
|
<OnMouseUp method="OnMouseUp"/>
|
|
<OnClick method="OnClick"/>
|
|
</Scripts>
|
|
</Button>
|
|
|
|
<!-- single frame contains the delete and edit buttons for menus with deleteButton or editButton -->
|
|
<Frame name="RematchMenuSideButtons">
|
|
<Size x="32" y="16"/>
|
|
<Frames>
|
|
<Button parentKey="DeleteButton" mixin="RematchMenuSideButtonMixin" inherits="RematchTooltipScripts">
|
|
<Size x="16" y="16"/>
|
|
<Anchors>
|
|
<Anchor point="RIGHT"/>
|
|
</Anchors>
|
|
<NormalTexture file="Interface\Buttons\UI-GroupLoot-Pass-Up"/>
|
|
<PushedTexture file="Interface\Buttons\UI-GroupLoot-Pass-Up">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" x="2" y="-2"/>
|
|
<Anchor point="BOTTOMRIGHT" x="-2" y="2"/>
|
|
</Anchors>
|
|
</PushedTexture>
|
|
<HighlightTexture file="Interface\Buttons\UI-GroupLoot-Pass-Up" alpha="0.5" alphaMode="ADD"/>
|
|
<Scripts>
|
|
<OnEnter method="OnEnter"/>
|
|
<OnLeave method="OnLeave"/>
|
|
<OnClick method="OnClick"/>
|
|
</Scripts>
|
|
</Button>
|
|
<Button parentKey="EditButton" mixin="RematchMenuSideButtonMixin" inherits="RematchTooltipScripts">
|
|
<Size x="16" y="16"/>
|
|
<Anchors>
|
|
<Anchor point="LEFT"/>
|
|
</Anchors>
|
|
<NormalTexture file="Interface\WorldMap\Gear_64Grey">
|
|
<TexCoords left="0.0625" right="0.9375" top="0.0625" bottom="0.9375"/>
|
|
</NormalTexture>
|
|
<PushedTexture file="Interface\WorldMap\Gear_64Grey">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" x="2" y="-2"/>
|
|
<Anchor point="BOTTOMRIGHT" x="-2" y="2"/>
|
|
</Anchors>
|
|
<TexCoords left="0.0625" right="0.9375" top="0.0625" bottom="0.9375"/>
|
|
</PushedTexture>
|
|
<HighlightTexture file="Interface\WorldMap\Gear_64Grey" alpha="0.5" alphaMode="ADD">
|
|
<TexCoords left="0.0625" right="0.9375" top="0.0625" bottom="0.9375"/>
|
|
</HighlightTexture>
|
|
<Scripts>
|
|
<OnEnter method="OnEnter"/>
|
|
<OnLeave method="OnLeave"/>
|
|
<OnClick method="OnClick"/>
|
|
</Scripts>
|
|
</Button>
|
|
</Frames>
|
|
</Frame>
|
|
|
|
</Ui>
|