vanilla-wow-addons – Rev 1
?pathlinks?
<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="CT_TargetFrame.lua"/>
<Button name="CT_UnitFrames_BuffButtonTemplate" virtual="true" inherits="TargetBuffButtonTemplate">
<Size>
<AbsDimension x="17" y="17"/>
</Size>
</Button>
<Button name="TargetFrameBuff6" id="6" parent="TargetFrame" inherits="CT_UnitFrames_BuffButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="TargetFrameBuff5">
<Offset>
<AbsDimension x="3" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="TargetFrameBuff7" id="7" parent="TargetFrame" inherits="CT_UnitFrames_BuffButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="TargetFrameBuff1">
<Offset>
<AbsDimension x="0" y="-3"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="TargetFrameBuff8" id="8" parent="TargetFrame" inherits="CT_UnitFrames_BuffButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="TargetFrameBuff7">
<Offset>
<AbsDimension x="3" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="TargetFrameBuff9" id="9" parent="TargetFrame" inherits="CT_UnitFrames_BuffButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="TargetFrameBuff8">
<Offset>
<AbsDimension x="3" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="TargetFrameBuff10" id="10" parent="TargetFrame" inherits="CT_UnitFrames_BuffButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="TargetFrameBuff9">
<Offset>
<AbsDimension x="3" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="TargetFrameBuff11" id="11" parent="TargetFrame" inherits="CT_UnitFrames_BuffButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="TargetFrameBuff10">
<Offset>
<AbsDimension x="3" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="TargetFrameBuff12" id="12" parent="TargetFrame" inherits="CT_UnitFrames_BuffButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="TargetFrameBuff11">
<Offset>
<AbsDimension x="3" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="TargetFrameBuff13" id="13" parent="TargetFrame" inherits="CT_UnitFrames_BuffButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="TargetFrameBuff12">
<Offset>
<AbsDimension x="3" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="TargetFrameBuff14" id="14" parent="TargetFrame" inherits="CT_UnitFrames_BuffButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="TargetFrameBuff13">
<Offset>
<AbsDimension x="3" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="TargetFrameBuff15" id="15" parent="TargetFrame" inherits="CT_UnitFrames_BuffButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="TargetFrameBuff14">
<Offset>
<AbsDimension x="3" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="TargetFrameBuff16" id="16" parent="TargetFrame" inherits="CT_UnitFrames_BuffButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="TargetFrameBuff15">
<Offset>
<AbsDimension x="3" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="TargetFrameBuff17" id="17" parent="TargetFrame" inherits="CT_UnitFrames_BuffButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="TargetFrameBuff16">
<Offset>
<AbsDimension x="3" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="TargetFrameBuff18" id="18" parent="TargetFrame" inherits="CT_UnitFrames_BuffButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="TargetFrameBuff17">
<Offset>
<AbsDimension x="3" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="TargetFrameBuff19" id="19" parent="TargetFrame" inherits="CT_UnitFrames_BuffButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="TargetFrameBuff18">
<Offset>
<AbsDimension x="3" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="TargetFrameBuff20" id="20" parent="TargetFrame" inherits="CT_UnitFrames_BuffButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="TargetFrameBuff19">
<Offset>
<AbsDimension x="0" y="-3"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Frame name="CT_TargetFrame" parent="TargetFrame">
<Scripts>
<OnLoad>
this:RegisterEvent("PLAYER_TARGET_CHANGED");
this:RegisterEvent("UNIT_HEALTH");
this:RegisterEvent("UNIT_MAXHEALTH");
this:RegisterEvent("UNIT_MANA");
this:RegisterEvent("UNIT_MAXMANA");
this:RegisterEvent("UNIT_FOCUS");
this:RegisterEvent("UNIT_MAXFOCUS");
this:RegisterEvent("UNIT_RAGE");
this:RegisterEvent("UNIT_MAXRAGE");
this:RegisterEvent("UNIT_ENERGY");
this:RegisterEvent("UNIT_MAXENERGY");
this:RegisterEvent("UNIT_DISPLAYPOWER");
</OnLoad>
<OnEvent>
CT_TargetFrameOnEvent(event);
</OnEvent>
</Scripts>
<Frames>
<Frame name="$parentClassFrame" hidden="true">
<Size>
<AbsDimension x="100" y="25"/>
</Size>
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
<EdgeSize>
<AbsValue val="16"/>
</EdgeSize>
<TileSize>
<AbsValue val="16"/>
</TileSize>
<BackgroundInsets>
<AbsInset left="5" right="5" top="5" bottom="5"/>
</BackgroundInsets>
</Backdrop>
<Anchors>
<Anchor point="BOTTOM" relativeTo="TargetName" relativePoint="TOP">
<Offset>
<AbsDimension x="0" y="5"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString name="$parentText" hidden="false" inherits="GameFontNormal" text="">
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this:SetBackdropColor(0, 0, 1, 0.5);
this:RegisterEvent("UNIT_FACTION");
this:RegisterEvent("UNIT_DYNAMIC_FLAGS");
this:RegisterEvent("PLAYER_TARGET_CHANGED");
this:RegisterEvent("PARTY_MEMBERS_CHANGED");
</OnLoad>
<OnEvent>
CT_SetTargetClass();
</OnEvent>
</Scripts>
</Frame>
<Frame setAllPoints="true">
<Frames>
<Frame setAllPoints="true">
<Layers>
<Layer level="OVERLAY">
<FontString name="CT_TargetHealthBar" inherits="GameFontNormalSmall" text="">
<Size>
<AbsDimension x="100" y="10" />
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="TargetFrame" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="18" y="-46"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="CT_TargetManaBar" inherits="GameFontNormalSmall" text="">
<Size>
<AbsDimension x="100" y="10" />
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="TargetFrame" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="18" y="-57"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="CT_TargetFrame_Drag" frameStrata="LOW" hidden="false" movable="true" toplevel="true">
<Size>
<AbsDimension x="100" y="20"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="UIParent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="278" y="-25"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
GameTooltip:SetText("Left-click to drag");
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
<OnMouseDown>
if ( arg1 == "LeftButton" ) then
this:StartMoving();
end
</OnMouseDown>
<OnMouseUp>
this:StopMovingOrSizing();
</OnMouseUp>
<OnLoad>
CT_UnitFrames_LinkFrameDrag(TargetFrame, this, "TOPLEFT", "TOPLEFT", -15, 21);
</OnLoad>
</Scripts>
</Button>
</Frames>
</Frame>
</Frames>
</Frame>
</Frames>
</Frame>
</Ui>
Generated by GNU Enscript 1.6.5.90.