vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | <Ui xmlns="http://www.blizzard.com/wow/ui/" |
2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||
3 | xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd"> |
||
4 | |||
5 | <!-- Event Frame --> |
||
6 | <Frame name="DHUD_EventFrame" parent="UIParent" enableMouse="false"> |
||
7 | <Scripts> |
||
8 | <OnLoad> |
||
9 | DHUD_OnLoad(); |
||
10 | </OnLoad> |
||
11 | <OnEvent> |
||
12 | DHUD_OnEvent(event, arg1, arg2, arg3); |
||
13 | </OnEvent> |
||
14 | <OnUpdate> |
||
15 | DHUD_OnUpdate(); |
||
16 | </OnUpdate> |
||
17 | </Scripts> |
||
18 | </Frame> |
||
19 | |||
20 | <!-- player dropdown --> |
||
21 | <Frame name="DHUD_Player_DropDown" inherits="UIDropDownMenuTemplate" id="1" hidden="false"> |
||
22 | <Size> |
||
23 | <AbsDimension x="160" y="160"/> |
||
24 | </Size> |
||
25 | <Anchors> |
||
26 | <Anchor point="TOP"> |
||
27 | <Offset> |
||
28 | <AbsDimension x="0" y="0"/> |
||
29 | </Offset> |
||
30 | </Anchor> |
||
31 | </Anchors> |
||
32 | <Scripts> |
||
33 | <OnLoad> |
||
34 | DHUD_Player_DropDown_OnLoad(); |
||
35 | </OnLoad> |
||
36 | </Scripts> |
||
37 | </Frame> |
||
38 | |||
39 | <!-- target dropdown --> |
||
40 | <Frame name="DHUD_Target_DropDown" inherits="UIDropDownMenuTemplate" id="1" hidden="false"> |
||
41 | <Size> |
||
42 | <AbsDimension x="160" y="160"/> |
||
43 | </Size> |
||
44 | <Anchors> |
||
45 | <Anchor point="TOP"> |
||
46 | <Offset> |
||
47 | <AbsDimension x="0" y="0"/> |
||
48 | </Offset> |
||
49 | </Anchor> |
||
50 | </Anchors> |
||
51 | <Scripts> |
||
52 | <OnLoad> |
||
53 | DHUD_Target_DropDown_OnLoad(); |
||
54 | </OnLoad> |
||
55 | </Scripts> |
||
56 | </Frame> |
||
57 | |||
58 | <!-- Aura Template --> |
||
59 | <Button name="DHUD_AuraTemplate" virtual="true"> |
||
60 | <Size> |
||
61 | <AbsDimension x="19" y="19"/> |
||
62 | </Size> |
||
63 | <Layers> |
||
64 | <Layer level="ARTWORK"> |
||
65 | <Texture name="$parentIcon" setAllPoints="true"/> |
||
66 | </Layer> |
||
67 | <Layer level="OVERLAY"> |
||
68 | <Texture name="$parentBorder" file="Interface\Buttons\UI-Debuff-Border" hidden="true"> |
||
69 | <Size> |
||
70 | <AbsDimension x="20" y="20"/> |
||
71 | </Size> |
||
72 | <Anchors> |
||
73 | <Anchor point="CENTER"> |
||
74 | <Offset> |
||
75 | <AbsDimension x="0" y="0"/> |
||
76 | </Offset> |
||
77 | </Anchor> |
||
78 | </Anchors> |
||
79 | </Texture> |
||
80 | <FontString name="$parentCount" inherits="NumberFontNormalSmall"> |
||
81 | <Anchors> |
||
82 | <Anchor point="BOTTOM"> |
||
83 | <Offset> |
||
84 | <AbsDimension x="-1" y="0"/> |
||
85 | </Offset> |
||
86 | </Anchor> |
||
87 | </Anchors> |
||
88 | </FontString> |
||
89 | </Layer> |
||
90 | </Layers> |
||
91 | <Scripts> |
||
92 | <OnLoad> |
||
93 | local icon = getglobal(this:GetName().."Icon"); |
||
94 | icon:SetTexture("Interface\\Icons\\INV_Misc_Ear_Human_01"); |
||
95 | </OnLoad> |
||
96 | <OnEnter> |
||
97 | if (not this:IsVisible()) then |
||
98 | return; |
||
99 | end |
||
100 | |||
101 | local unit = this.unit; |
||
102 | |||
103 | GameTooltip:SetOwner(this, "ANCHOR_BOTTOMRIGHT"); |
||
104 | |||
105 | if (this.hasdebuff == 1) then |
||
106 | GameTooltip:SetUnitDebuff(unit, this:GetID()); |
||
107 | else |
||
108 | GameTooltip:SetUnitBuff(unit, this:GetID()); |
||
109 | end |
||
110 | </OnEnter> |
||
111 | <OnLeave> |
||
112 | GameTooltip:Hide(); |
||
113 | </OnLeave> |
||
114 | </Scripts> |
||
115 | </Button> |
||
116 | |||
117 | <!-- Target Text --> |
||
118 | <Button name="DHUD_TextTemplate" enableMouse="false" frameStrata="BACKGROUND" movable="false" parent="DHUD" virtual="true"> |
||
119 | <Size><AbsDimension x="120" y="20"/></Size> |
||
120 | <Layers> |
||
121 | <Layer> |
||
122 | <Fontstring name="$parentName" inherits="GameFontNormal" text=""> |
||
123 | <FontHeight><AbsValue val="20"/></FontHeight> |
||
124 | <Color r="1.0" g="1.0" b="1.0"/> |
||
125 | </Fontstring> |
||
126 | <Texture><Color r="0" g="0" b="0" a="0.0"/></Texture> |
||
127 | </Layer> |
||
128 | </Layers> |
||
129 | </Button> |
||
130 | |||
131 | <!-- Health / Mana Text --> |
||
132 | <Button name="DHUD_SmallTextTemplate" enableMouse="false" frameStrata="BACKGROUND" parent="DHUD" virtual="true"> |
||
133 | <Size><AbsDimension x="200" y="14"/></Size> |
||
134 | <Layers> |
||
135 | <Layer> |
||
136 | <Fontstring name="$parent_Text" inherits="GameFontNormalSmall" text=""> |
||
137 | <Size><AbsDimension x="200" y="14"/></Size> |
||
138 | <FontHeight><AbsValue val="20"/></FontHeight> |
||
139 | <Color r="1.0" g="1.0" b="1.0"/> |
||
140 | </Fontstring> |
||
141 | <Texture><Color r="0" g="0" b="0" a="0.0"/></Texture> |
||
142 | </Layer> |
||
143 | </Layers> |
||
144 | </Button> |
||
145 | |||
146 | <!-- Castbar--> |
||
147 | <Button name="DHUD_CastTextTemplate" enableMouse="false" frameStrata="BACKGROUND" movable="false" parent="DHUD" virtual="true" hidden="true"> |
||
148 | <Size><AbsDimension x="50" y="14"/></Size> |
||
149 | <Layers> |
||
150 | <Layer> |
||
151 | <Fontstring name="$parent_Text" inherits="GameFontNormalSmall" text=""> |
||
152 | <FontHeight><AbsValue val="20"/></FontHeight> |
||
153 | <Color r="1.0" g="1.0" b="1.0"/> |
||
154 | <Anchors> |
||
155 | <Anchor point="RIGHT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor> |
||
156 | </Anchors> |
||
157 | </Fontstring> |
||
158 | <Texture><Color r="0" g="0" b="0" a="0.0"/></Texture> |
||
159 | </Layer> |
||
160 | </Layers> |
||
161 | </Button> |
||
162 | </Ui> |