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_PartyBuffs.lua"/>
        <Button name="CT_PartyBuffButtonTemplate" hidden="true" virtual="true">
                <Size>
                        <AbsDimension x="15" y="15"/>
                </Size>
                <Layers>
                        <Layer level="ARTWORK">
                                <Texture name="$parentIcon" setAllPoints="true"/>
                        </Layer>
                </Layers>
                <Scripts>
                        <OnEnter>
                                GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
                                GameTooltip:SetUnitBuff("party"..this:GetParent():GetID(), this:GetID());
                        </OnEnter>
                        <OnLeave>
                                GameTooltip:Hide();
                        </OnLeave>
                </Scripts>
        </Button>
        <Button name="CT_PartyPetBuffButtonTemplate" hidden="true" virtual="true">
                <Size>
                        <AbsDimension x="15" y="15"/>
                </Size>
                <Layers>
                        <Layer level="ARTWORK">
                                <Texture name="$parentIcon" setAllPoints="true"/>
                        </Layer>
                </Layers>
                <Scripts>
                        <OnEnter>
                                GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
                                GameTooltip:SetUnitBuff("pet", this:GetID());
                        </OnEnter>
                        <OnLeave>
                                GameTooltip:Hide();
                        </OnLeave>
                </Scripts>
        </Button>
        <Button name="CT_PartyDebuffButtonTemplate" hidden="true" virtual="true">
                <Size>
                        <AbsDimension x="15" y="15"/>
                </Size>
                <Layers>
                        <Layer level="ARTWORK">
                                <Texture name="$parentIcon" setAllPoints="true"/>
                                <FontString name="$parentCount" inherits="NumberFontNormalSmall">
                                        <Anchors>
                                                <Anchor point="BOTTOMRIGHT">
                                                        <Offset>
                                                                <AbsDimension x="-1" y="0"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                        <Layer level="OVERLAY">
                                <Texture name="$parentOverlay" file="Interface\Buttons\UI-Debuff-Border">
                                        <Size>
                                                <AbsDimension x="17" y="17"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="CENTER">
                                                        <Offset>
                                                                <AbsDimension x="0" y="0"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </Texture>
                        </Layer>
                </Layers>
                <Scripts>
                        <OnEnter>
                                GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
                                GameTooltip:SetUnitDebuff("party"..this:GetParent():GetID(), this:GetID());
                        </OnEnter>
                        <OnLeave>
                                GameTooltip:Hide();
                        </OnLeave>
                </Scripts>
        </Button>
        <Button name="CT_PartyMemberFrameTemplate" hidden="false" virtual="true">
                <Size>
                        <AbsDimension x="70" y="50"/>
                </Size>
                <Frames>
                        <Button name="$parentBuff1" inherits="CT_PartyBuffButtonTemplate" id="1">
                                <Anchors>
                                        <Anchor point="TOPLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="$parentBuff2" inherits="CT_PartyBuffButtonTemplate" id="2">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentBuff1" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentBuff3" inherits="CT_PartyBuffButtonTemplate" id="3">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentBuff2" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentBuff4" inherits="CT_PartyBuffButtonTemplate" id="4">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentBuff3" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentBuff5" inherits="CT_PartyBuffButtonTemplate" id="5">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentBuff4" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentBuff6" inherits="CT_PartyBuffButtonTemplate" id="6">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentBuff5" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentBuff7" inherits="CT_PartyBuffButtonTemplate" id="7">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentBuff6" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentBuff8" inherits="CT_PartyBuffButtonTemplate" id="8">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentBuff7" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentBuff9" inherits="CT_PartyBuffButtonTemplate" id="9">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentBuff8" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentBuff10" inherits="CT_PartyBuffButtonTemplate" id="10">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentBuff9" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentBuff11" inherits="CT_PartyBuffButtonTemplate" id="11">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentBuff10" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentBuff12" inherits="CT_PartyBuffButtonTemplate" id="12">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentBuff11" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentBuff13" inherits="CT_PartyBuffButtonTemplate" id="13">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentBuff12" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentBuff14" inherits="CT_PartyBuffButtonTemplate" id="14">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentBuff13" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentDebuff1" inherits="CT_PartyDebuffButtonTemplate" id="1">
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="75" y="38"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentDebuff2" inherits="CT_PartyDebuffButtonTemplate" id="2">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentDebuff1" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentDebuff3" inherits="CT_PartyDebuffButtonTemplate" id="3">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentDebuff2" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentDebuff4" inherits="CT_PartyDebuffButtonTemplate" id="4">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentDebuff3" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentDebuff5" inherits="CT_PartyDebuffButtonTemplate" id="5">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentDebuff4" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentDebuff6" inherits="CT_PartyDebuffButtonTemplate" id="6">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentDebuff5" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                </Frames>
                <Scripts>
                        <OnUpdate>
                                CT_PartyBuffs_RefreshBuffs(arg1);
                        </OnUpdate>
                        <OnLoad>
                                this.update = 1;
                                CT_PartyBuffs_OnLoad();
                        </OnLoad>
                </Scripts>
        </Button>
        <Button name="CT_PartyBuffFrame1" hidden="false" inherits="CT_PartyMemberFrameTemplate" parent="UIParent" id="1">
                <Anchors>
                        <Anchor point="TOPLEFT" relativeTo="PartyMemberFrame1">
                                <Offset>
                                        <AbsDimension x="48" y="-32"/>
                                </Offset>
                        </Anchor>
                </Anchors>
        </Button>
        <Button name="CT_PartyBuffFrame2" hidden="false" inherits="CT_PartyMemberFrameTemplate" parent="UIParent" id="2">
                <Anchors>
                        <Anchor point="TOPLEFT" relativeTo="PartyMemberFrame2">
                                <Offset>
                                        <AbsDimension x="48" y="-32"/>
                                </Offset>
                        </Anchor>
                </Anchors>
        </Button>
        <Button name="CT_PartyBuffFrame3" hidden="false" inherits="CT_PartyMemberFrameTemplate" parent="UIParent" id="3">
                <Anchors>
                        <Anchor point="TOPLEFT" relativeTo="PartyMemberFrame3">
                                <Offset>
                                        <AbsDimension x="48" y="-32"/>
                                </Offset>
                        </Anchor>
                </Anchors>
        </Button>
        <Button name="CT_PartyBuffFrame4" hidden="false" inherits="CT_PartyMemberFrameTemplate" parent="UIParent" id="4">
                <Anchors>
                        <Anchor point="TOPLEFT" relativeTo="PartyMemberFrame4">
                                <Offset>
                                        <AbsDimension x="48" y="-32"/>
                                </Offset>
                        </Anchor>
                </Anchors>
        </Button>

        <Button name="CT_PetBuffFrame" hidden="false" parent="PlayerFrame">
                <Anchors>
                        <Anchor point="TOPLEFT">
                                <Offset>
                                        <AbsDimension x="128" y="-102"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                <Size>
                        <AbsDimension x="70" y="50"/>
                </Size>
                <Frames>
                        <Button name="$parentBuff1" inherits="CT_PartyPetBuffButtonTemplate" id="1">
                                <Anchors>
                                        <Anchor point="TOPLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="$parentBuff2" inherits="CT_PartyPetBuffButtonTemplate" id="2">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentBuff1" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentBuff3" inherits="CT_PartyPetBuffButtonTemplate" id="3">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentBuff2" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentBuff4" inherits="CT_PartyPetBuffButtonTemplate" id="4">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentBuff3" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentBuff5" inherits="CT_PartyPetBuffButtonTemplate" id="5">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentBuff4" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentBuff6" inherits="CT_PartyPetBuffButtonTemplate" id="6">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentBuff5" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentBuff7" inherits="CT_PartyPetBuffButtonTemplate" id="7">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentBuff6" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentBuff8" inherits="CT_PartyPetBuffButtonTemplate" id="8">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentBuff7" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentBuff9" inherits="CT_PartyPetBuffButtonTemplate" id="9">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentBuff8" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                </Frames>
                <Scripts>
                        <OnUpdate>
                                CT_PartyBuffs_RefreshPetBuffs(arg1);
                        </OnUpdate>
                        <OnLoad>
                                this.update = 0;
                        </OnLoad>
                </Scripts>
        </Button>
</Ui>