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="XPerl_Target.lua"/>

        <!-- Frame to display Target's health -->

        <Frame name="XPerl_Target" clampedToScreen="true" frameStrata="LOW" movable="true" parent="UIParent" hidden="true" enableMouse="true">
                <Size>
                        <!-- The size of this frame determines what can be clicked for the menu and moving, hence it is the same size as the name frame. -->
                        <AbsDimension x="220" y="60"/>
                </Size>
                <Anchors>
                        <Anchor point="TOPLEFT">
                                <Offset>
                                        <AbsDimension x="271" y="-12"/>
                                </Offset>
                        </Anchor>
                </Anchors>

                <!-- Script Events -->

                <Scripts>
                        <OnLoad>
                                XPerl_Target_OnLoad()
                        </OnLoad>
                </Scripts>

                <Frames>
                        <!-- Target Name -->

                        <Frame name="$parent_NameFrame">
                                <Size>
                                        <AbsDimension x="160" y="24"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT"/>
                                </Anchors>
                                <Backdrop bgFile="Interface\Addons\XPerl\Images\XPerl_FrameBack" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                        <EdgeSize>
                                                <AbsValue val="16"/>
                                        </EdgeSize>
                                        <TileSize>
                                                <AbsValue val="32"/>
                                        </TileSize>
                                        <BackgroundInsets>
                                                <AbsInset left="5" right="5" top="5" bottom="5"/>
                                        </BackgroundInsets>
                                </Backdrop>
                                <Frames>
                                        <StatusBar name="XPerl_Target_CPMeter">
                                                <Anchors>
                                                        <Anchor point="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="6" y="-6"/>
                                                                </Offset>
                                                        </Anchor>
                                                        <Anchor point="BOTTOMRIGHT">
                                                                <Offset>
                                                                        <AbsDimension x="-6" y="6"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <BarTexture name="$parentTex" file="Interface\TargetingFrame\UI-StatusBar">
                                                        <TexCoords left=".8" right="1" top=".8" bottom="1"/>
                                                </BarTexture>
                                                <BarColor r="0" g="0" b="1" a="0.25"/>
                                        </StatusBar>
                                </Frames>
                                <Layers>
                                        <Layer level="OVERLAY">
                                                <!-- Combat Icon -->
                                                <Texture name="$parent_ActivityStatus" file="Interface\CharacterFrame\UI-StateIcon">
                                                        <Size>
                                                                <AbsDimension x="32" y="31"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="RIGHT"/>
                                                        </Anchors>
                                                        <TexCoords left="0.5" right = "1.0" top="0.0" bottom="0.5"/>
                                                </Texture>

                                                <!-- Warning Icon -->
                                                <Texture name="$parent_Warning" file="Interface\Minimap\Ping\ping6" alphaMode="ADD" hidden="true">
                                                        <Size>
                                                                <AbsDimension x="32" y="31"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="TOP" relativePoint="TOP">
                                                                        <Offset>
                                                                                <AbsDimension x="0" y="2"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </Texture>

                                                <!-- Out of Range Icon -->
                                                <Texture name="$parent_RangeStatus" file="Interface\Addons\XPerl\images\XPerl_30Yard" hidden="true">
                                                        <Size>
                                                                <AbsDimension x="48" y="19"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="CENTER" relativePoint="TOP">
                                                                        <Offset>
                                                                                <AbsDimension x="0" y="-2"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <TexCoords left="0" right="1" top="0" bottom="0.4" />
                                                </Texture>

                                                <!-- Raid Target Icon -->
                                                <Texture name="$parent_RaidIcon" file="Interface\TargetingFrame\UI-RaidTargetingIcons" hidden="true">
                                                        <Size>
                                                                <AbsDimension x="32" y="32"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="CENTER"/>
                                                        </Anchors>
                                                        <TexCoords left="0" right="0.25" top="0" bottom="0.25" />
                                                </Texture>

                                                <!-- PVP Icon -->
                                                <Texture name="$parent_PVPStatus" file="Interface\TargetingFrame\UI-PVP-FFA">
                                                        <Size>
                                                                <AbsDimension x="40" y="40"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
                                                                        <Offset>
                                                                                <AbsDimension x="-5" y="0"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </Texture>

                                                <Texture name="$parent_PVPRankIcon">
                                                        <Size><AbsDimension x="32" y="32"/></Size>
                                                        <Anchors>
                                                                <Anchor point="TOP">
                                                                        <Offset><AbsDimension x="-40" y="3"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </Texture>

                                                <!-- Leader Icon -->
                                                <Texture name="$parent_LeaderIcon" file="Interface\GroupFrame\UI-Group-LeaderIcon" hidden="true">
                                                        <Size>
                                                                <AbsDimension x="16" y="16"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="TOP">
                                                                        <Offset>
                                                                                <AbsDimension x="0" y="7"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </Texture>

                                                <!-- Master Loot Icon -->
                                                <Texture name="$parent_MasterIcon" file="Interface\GroupFrame\UI-Group-MasterLooter" hidden="true">
                                                        <Size>
                                                                <AbsDimension x="16" y="16"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="TOP">
                                                                        <Offset>
                                                                                <AbsDimension x="20" y="7"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </Texture>

                                                <FontString name="$parent_NameBarText" inherits="GameFontNormal" text="Error!">
                                                        <Anchors>
                                                                <Anchor point="TOPLEFT"/>
                                                                <Anchor point="BOTTOMRIGHT">
                                                                        <Offset>
                                                                                <AbsDimension x="0" y="1"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>
                                </Layers>
                        </Frame>

                        <!-- Target Portrait -->
                        <Frame name="$parent_PortraitFrame" inherits="XPerl_Portrait_Template">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parent_NameFrame">
                                                <Offset>
                                                        <AbsDimension x="-2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>

                        <!--Level Frame-->

                        <Frame name="$parent_LevelFrame">
                                <Size>
                                        <AbsDimension x="27" y="22"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parent_PortraitFrame">
                                                <Offset>
                                                        <AbsDimension x="-2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Backdrop bgFile="Interface\Addons\XPerl\Images\XPerl_FrameBack" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                        <EdgeSize>
                                                <AbsValue val="16"/>
                                        </EdgeSize>
                                        <TileSize>
                                                <AbsValue val="32"/>
                                        </TileSize>
                                        <BackgroundInsets>
                                                <AbsInset left="5" right="5" top="5" bottom="5"/>
                                        </BackgroundInsets>
                                </Backdrop>
                                <Layers>
                                        <Layer level="OVERLAY">
                                                <FontString name="$parentText" inherits="GameFontNormalSmall" text="0" setAllPoints="true"/>
                                        </Layer>
                                </Layers>
                        </Frame>

                        <Frame name="$parent_CreatureType">
                                <Size>
                                        <AbsDimension x="68" y="22"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" relativeTo="$parent_PortraitFrame">
                                                <Offset>
                                                        <AbsDimension x="0" y="2"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Backdrop bgFile="Interface\Addons\XPerl\Images\XPerl_FrameBack" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                        <EdgeSize>
                                                <AbsValue val="16"/>
                                        </EdgeSize>
                                        <TileSize>
                                                <AbsValue val="32"/>
                                        </TileSize>
                                        <BackgroundInsets>
                                                <AbsInset left="5" right="5" top="5" bottom="5"/>
                                        </BackgroundInsets>
                                </Backdrop>
                                <Layers>
                                        <Layer level="OVERLAY">
                                                <FontString name="$parentText" inherits="GameFontNormalSmall" text="none" setAllPoints="true"/>
                                        </Layer>
                                </Layers>
                        </Frame>

                        <Frame name="$parent_TypeFramePlayer">
                                <Size>
                                        <AbsDimension x="30" y="30"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" relativeTo="$parent_PortraitFrame">
                                                <Offset>
                                                        <AbsDimension x="-2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>

                                <Layers>
                                        <Layer level="ARTWORK">
                                                <Texture name="$parent_ClassTexture" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Classes">
                                                        <Size>
                                                                <AbsDimension x="20" y="20"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="TOP" relativePoint="TOP">
                                                                        <Offset>
                                                                                <AbsDimension x="-1" y="-8"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </Texture>
                                        </Layer>
                                </Layers>
                        </Frame>
                        <Frame name="$parent_BossFrame">
                                <Size>
                                        <AbsDimension x="38" y="20"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" relativeTo="$parent_PortraitFrame">
                                                <Offset>
                                                        <AbsDimension x="-2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Backdrop bgFile="Interface\Addons\XPerl\Images\XPerl_FrameBack" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                        <EdgeSize>
                                                <AbsValue val="16"/>
                                        </EdgeSize>
                                        <TileSize>
                                                <AbsValue val="32"/>
                                        </TileSize>
                                        <BackgroundInsets>
                                                <AbsInset left="5" right="5" top="5" bottom="5"/>
                                        </BackgroundInsets>
                                </Backdrop>
                                <Layers>
                                        <Layer level="OVERLAY">
                                                <FontString name="$parentText" inherits="GameFontNormalSmall" text="Elite">
                                                        <Anchors>
                                                                <Anchor point="TOPLEFT"/>
                                                                <Anchor point="BOTTOMRIGHT">
                                                                        <Offset>
                                                                                <AbsDimension x="0" y="1"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>
                                </Layers>
                        </Frame>
                        <Frame name="$parent_CPFrame">
                                <Size>
                                        <AbsDimension x="26" y="22"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parent_LevelFrame">
                                                <Offset>
                                                        <AbsDimension x="-4" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Backdrop bgFile="Interface\Addons\XPerl\Images\XPerl_FrameBack" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                        <EdgeSize>
                                                <AbsValue val="16"/>
                                        </EdgeSize>
                                        <TileSize>
                                                <AbsValue val="32"/>
                                        </TileSize>
                                        <BackgroundInsets>
                                                <AbsInset left="5" right="5" top="5" bottom="5"/>
                                        </BackgroundInsets>
                                </Backdrop>
                                <Layers>
                                        <Layer level="OVERLAY">
                                                <FontString name="$parentText" inherits="GameFontNormalSmall" text="0" setAllPoints="true"/>
                                        </Layer>
                                </Layers>
                        </Frame>

                        <!-- Target Stats -->
                        <Frame name="$parent_StatsFrame" inherits="XPerl_Stats_Template">
                                <Anchors>
                                        <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_NameFrame">
                                                <Offset>
                                                        <AbsDimension x="0" y="2"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>

                        <!-- Cast Click Overlay -->
                        <Button name="$parent_CastClickOverlay" topLevel="true">     --frameStrata="MEDIUM">
                                <HighlightTexture file="Interface\Addons\XPerl\Images\XPerl_Highlight" alphaMode="ADD">
                                        <TexCoords left="0" right="1" top="0.5" bottom="1"/>
                                </HighlightTexture>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parent_NameFrame"/>
                                        <Anchor point="BOTTOMRIGHT" relativeTo="$parent_TypeFramePlayer_ClassTexture">
                                                <Offset>
                                                        <AbsDimension x="2" y="-1"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                this:RegisterForClicks('LeftButtonUp', 'RightButtonUp', 'MiddleButtonUp', 'Button4Up', 'Button5Up')
                                                this:RegisterForDrag("LeftButton")
                                        </OnLoad>
                                        <OnClick>
                                                XPerl_Target_OnClick(arg1)
                                        </OnClick>
                                        <OnDragStart>
                                                if (XPerlLocked == 0) then
                                                        XPerl_Target:StartMoving()
                                                end
                                        </OnDragStart>
                                        <OnDragStop>
                                                XPerl_Target:StopMovingOrSizing()
                                        </OnDragStop>
                                        <OnEnter>
                                                XPerl_PlayerTip("target")
                                        </OnEnter>
                                        <OnLeave>
                                                XPerl_PlayerTipHide()
                                        </OnLeave>
                                </Scripts>

                                <Layers>
                                        <Layer level="OVERLAY">
                                                <FontString name="XPerl_TargetHitIndicator" inherits="NumberFontNormalHuge" hidden="true" text="Error!">
                                                        <FontHeight>
                                                                <AbsValue val="30"/>
                                                        </FontHeight>
                                                        <Color r="1.0" g="1.0" b="1.0"/>
                                                        <Anchors>
                                                                <Anchor point="CENTER" relativePoint="CENTER" relativeTo="XPerl_Target_PortraitFrame"/>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>
                                </Layers>
                        </Button>

                        <!-- Buffs Frame -->
                        <Frame name="$parent_BuffFrame" topLevel="true">     --frameStrata="MEDIUM">
                                <Size>
                                        <AbsDimension x="100" y="50"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent_StatsFrame">
                                                <Offset>
                                                        <AbsDimension x="2" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Frame>
                </Frames>
        </Frame>
</Ui>