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.
154 lines
6.9 KiB
154 lines
6.9 KiB
|
2 years ago
|
<Ui>
|
||
|
|
<Script file="dropdown.lua"/>
|
||
|
|
|
||
|
|
<Button name="RematchDropDownTemplate" mixin="RematchDropDownMixin" virtual="true">
|
||
|
|
<Size x="120" y="24"/> <!-- this should always be 24 tall -->
|
||
|
|
<Layers>
|
||
|
|
<Layer level="BACKGROUND">
|
||
|
|
<Texture parentKey="Left" file="Interface\AddOns\Rematch\textures\controls">
|
||
|
|
<Size x="24" y="24"/>
|
||
|
|
<Anchors>
|
||
|
|
<Anchor point="LEFT"/>
|
||
|
|
</Anchors>
|
||
|
|
<TexCoords left="0" right="0.1875" top="0" bottom="0.1875"/>
|
||
|
|
</Texture>
|
||
|
|
<Texture parentKey="Right" file="Interface\AddOns\Rematch\textures\controls">
|
||
|
|
<Size x="24" y="24"/>
|
||
|
|
<Anchors>
|
||
|
|
<Anchor point="RIGHT"/>
|
||
|
|
</Anchors>
|
||
|
|
<TexCoords left="0.8125" right="1" top="0" bottom="0.1875"/>
|
||
|
|
</Texture>
|
||
|
|
<Texture parentKey="Middle" file="Interface\AddOns\Rematch\textures\controls">
|
||
|
|
<Size x="0" y="24"/>
|
||
|
|
<Anchors>
|
||
|
|
<Anchor point="LEFT" x="24" y="0"/>
|
||
|
|
<Anchor point="RIGHT" x="-24" y="0"/>
|
||
|
|
</Anchors>
|
||
|
|
<TexCoords left="0.1875" right="0.8125" top="0" bottom="0.1875"/>
|
||
|
|
</Texture>
|
||
|
|
</Layer>
|
||
|
|
<Layer level="ARTWORK">
|
||
|
|
<!-- the down button on the right edge -->
|
||
|
|
<Texture parentKey="DropDownButton" file="Interface\AddOns\Rematch\textures\controls">
|
||
|
|
<Size x="18" y="18"/>
|
||
|
|
<Anchors>
|
||
|
|
<Anchor point="RIGHT" x="-3" y="0"/>
|
||
|
|
</Anchors>
|
||
|
|
<TexCoords left="0.03125" right="0.171875" top="0.75" bottom="0.890625"/>
|
||
|
|
</Texture>
|
||
|
|
<!-- icon for the current dropdown choice -->
|
||
|
|
<Texture parentKey="Icon" hidden="true">
|
||
|
|
<Size x="16" y="16"/>
|
||
|
|
<Anchors>
|
||
|
|
<Anchor point="LEFT" x="4" y="0"/>
|
||
|
|
</Anchors>
|
||
|
|
</Texture>
|
||
|
|
<!-- text displaying the current dropdown choice -->
|
||
|
|
<FontString parentKey="Text" inherits="GameFontHighlight" justifyH="LEFT">
|
||
|
|
<Anchors>
|
||
|
|
<Anchor point="TOPLEFT" x="24" y="0"/>
|
||
|
|
<Anchor point="BOTTOMRIGHT" x="-22" y="0"/>
|
||
|
|
</Anchors>
|
||
|
|
<Color r="0.9" g="0.9" b="0.9"/>
|
||
|
|
</FontString>
|
||
|
|
</Layer>
|
||
|
|
</Layers>
|
||
|
|
<Scripts>
|
||
|
|
<OnEnter method="OnEnter"/>
|
||
|
|
<OnLeave method="OnLeave"/>
|
||
|
|
<OnMouseDown method="OnMouseDown"/>
|
||
|
|
<OnMouseUp method="OnMouseUp"/>
|
||
|
|
<OnClick method="OnClick"/>
|
||
|
|
<OnHide method="OnHide"/>
|
||
|
|
</Scripts>
|
||
|
|
</Button>
|
||
|
|
|
||
|
|
<!-- a ComboBox is a dropdown where the Text is an EditBox instead of a FontString -->
|
||
|
|
<Button name="RematchComboBoxTemplate" mixin="RematchDropDownMixin" virtual="true">
|
||
|
|
<Size x="120" y="24"/> <!-- this should always be 24 tall -->
|
||
|
|
<KeyValues>
|
||
|
|
<KeyValue key="forComboBox" value="true" type="boolean"/>
|
||
|
|
</KeyValues>
|
||
|
|
<Layers>
|
||
|
|
<Layer level="BACKGROUND">
|
||
|
|
<Texture parentKey="Left" file="Interface\AddOns\Rematch\textures\controls">
|
||
|
|
<Size x="24" y="24"/>
|
||
|
|
<Anchors>
|
||
|
|
<Anchor point="LEFT"/>
|
||
|
|
</Anchors>
|
||
|
|
<TexCoords left="0" right="0.1875" top="0" bottom="0.1875"/>
|
||
|
|
</Texture>
|
||
|
|
<Texture parentKey="Right" file="Interface\AddOns\Rematch\textures\controls">
|
||
|
|
<Size x="24" y="24"/>
|
||
|
|
<Anchors>
|
||
|
|
<Anchor point="RIGHT"/>
|
||
|
|
</Anchors>
|
||
|
|
<TexCoords left="0.8125" right="1" top="0" bottom="0.1875"/>
|
||
|
|
</Texture>
|
||
|
|
<Texture parentKey="Middle" file="Interface\AddOns\Rematch\textures\controls">
|
||
|
|
<Size x="0" y="24"/>
|
||
|
|
<Anchors>
|
||
|
|
<Anchor point="LEFT" x="24" y="0"/>
|
||
|
|
<Anchor point="RIGHT" x="-24" y="0"/>
|
||
|
|
</Anchors>
|
||
|
|
<TexCoords left="0.1875" right="0.8125" top="0" bottom="0.1875"/>
|
||
|
|
</Texture>
|
||
|
|
</Layer>
|
||
|
|
<Layer level="ARTWORK">
|
||
|
|
<!-- the down button on the right edge -->
|
||
|
|
<Texture parentKey="DropDownButton" file="Interface\AddOns\Rematch\textures\controls">
|
||
|
|
<Size x="18" y="18"/>
|
||
|
|
<Anchors>
|
||
|
|
<Anchor point="RIGHT" x="-3" y="0"/>
|
||
|
|
</Anchors>
|
||
|
|
<TexCoords left="0.03125" right="0.171875" top="0.75" bottom="0.890625"/>
|
||
|
|
</Texture>
|
||
|
|
<!-- icon for the current dropdown choice -->
|
||
|
|
<Texture parentKey="Icon" hidden="true">
|
||
|
|
<Size x="16" y="16"/>
|
||
|
|
<Anchors>
|
||
|
|
<Anchor point="LEFT" x="4" y="0"/>
|
||
|
|
</Anchors>
|
||
|
|
</Texture>
|
||
|
|
</Layer>
|
||
|
|
</Layers>
|
||
|
|
<Frames>
|
||
|
|
<!-- editbox for displaying the current dropdown choice/entering something else -->
|
||
|
|
<EditBox parentKey="Text" autoFocus="true" mixin="RematchEditBoxMixin">
|
||
|
|
<TextInsets>
|
||
|
|
<AbsInset left="2" right="20" top="1" bottom="-1"/>
|
||
|
|
</TextInsets>
|
||
|
|
<Anchors>
|
||
|
|
<Anchor point="TOPLEFT" x="-4" y="1"/>
|
||
|
|
<Anchor point="BOTTOMRIGHT" x="-18" y="1"/>
|
||
|
|
</Anchors>
|
||
|
|
<Frames>
|
||
|
|
<Button parentKey="Clear" inherits="RematchClearButtonTemplate" hidden="false">
|
||
|
|
<Anchors>
|
||
|
|
<Anchor point="RIGHT" x="-3" y="0"/>
|
||
|
|
</Anchors>
|
||
|
|
</Button>
|
||
|
|
</Frames>
|
||
|
|
<FontString inherits="GameFontHighlight"/>
|
||
|
|
<Scripts>
|
||
|
|
<OnLoad method="OnLoad"/>
|
||
|
|
<OnEscapePressed method="OnEscapePressed"/>
|
||
|
|
<OnEditFocusLost method="OnEditFocusLost"/>
|
||
|
|
<OnEditFocusGained method="OnEditFocusGained"/>
|
||
|
|
</Scripts>
|
||
|
|
</EditBox>
|
||
|
|
</Frames>
|
||
|
|
<Scripts>
|
||
|
|
<OnEnter method="OnEnter"/>
|
||
|
|
<OnLeave method="OnLeave"/>
|
||
|
|
<OnMouseDown method="OnMouseDown"/>
|
||
|
|
<OnMouseUp method="OnMouseUp"/>
|
||
|
|
<OnClick method="OnClick"/>
|
||
|
|
<OnHide method="OnHide"/>
|
||
|
|
</Scripts>
|
||
|
|
</Button>
|
||
|
|
|
||
|
|
|
||
|
|
</Ui>
|