86e98d6bcf
* from retail * (fix) improve pixel snapping by reapplying borders * update spinbox texture * add icons, loaded, standby, unloaded behavior from retail * further use of ported inputbox and cleanup to ported frames * move templates into WeakAuras and upversion
343 lines
18 KiB
XML
343 lines
18 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/
|
|
..\FrameXML\UI.xsd">
|
|
|
|
<!--
|
|
*******************************************************************************
|
|
PortraitFrameTemplate (Retail 11.0.5 (57171))
|
|
This is an empty frame with space for a portrait/icon in the top left corner.
|
|
*******************************************************************************
|
|
-->
|
|
|
|
<Frame name="WA_PortraitFrameTemplate" virtual="true" frameLevel="1">
|
|
<Size x="338" y="424"/>
|
|
<Frames>
|
|
<!-- NineSlice Borders -->
|
|
<Frame name="$parentNineSlice" parentKey="NineSlice" setAllPoints="true" frameLevel="3">
|
|
<Layers>
|
|
<Layer level="OVERLAY">
|
|
<!-- Top Left Corner -->
|
|
<Texture name="$parentTopLeftCorner" file="Interface\AddOns\WeakAuras\Media\Textures\UIFrameMetal2x" parentKey="TopLeftCorner">
|
|
<Size x="75" y="75"/>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset>
|
|
<AbsDimension x="-13" y="16"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
<TexCoords left="0.00195312" right="0.294922" top="0.298828" bottom="0.591797"/>
|
|
</Texture>
|
|
<Texture name="$parentTopLeftCornerNoPortrait" file="Interface\AddOns\WeakAuras\Media\Textures\UIFrameMetal2x" parentKey="TopLeftCornerNoPortrait" hidden="true">
|
|
<Size x="75" y="75"/>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset>
|
|
<AbsDimension x="-8" y="16"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
<TexCoords left="0.00195312" right="0.294922" top="0.00195312" bottom="0.294922"/>
|
|
</Texture>
|
|
<!-- Top Right Corner -->
|
|
<Texture name="$parentTopRightCorner" file="Interface\AddOns\WeakAuras\Media\Textures\UIFrameMetal2x" parentKey="TopRightCorner">
|
|
<Size x="75" y="75"/>
|
|
<Anchors>
|
|
<Anchor point="TOPRIGHT">
|
|
<Offset>
|
|
<AbsDimension x="4" y="16"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
<TexCoords left="0.298828" right="0.591797" top="0.00195312" bottom="0.294922"/>
|
|
</Texture>
|
|
<!-- Bottom Left Corner -->
|
|
<Texture name="$parentBottomLeftCorner" file="Interface\AddOns\WeakAuras\Media\Textures\UIFrameMetal2x" parentKey="BottomLeftCorner">
|
|
<Size x="32" y="32"/>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMLEFT">
|
|
<Offset>
|
|
<AbsDimension x="-13" y="-3"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
<TexCoords left="0.298828" right="0.423828" top="0.298828" bottom="0.423828"/>
|
|
</Texture>
|
|
<!-- Bottom Right Corner -->
|
|
<Texture name="$parentBottomRightCorner" file="Interface\AddOns\WeakAuras\Media\Textures\UIFrameMetal2x" parentKey="BottomRightCorner">
|
|
<Size x="32" y="32"/>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset>
|
|
<AbsDimension x="4" y="-3"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
<TexCoords left="0.427734" right="0.552734" top="0.298828" bottom="0.423828"/>
|
|
</Texture>
|
|
<!-- Top Edge -->
|
|
<Texture name="$parentTopEdge" file="Interface\AddOns\WeakAuras\Media\Textures\UIFrameMetalHorizontal2x" parentKey="TopEdge" horizTile="true">
|
|
<Size x="32" y="75"/>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeTo="$parentTopLeftCorner" relativePoint="TOPRIGHT">
|
|
<Offset>
|
|
<AbsDimension x="0" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
<Anchor point="TOPRIGHT" relativeTo="$parentTopRightCorner" relativePoint="TOPLEFT">
|
|
<Offset>
|
|
<AbsDimension x="0" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
<TexCoords left="0.00000000" right="1.00000000" top="0.00390625" bottom="0.589844"/>
|
|
</Texture>
|
|
<!-- Bottom Edge -->
|
|
<Texture name="$parentBottomEdge" file="Interface\AddOns\WeakAuras\Media\Textures\UIFrameMetalHorizontal2x" parentKey="BottomEdge" horizTile="true">
|
|
<Size x="32" y="32"/>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMLEFT" relativeTo="$parentBottomLeftCorner" relativePoint="BOTTOMRIGHT">
|
|
<Offset>
|
|
<AbsDimension x="0" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomRightCorner" relativePoint="BOTTOMLEFT">
|
|
<Offset>
|
|
<AbsDimension x="0" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
<TexCoords left="0.00000000" right="0.50000000" top="0.597656" bottom="0.847656"/>
|
|
</Texture>
|
|
<!-- Left Edge -->
|
|
<Texture name="$parentLeftEdge" file="Interface\AddOns\WeakAuras\Media\Textures\UIFrameMetalVertical2x" parentKey="LeftEdge" vertTile="true">
|
|
<Size x="75" y="8"/>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeTo="$parentTopLeftCorner" relativePoint="BOTTOMLEFT">
|
|
<Offset>
|
|
<AbsDimension x="0" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMLEFT" relativeTo="$parentBottomLeftCorner" relativePoint="TOPLEFT">
|
|
<Offset>
|
|
<AbsDimension x="0" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
<TexCoords left="0.00195312" right="0.294922" top="0" bottom="1"/>
|
|
</Texture>
|
|
<!-- Right Edge -->
|
|
<Texture name="$parentRightEdge" file="Interface\AddOns\WeakAuras\Media\Textures\UIFrameMetalVertical2x" parentKey="RightEdge" vertTile="true">
|
|
<Size x="75" y="8"/>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeTo="$parentTopRightCorner" relativePoint="BOTTOMLEFT">
|
|
<Offset>
|
|
<AbsDimension x="0" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMLEFT" relativeTo="$parentBottomRightCorner" relativePoint="TOPLEFT">
|
|
<Offset>
|
|
<AbsDimension x="0" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
<TexCoords left="0.298828" right="0.591797" top="0" bottom="1"/>
|
|
</Texture>
|
|
</Layer>
|
|
</Layers>
|
|
</Frame>
|
|
<!-- Portrait Container -->
|
|
<Frame parentKey="PortraitContainer" frameLevel="3">
|
|
<Size x="1" y="1"/>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT"/>
|
|
</Anchors>
|
|
<Layers>
|
|
<Layer level="ARTWORK">
|
|
<!-- Portrait -->
|
|
<Texture name="$parentPortrait" parentKey="portrait">
|
|
<Size x="62" y="62"/>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" x="-5" y="7"/>
|
|
</Anchors>
|
|
</Texture>
|
|
</Layer>
|
|
</Layers>
|
|
</Frame>
|
|
<!-- Title Container -->
|
|
<Frame parentKey="TitleContainer" frameLevel="4">
|
|
<Size x="0" y="20"/>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" x="58" y="-1"/>
|
|
<Anchor point="TOPRIGHT" x="-24" y="-1"/>
|
|
</Anchors>
|
|
<Layers>
|
|
<Layer level="OVERLAY">
|
|
<FontString name="$parentTitleText" inherits="GameFontNormal" text="" parentKey="TitleText" wordwrap="false">
|
|
<Anchors>
|
|
<Anchor point="TOP" x="0" y="-5"/>
|
|
<Anchor point="LEFT"/>
|
|
<Anchor point="RIGHT"/>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
</Frame>
|
|
<!-- Close Button -->
|
|
<Button parentKey="CloseButton" inherits="UIPanelCloseButton" frameLevel="4">
|
|
<Size x="24" y="24"/>
|
|
<Anchors>
|
|
<Anchor point="TOPRIGHT" x="0" y="0"/>
|
|
</Anchors>
|
|
<NormalTexture file="Interface\AddOns\WeakAuras\Media\Textures\redbutton2x">
|
|
<TexCoords left="0.152344" right="0.292969" top="0.0078125" bottom="0.304688"/>
|
|
</NormalTexture>
|
|
<PushedTexture file="Interface\AddOns\WeakAuras\Media\Textures\redbutton2x">
|
|
<TexCoords left="0.152344" right="0.292969" top="0.320312" bottom="0.617188"/>
|
|
</PushedTexture>
|
|
<DisabledTexture file="Interface\AddOns\WeakAuras\Media\Textures\redbutton2x">
|
|
<TexCoords left="0.152344" right="0.292969" top="0.632812" bottom="0.929688"/>
|
|
</DisabledTexture>
|
|
<HighlightTexture file="Interface\AddOns\WeakAuras\Media\Textures\redbutton2x" alphaMode="ADD">
|
|
<TexCoords left="0.449219" right="0.589844" top="0.0078125" bottom="0.304688"/>
|
|
</HighlightTexture>
|
|
</Button>
|
|
</Frames>
|
|
<Layers>
|
|
<Layer level="BACKGROUND">
|
|
<Texture parentKey="Bg" file="Interface\AddOns\WeakAuras\Media\Textures\UI-Background-Rock" horizTile="true" vertTile="true">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" x="2" y="-21"/>
|
|
<Anchor point="BOTTOMRIGHT" x="-2" y="2"/>
|
|
</Anchors>
|
|
</Texture>
|
|
</Layer>
|
|
<Layer level="BORDER">
|
|
<Texture parentKey="TopTileStreaks" file="Interface\AddOns\WeakAuras\Media\Textures\UIFrameHorizontal" horizTile="true">
|
|
<Size x="256" y="43"/>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" x="6" y="-21"/>
|
|
<Anchor point="TOPRIGHT" x="-2" y="-21"/>
|
|
</Anchors>
|
|
<TexCoords left="0.00000000" right="1.00000000" top="0.0078125" bottom="0.34375"/>
|
|
</Texture>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnLoad>
|
|
WA_PortraitFrameTemplate_Mixin(self);
|
|
</OnLoad>
|
|
<OnSizeChanged>
|
|
WA_UpdateNineSliceBorders(self);
|
|
</OnSizeChanged>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<!--
|
|
*******************************************************************************
|
|
MaximizeMinimizeButtonFrameTemplate (Retail 11.0.5 (57171))
|
|
Maximize and Minimize Button with mixedin Callbacks.
|
|
*******************************************************************************
|
|
-->
|
|
|
|
<Frame name="WA_MaximizeMinimizeButtonFrameTemplate" virtual="true" frameLevel="4">
|
|
<Size x="24" y="24"/>
|
|
<Frames>
|
|
<Button name="MaximizeButton" parentKey="MaximizeButton" setAllPoints="true" hidden="true">
|
|
<Scripts>
|
|
<OnClick>
|
|
self:GetParent():Maximize();
|
|
PlaySound("igMainMenuOptionCheckBoxOn");
|
|
</OnClick>
|
|
</Scripts>
|
|
<NormalTexture file="Interface\AddOns\WeakAuras\Media\Textures\redbutton2x">
|
|
<TexCoords left="0.300781" right="0.441406" top="0.0078125" bottom="0.304688"/>
|
|
</NormalTexture>
|
|
<PushedTexture file="Interface\AddOns\WeakAuras\Media\Textures\redbutton2x">
|
|
<TexCoords left="0.300781" right="0.441406" top="0.320312" bottom="0.617188"/>
|
|
</PushedTexture>
|
|
<DisabledTexture file="Interface\AddOns\WeakAuras\Media\Textures\redbutton2x">
|
|
<TexCoords left="0.300781" right="0.441406" top="0.632812" bottom="0.929688"/>
|
|
</DisabledTexture>
|
|
<HighlightTexture file="Interface\AddOns\WeakAuras\Media\Textures\redbutton2x" alphaMode="ADD">
|
|
<TexCoords left="0.449219" right="0.589844" top="0.0078125" bottom="0.304688"/>
|
|
</HighlightTexture>
|
|
</Button>
|
|
<Button name="$parentMinimizeButton" parentKey="MinimizeButton" setAllPoints="true">
|
|
<Scripts>
|
|
<OnClick>
|
|
self:GetParent():Minimize();
|
|
PlaySound("igMainMenuOptionCheckBoxOn");
|
|
</OnClick>
|
|
</Scripts>
|
|
<NormalTexture file="Interface\AddOns\WeakAuras\Media\Textures\redbutton2x">
|
|
<TexCoords left="0.00390625" right="0.144531" top="0.0078125" bottom="0.304688"/>
|
|
</NormalTexture>
|
|
<PushedTexture file="Interface\AddOns\WeakAuras\Media\Textures\redbutton2x">
|
|
<TexCoords left="0.00390625" right="0.144531" top="0.320312" bottom="0.617188"/>
|
|
</PushedTexture>
|
|
<DisabledTexture file="Interface\AddOns\WeakAuras\Media\Textures\redbutton2x">
|
|
<TexCoords left="0.00390625" right="0.144531" top="0.632812" bottom="0.929688"/>
|
|
</DisabledTexture>
|
|
<HighlightTexture file="Interface\AddOns\WeakAuras\Media\Textures\redbutton2x" alphaMode="ADD">
|
|
<TexCoords left="0.449219" right="0.589844" top="0.0078125" bottom="0.304688"/>
|
|
</HighlightTexture>
|
|
</Button>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
WA_MaximizeMinimizeButtonFrame_Mixin(self);
|
|
</OnLoad>
|
|
<OnShow>
|
|
self:OnShow();
|
|
</OnShow>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<!--
|
|
*******************************************************************************
|
|
InputBoxTemplate (Retail 11.0.5 (57171))
|
|
*******************************************************************************
|
|
-->
|
|
|
|
<EditBox name="WA_InputBoxTemplate" enableMouse="true" virtual="true">
|
|
<Layers>
|
|
<Layer level="BACKGROUND">
|
|
<Texture name="$parentLeft" parentKey="Left" file="Interface\AddOns\WeakAuras\Media\Textures\CommonSearch">
|
|
<Size x="8" y="20"/>
|
|
<Anchors>
|
|
<Anchor point="LEFT" x="-5" y="0"/>
|
|
</Anchors>
|
|
<TexCoords left="0.886719" right="0.949219" top="0.335938" bottom="0.648438"/>
|
|
</Texture>
|
|
<Texture name="$parentRight" parentKey="Right" file="Interface\AddOns\WeakAuras\Media\Textures\CommonSearch">
|
|
<Size x="8" y="20"/>
|
|
<Anchors>
|
|
<Anchor point="RIGHT" x="0" y="0"/>
|
|
</Anchors>
|
|
<TexCoords left="0.00390625" right="0.0664062" top="0.664062" bottom="0.976562"/>
|
|
</Texture>
|
|
<Texture name="$parentMiddle" parentKey="Middle" file="Interface\AddOns\WeakAuras\Media\Textures\CommonSearch">
|
|
<Size x="10" y="20"/>
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
|
|
<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"/>
|
|
</Anchors>
|
|
<TexCoords left="0.00390625" right="0.878906" top="0.335938" bottom="0.648438"/>
|
|
</Texture>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnEscapePressed>
|
|
EditBox_ClearFocus(self);
|
|
</OnEscapePressed>
|
|
<OnEditFocusLost>
|
|
EditBox_ClearHighlight(self);
|
|
</OnEditFocusLost>
|
|
<OnEditFocusGained>
|
|
EditBox_HighlightText(self);
|
|
</OnEditFocusGained>
|
|
</Scripts>
|
|
<FontString inherits="ChatFontNormal"/>
|
|
</EditBox>
|
|
</Ui>
|