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/
C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
        <Script file="localization.lua"/>
        <Script file="localization.ge.lua"/>
        <Script file="localization.fr.lua"/>
        <Script file="CT_ItemBuffs.lua"/>
        <Button name="CT_ItemBuffButtonTemplate" virtual="true">
                <Size>
                        <AbsDimension x="30" y="30"/>
                </Size>
                <Layers>
                        <Layer level="ARTWORK">
                                <Texture name="$parentIcon"/>
                                <FontString name="$parentDescribeText" inherits="GameFontNormal" text="">
                                        <Anchors>
                                                <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT">
                                                        <Offset>
                                                                <AbsDimension x="40" y="7"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                                <FontString name="$parentDurationText" inherits="GameFontNormal" text="">
                                        <Anchors>
                                                <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT">
                                                        <Offset>
                                                                <AbsDimension x="40" y="-7"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <Scripts>
                        <OnLoad>
                                getglobal(this:GetName() .. "DescribeText"):SetTextColor(1, 1, 0);
                                getglobal(this:GetName() .. "DurationText"):SetTextColor(1, 1, 0);
                                this.type = 0;
                                this.slotid = 0;
                                this.update = 0;
                                this:Hide();
                        </OnLoad>
                        <OnEnter>
                                GameTooltip:SetOwner(this, "ANCHOR_BOTTOMLEFT");
                                GameTooltip:SetInventoryItem("player", this:GetID());
                        </OnEnter>
                        <OnLeave>
                                GameTooltip:Hide();
                        </OnLeave>
                </Scripts>
        </Button>
        <Frame name="CT_ItemBuffFrame" parent="UIParent" hidden="false" frameStrata="LOW" toplevel="true" movable="true">
                <Size>
                        <AbsDimension x="50" y="50"/>
                </Size>
                <Anchors>
                        <Anchor point="TOPLEFT" relativeTo="CT_BuffButton0" relativePoint="BOTTOMLEFT">
                                <Offset>
                                        <AbsDimension x="0" y="-5"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                <Frames>
                        <Button name="CT_ItemBuffButton1" inherits="CT_ItemBuffButtonTemplate" id="1">
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="CT_ItemBuffButton2" inherits="CT_ItemBuffButtonTemplate" id="2">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="CT_ItemBuffButton1" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="-5"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                </Frames>
                <Scripts>
                        <OnLoad>
                                --CT_ItemBuffFrame_OnLoad();
                                this.update = 0;
                        </OnLoad>
                        <OnUpdate>
                                CT_ItemBuffFrame_OnUpdate(arg1);
                        </OnUpdate>
                </Scripts>
        </Frame>
        <GameTooltip name="CT_IB_TempTooltip" inherits="GameTooltipTemplate" parent="WorldFrame" hidden="true">
                <Scripts>
                        <OnLoad>
                                this:SetOwner(WorldFrame, "ANCHOR_NONE");
                        </OnLoad>
                </Scripts>
        </GameTooltip>
</Ui>