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">

        <!-- Event Frame -->
        <Frame name="DHUD_EventFrame" parent="UIParent" enableMouse="false">
                <Scripts>
                        <OnLoad>
                DHUD_OnLoad();
                        </OnLoad>
                        <OnEvent>
                            DHUD_OnEvent(event, arg1, arg2, arg3);
            </OnEvent>
                        <OnUpdate>
                DHUD_OnUpdate();
                        </OnUpdate>            
                </Scripts>
        </Frame>

    <!-- player dropdown -->
    <Frame name="DHUD_Player_DropDown" inherits="UIDropDownMenuTemplate" id="1" hidden="false">
        <Size>
            <AbsDimension x="160" y="160"/>
        </Size>
        <Anchors>
            <Anchor point="TOP">
                <Offset>
                    <AbsDimension x="0" y="0"/>
                </Offset>
            </Anchor>
        </Anchors>
        <Scripts>
            <OnLoad>
               DHUD_Player_DropDown_OnLoad();
            </OnLoad>
        </Scripts>
    </Frame>

    <!-- target dropdown -->
    <Frame name="DHUD_Target_DropDown" inherits="UIDropDownMenuTemplate" id="1" hidden="false">
        <Size>
            <AbsDimension x="160" y="160"/>
        </Size>
        <Anchors>
            <Anchor point="TOP">
                <Offset>
                    <AbsDimension x="0" y="0"/>
                </Offset>
            </Anchor>
        </Anchors>
        <Scripts>
            <OnLoad>
               DHUD_Target_DropDown_OnLoad();
            </OnLoad>
        </Scripts>
    </Frame>
                        
        <!-- Aura Template -->
        <Button name="DHUD_AuraTemplate" virtual="true">
                <Size>
                        <AbsDimension x="19" y="19"/>
                </Size>
                <Layers>
                        <Layer level="ARTWORK">
                                <Texture name="$parentIcon" setAllPoints="true"/>
                        </Layer>
                        <Layer level="OVERLAY">
                                <Texture name="$parentBorder" file="Interface\Buttons\UI-Debuff-Border" hidden="true">
                                        <Size>
                                                <AbsDimension x="20" y="20"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="CENTER">
                                                        <Offset>
                                                                <AbsDimension x="0" y="0"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </Texture>
                                <FontString name="$parentCount" inherits="NumberFontNormalSmall">
                                        <Anchors>
                                                <Anchor point="BOTTOM">
                                                        <Offset>
                                                                <AbsDimension x="-1" y="0"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <Scripts>
                        <OnLoad>
                                local icon = getglobal(this:GetName().."Icon");
                                icon:SetTexture("Interface\\Icons\\INV_Misc_Ear_Human_01");
                        </OnLoad>
                        <OnEnter>
                                        if (not this:IsVisible()) then 
                                           return; 
                                    end
                                    
                                    local unit = this.unit;
                                    
                    GameTooltip:SetOwner(this, "ANCHOR_BOTTOMRIGHT");
                    
                    if (this.hasdebuff == 1) then
                        GameTooltip:SetUnitDebuff(unit, this:GetID());
                    else
                        GameTooltip:SetUnitBuff(unit, this:GetID());
                    end
                        </OnEnter>
                        <OnLeave>
                                GameTooltip:Hide();
                        </OnLeave>
                </Scripts>
        </Button>       

    <!-- Target Text -->
    <Button name="DHUD_TextTemplate" enableMouse="false"  frameStrata="BACKGROUND" movable="false" parent="DHUD" virtual="true">        
        <Size><AbsDimension x="120" y="20"/></Size>
        <Layers>
            <Layer>
                <Fontstring name="$parentName" inherits="GameFontNormal" text="">
                    <FontHeight><AbsValue val="20"/></FontHeight>
                    <Color r="1.0" g="1.0" b="1.0"/>
                </Fontstring>
                <Texture><Color r="0" g="0" b="0" a="0.0"/></Texture>
            </Layer>
        </Layers>
    </Button>
    
    <!-- Health / Mana Text -->
    <Button name="DHUD_SmallTextTemplate" enableMouse="false" frameStrata="BACKGROUND" parent="DHUD" virtual="true">        
        <Size><AbsDimension x="200" y="14"/></Size>
        <Layers>
            <Layer>
                <Fontstring name="$parent_Text" inherits="GameFontNormalSmall" text="">
                    <Size><AbsDimension x="200" y="14"/></Size>
                    <FontHeight><AbsValue val="20"/></FontHeight>
                    <Color r="1.0" g="1.0" b="1.0"/>
                </Fontstring>
                <Texture><Color r="0" g="0" b="0" a="0.0"/></Texture>
            </Layer>
        </Layers>
    </Button>
    
    <!-- Castbar-->
    <Button name="DHUD_CastTextTemplate" enableMouse="false" frameStrata="BACKGROUND" movable="false" parent="DHUD" virtual="true" hidden="true">        
        <Size><AbsDimension x="50" y="14"/></Size>
        <Layers>
            <Layer>
                <Fontstring name="$parent_Text" inherits="GameFontNormalSmall" text="">
                    <FontHeight><AbsValue val="20"/></FontHeight>
                    <Color r="1.0" g="1.0" b="1.0"/>
                    <Anchors>
                        <Anchor point="RIGHT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
                    </Anchors>
                </Fontstring>
                <Texture><Color r="0" g="0" b="0" a="0.0"/></Texture>
            </Layer>
        </Layers>
    </Button>
</Ui>

Generated by GNU Enscript 1.6.5.90.