116 lines
3.7 KiB
XML
116 lines
3.7 KiB
XML
<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/">
|
|
|
|
<!-- Character Button Template -->
|
|
<Button name="Guda_CharacterButtonTemplate" virtual="true" inherits="UIPanelButtonTemplate">
|
|
<Size>
|
|
<AbsDimension x="240" y="30"/>
|
|
</Size>
|
|
<Scripts>
|
|
<OnClick>
|
|
Guda_CharacterButton_OnClick(this)
|
|
</OnClick>
|
|
<OnEnter>
|
|
Guda_CharacterButton_OnEnter(this)
|
|
</OnEnter>
|
|
<OnLeave>
|
|
GameTooltip:Hide()
|
|
</OnLeave>
|
|
</Scripts>
|
|
</Button>
|
|
|
|
<!-- Character Selector Frame -->
|
|
<Frame name="Guda_CharacterSelector" toplevel="true" movable="true" enableMouse="true" hidden="true" parent="UIParent">
|
|
<Size>
|
|
<AbsDimension x="280" y="400"/>
|
|
</Size>
|
|
|
|
<Anchors>
|
|
<Anchor point="CENTER" relativePoint="CENTER" relativeTo="UIParent">
|
|
<Offset>
|
|
<AbsDimension x="0" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</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>
|
|
<!-- Title -->
|
|
<Layer level="ARTWORK">
|
|
<FontString name="$parent_Title" inherits="GameFontNormalLarge">
|
|
<Anchors>
|
|
<Anchor point="TOP" x="0" y="-15"/>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
|
|
<Frames>
|
|
<!-- Close Button -->
|
|
<Button name="$parent_CloseButton" inherits="UIPanelCloseButton">
|
|
<Anchors>
|
|
<Anchor point="TOPRIGHT" x="-5" y="-5"/>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnClick>
|
|
Guda_CharacterSelector:Hide()
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
|
|
<!-- Current Character Button -->
|
|
<Button name="$parent_CurrentCharButton" inherits="UIPanelButtonTemplate" text="Current Character">
|
|
<Size>
|
|
<AbsDimension x="240" y="30"/>
|
|
</Size>
|
|
<Anchors>
|
|
<Anchor point="TOP" x="0" y="-45"/>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnClick>
|
|
Guda_CharacterSelector_ShowCurrent()
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
|
|
<!-- Character List Container -->
|
|
<Frame name="$parent_CharacterList">
|
|
<Size>
|
|
<AbsDimension x="260" y="310"/>
|
|
</Size>
|
|
<Anchors>
|
|
<Anchor point="TOP" x="0" y="-85"/>
|
|
</Anchors>
|
|
</Frame>
|
|
</Frames>
|
|
|
|
<Scripts>
|
|
<OnLoad>
|
|
Guda_CharacterSelector_OnLoad(this)
|
|
</OnLoad>
|
|
<OnShow>
|
|
Guda_CharacterSelector_OnShow(this)
|
|
</OnShow>
|
|
<OnMouseDown>
|
|
if (arg1 == "LeftButton") then
|
|
this:StartMoving()
|
|
end
|
|
</OnMouseDown>
|
|
<OnMouseUp>
|
|
this:StopMovingOrSizing()
|
|
</OnMouseUp>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
</Ui>
|