vanilla-wow-addons – Rev 1

Subversion Repositories:
Rev:
<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">
        <Script file="UltimateUIButton.lua"/>
        <CheckButton name="UltimateUIFeaturesButtonTemplate" virtual="true">
                <Size>
                        <AbsDimension x="37" y="37"/>
                </Size>
                <Layers>
                        <Layer level="BACKGROUND">
                                <Texture name="$parentIconTexture" setAllPoints="true" hidden="true"/>
                                <FontString name="$parentName" inherits="GameFontNormal" hidden="true" justifyH="LEFT">
                                        <Size>
                                                <AbsDimension x="103" y="0"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="LEFT" relativePoint="RIGHT">
                                                        <Offset>
                                                                <AbsDimension x="4" y="4"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                                <FontString name="$parentOtherName" inherits="SubSpellFont" hidden="true" justifyH="LEFT">
                                        <Size>
                                                <AbsDimension x="79" y="18"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="BOTTOMLEFT">
                                                        <Offset>
                                                                <AbsDimension x="0" y="4"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <Scripts>
                        <OnClick>
                                UltimateUIButton_OnClick();
                        </OnClick>
                        <OnEnter>
                                UltimateUIButton_OnEnter();
                        </OnEnter>
                        <OnLeave>
                                UltimateUITooltip:Hide();
                        </OnLeave>
                </Scripts>
                <NormalTexture name="$parentNormalTexture" file="Interface\Buttons\UI-Quickslot2">
                        <Size>
                                <AbsDimension x="64" y="64"/>
                        </Size>
                        <Anchors>
                                <Anchor point="CENTER">
                                        <Offset>
                                                <AbsDimension x="0" y="0"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                </NormalTexture>
                <PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/>
                <HighlightTexture name="$parentHighlight" file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
                <CheckedTexture file="Interface\Buttons\CheckButtonHilight" alphaMode="ADD"/>
        </CheckButton>
        <Frame name="UltimateUIFeatureFrame" toplevel="true" movable="true" enableMouse="true" hidden="true" parent="UIParent">
                <Size>
                        <AbsDimension x="384" y="512"/>
                </Size>
                <Anchors>
                        <Anchor point="TOPLEFT">
                                <Offset>
                                        <AbsDimension x="0" y="-104"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                <HitRectInsets>
                        <AbsInset left="0" right="30" top="0" bottom="70"/>
                </HitRectInsets>
                <Layers>
                        <Layer level="BACKGROUND">
                                <Texture file="Interface\Spellbook\Spellbook-Icon">
                                        <Size>
                                                <AbsDimension x="58" y="58"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="10" y="-8"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </Texture>
                        </Layer>
                        <Layer level="ARTWORK">
                                <Texture file="Interface\Spellbook\UI-SpellbookPanel-TopLeft">
                                        <Size>
                                                <AbsDimension x="256" y="256"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT"/>
                                        </Anchors>
                                </Texture>
                                <Texture file="Interface\Spellbook\UI-SpellbookPanel-TopRight">
                                        <Size>
                                                <AbsDimension x="128" y="256"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPRIGHT"/>
                                        </Anchors>
                                </Texture>
                                <Texture file="Interface\Spellbook\UI-SpellbookPanel-BotLeft">
                                        <Size>
                                                <AbsDimension x="256" y="256"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="BOTTOMLEFT"/>
                                        </Anchors>
                                </Texture>
                                <Texture file="Interface\Spellbook\UI-SpellbookPanel-BotRight">
                                        <Size>
                                                <AbsDimension x="128" y="256"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="BOTTOMRIGHT"/>
                                        </Anchors>
                                </Texture>
                                <FontString name="UltimateUIFeaturesTitleText" inherits="GameFontNormal">
                                        <Anchors>
                                                <Anchor point="CENTER">
                                                        <Offset>
                                                                <AbsDimension x="6" y="230"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <Frames>
                        <Button name="UltimateUIFeatureFramePrevPageButton">
                                <Size>
                                        <AbsDimension x="32" y="32"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="CENTER" relativeTo="UltimateUIFeatureFrame" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="50" y="105"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <FontString inherits="GameFontNormal" justifyH="LEFT" text="PREV">
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="UltimateUIFeatureFramePrevPageButton" relativePoint="RIGHT"/>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnClick>
                                                UltimateUIFeatureFrame_PrevPageButton_OnClick();
                                        </OnClick>
                                </Scripts>
                                <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
                                <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
                                <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Disabled"/>
                                <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
                        </Button>
                        <Button name="UltimateUIFeatureFrameNextPageButton">
                                <Size>
                                        <AbsDimension x="32" y="32"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="CENTER" relativeTo="UltimateUIFeatureFrame" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="314" y="105"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <FontString inherits="GameFontNormal" justifyH="RIGHT" text="NEXT">
                                                        <Anchors>
                                                                <Anchor point="RIGHT" relativeTo="UltimateUIFeatureFrameNextPageButton" relativePoint="LEFT"/>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnClick>
                                                UltimateUIFeatureFrame_NextPageButton_OnClick();
                                        </OnClick>
                                </Scripts>
                                <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/>
                                <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/>
                                <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/>
                                <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
                        </Button>
                        <Button name="UltimateUIFeaturesCloseButton" inherits="UIPanelCloseButton">
                                <Anchors>
                                        <Anchor point="CENTER" relativeTo="UltimateUIFeatureFrame" relativePoint="TOPRIGHT">
                                                <Offset>
                                                        <AbsDimension x="-44" y="-26"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <CheckButton name="UltimateUIFeaturesButton1" inherits="UltimateUIFeaturesButtonTemplate" id="1">
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="34" y="-85"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="UltimateUIFeaturesButton2" inherits="UltimateUIFeaturesButtonTemplate" id="2">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="UltimateUIFeaturesButton1">
                                                <Offset>
                                                        <AbsDimension x="157" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="UltimateUIFeaturesButton3" inherits="UltimateUIFeaturesButtonTemplate" id="3">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="UltimateUIFeaturesButton1" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="-7"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="UltimateUIFeaturesButton4" inherits="UltimateUIFeaturesButtonTemplate" id="4">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="UltimateUIFeaturesButton3">
                                                <Offset>
                                                        <AbsDimension x="157" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="UltimateUIFeaturesButton5" inherits="UltimateUIFeaturesButtonTemplate" id="5">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="UltimateUIFeaturesButton3" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="-7"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="UltimateUIFeaturesButton6" inherits="UltimateUIFeaturesButtonTemplate" id="6">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="UltimateUIFeaturesButton5">
                                                <Offset>
                                                        <AbsDimension x="157" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="UltimateUIFeaturesButton7" inherits="UltimateUIFeaturesButtonTemplate" id="7">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="UltimateUIFeaturesButton5" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="-7"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="UltimateUIFeaturesButton8" inherits="UltimateUIFeaturesButtonTemplate" id="8">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="UltimateUIFeaturesButton7">
                                                <Offset>
                                                        <AbsDimension x="157" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="UltimateUIFeaturesButton9" inherits="UltimateUIFeaturesButtonTemplate" id="9">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="UltimateUIFeaturesButton7" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="-7"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="UltimateUIFeaturesButton10" inherits="UltimateUIFeaturesButtonTemplate" id="10">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="UltimateUIFeaturesButton9">
                                                <Offset>
                                                        <AbsDimension x="157" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="UltimateUIFeaturesButton11" inherits="UltimateUIFeaturesButtonTemplate" id="11">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="UltimateUIFeaturesButton9" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="-7"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="UltimateUIFeaturesButton12" inherits="UltimateUIFeaturesButtonTemplate" id="12">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="UltimateUIFeaturesButton11">
                                                <Offset>
                                                        <AbsDimension x="157" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="UltimateUIFeaturesButton13" inherits="UltimateUIFeaturesButtonTemplate" id="13">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="UltimateUIFeaturesButton11" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="-7"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </CheckButton>
                        <CheckButton name="UltimateUIFeaturesButton14" inherits="UltimateUIFeaturesButtonTemplate" id="14">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="UltimateUIFeaturesButton13">
                                                <Offset>
                                                        <AbsDimension x="157" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </CheckButton>
                </Frames>
                <Scripts>
                        <OnShow>
                                UltimateUIButton_OnShow();
                        </OnShow>
                        <OnHide>
                                UltimateUIButton_OnHide();
                        </OnHide>
                </Scripts>
        </Frame>
        <Button name="UltimateUIMinimapButton" parent="Minimap" movable="true" toplevel="true">
                <Size>
                        <AbsDimension x="34" y="34"/>
                </Size>
                <Anchors>
                        <Anchor point="CENTER" relativeTo="MinimapBackdrop" relativePoint="BOTTOM">
                                <Offset>
                                        <AbsDimension x="-61" y="81"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                <Scripts>
                                <OnEnter>
                                        GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                        GameTooltip:SetText("|cFF006699UUI SpellBook|r\nShift + Left-Click to drag", 1.0, 1.0, 1.0);
                                </OnEnter>
                                <OnLeave>
                                        GameTooltip:Hide();
                                </OnLeave>              

                        <OnClick>
                                if( not IsShiftKeyDown() ) then
                                        ToggleUltimateUIFeatureFrame();
                                end
                        </OnClick>
                                <OnMouseDown>
                                        GameTooltip:Hide();
                                        if(arg1 == "LeftButton" and IsShiftKeyDown() ) then
                                                this:StartMoving();
                                        end
                                </OnMouseDown>
                                
                                <OnMouseUp>
                                        if(arg1 == "LeftButton") then
                                                this:StopMovingOrSizing();
                                        end
                                </OnMouseUp>
                </Scripts>
                <NormalTexture file="Interface\AddOns\UltimateUI\Skin\MinimapButton\UltimateUIButton"/>
                <PushedTexture file="Interface\AddOns\UltimateUI\Skin\MinimapButton\UltimateUIButtonDown"/>
                <DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
                <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
        </Button>
</Ui>