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/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ |
2 | ..\FrameXML\UI.xsd"> |
||
3 | <Script file="TargetFrame.lua"/> |
||
4 | <Button name="TargetDebuffButtonTemplate" virtual="true"> |
||
5 | <Size> |
||
6 | <AbsDimension x="21" y="21"/> |
||
7 | </Size> |
||
8 | <Layers> |
||
9 | <Layer level="ARTWORK"> |
||
10 | <Texture name="$parentIcon" setAllPoints="true"/> |
||
11 | </Layer> |
||
12 | <Layer level="OVERLAY"> |
||
13 | <Texture name="$parentBorder" file="Interface\Buttons\UI-Debuff-Border"> |
||
14 | <Size> |
||
15 | <AbsDimension x="23" y="23"/> |
||
16 | </Size> |
||
17 | <Anchors> |
||
18 | <Anchor point="CENTER"> |
||
19 | <Offset> |
||
20 | <AbsDimension x="0" y="0"/> |
||
21 | </Offset> |
||
22 | </Anchor> |
||
23 | </Anchors> |
||
24 | </Texture> |
||
25 | </Layer> |
||
26 | </Layers> |
||
27 | <Scripts> |
||
28 | <OnEnter> |
||
29 | GameTooltip:SetOwner(this, "ANCHOR_BOTTOMRIGHT", 15, -25); |
||
30 | GameTooltip:SetUnitDebuff("target", this.id); |
||
31 | </OnEnter> |
||
32 | <OnLeave> |
||
33 | GameTooltip:Hide(); |
||
34 | </OnLeave> |
||
35 | </Scripts> |
||
36 | </Button> |
||
37 | <Button name="TargetBuffButtonTemplate" virtual="true"> |
||
38 | <Size> |
||
39 | <AbsDimension x="21" y="21"/> |
||
40 | </Size> |
||
41 | <Layers> |
||
42 | <Layer level="ARTWORK"> |
||
43 | <Texture name="$parentIcon" setAllPoints="true"/> |
||
44 | </Layer> |
||
45 | </Layers> |
||
46 | <Scripts> |
||
47 | <OnEnter> |
||
48 | GameTooltip:SetOwner(this, "ANCHOR_BOTTOMRIGHT", 15, -25); |
||
49 | GameTooltip:SetUnitBuff("target", this.id); |
||
50 | </OnEnter> |
||
51 | <OnLeave> |
||
52 | GameTooltip:Hide(); |
||
53 | </OnLeave> |
||
54 | </Scripts> |
||
55 | </Button> |
||
56 | <Button name="TargetFrame" frameStrata="LOW" toplevel="true" movable="true" parent="UIParent"> |
||
57 | <Size> |
||
58 | <AbsDimension x="232" y="100"/> |
||
59 | </Size> |
||
60 | <Anchors> |
||
61 | <Anchor point="TOPLEFT"> |
||
62 | <Offset> |
||
63 | <AbsDimension x="250" y="-4"/> |
||
64 | </Offset> |
||
65 | </Anchor> |
||
66 | </Anchors> |
||
67 | <HitRectInsets> |
||
68 | <AbsInset left="96" right="6" top="4" bottom="9"/> |
||
69 | </HitRectInsets> |
||
70 | <Layers> |
||
71 | <Layer level="BACKGROUND"> |
||
72 | <Texture name="TargetFrameBackground"> |
||
73 | <Size> |
||
74 | <AbsDimension x="119" y="41"/> |
||
75 | </Size> |
||
76 | <Anchors> |
||
77 | <Anchor point="TOPRIGHT"> |
||
78 | <Offset> |
||
79 | <AbsDimension x="-106" y="-22"/> |
||
80 | </Offset> |
||
81 | </Anchor> |
||
82 | </Anchors> |
||
83 | <Color r="0" g="0" b="0" a="0.5"/> |
||
84 | </Texture> |
||
85 | <Texture name="TargetFrameNameBackground" file="Interface\TargetingFrame\UI-TargetingFrame-LevelBackground"> |
||
86 | <Size> |
||
87 | <AbsDimension x="119" y="19"/> |
||
88 | </Size> |
||
89 | <Anchors> |
||
90 | <Anchor point="TOPRIGHT"> |
||
91 | <Offset> |
||
92 | <AbsDimension x="-106" y="-22"/> |
||
93 | </Offset> |
||
94 | </Anchor> |
||
95 | </Anchors> |
||
96 | </Texture> |
||
97 | </Layer> |
||
98 | <Layer level="BORDER"> |
||
99 | <Texture name="TargetPortrait"> |
||
100 | <Size> |
||
101 | <AbsDimension x="64" y="64"/> |
||
102 | </Size> |
||
103 | <Anchors> |
||
104 | <Anchor point="TOPRIGHT"> |
||
105 | <Offset> |
||
106 | <AbsDimension x="-42" y="-12"/> |
||
107 | </Offset> |
||
108 | </Anchor> |
||
109 | </Anchors> |
||
110 | </Texture> |
||
111 | </Layer> |
||
112 | </Layers> |
||
113 | <Frames> |
||
114 | <Frame setAllPoints="true"> |
||
115 | <Frames> |
||
116 | <Frame setAllPoints="true"> |
||
117 | <Layers> |
||
118 | <Layer level="BACKGROUND"> |
||
119 | <Texture name="TargetFrameTexture" file="Interface\TargetingFrame\UI-TargetingFrame"> |
||
120 | <TexCoords left="0.09375" right="1.0" top="0" bottom="0.78125"/> |
||
121 | </Texture> |
||
122 | <FontString name="TargetName" inherits="GameFontNormalSmall"> |
||
123 | <Size> |
||
124 | <AbsDimension x="100" y="10"/> |
||
125 | </Size> |
||
126 | <Anchors> |
||
127 | <Anchor point="CENTER"> |
||
128 | <Offset> |
||
129 | <AbsDimension x="-50" y="19"/> |
||
130 | </Offset> |
||
131 | </Anchor> |
||
132 | </Anchors> |
||
133 | </FontString> |
||
134 | <FontString name="TargetLevelText" inherits="GameFontNormalSmall"> |
||
135 | <Anchors> |
||
136 | <Anchor point="CENTER"> |
||
137 | <Offset> |
||
138 | <AbsDimension x="63" y="-16"/> |
||
139 | </Offset> |
||
140 | </Anchor> |
||
141 | </Anchors> |
||
142 | </FontString> |
||
143 | <FontString name="TargetDeadText" inherits="GameFontNormalSmall" text="DEAD"> |
||
144 | <Anchors> |
||
145 | <Anchor point="CENTER"> |
||
146 | <Offset> |
||
147 | <AbsDimension x="-50" y="3"/> |
||
148 | </Offset> |
||
149 | </Anchor> |
||
150 | </Anchors> |
||
151 | </FontString> |
||
152 | </Layer> |
||
153 | <Layer level="ARTWORK"> |
||
154 | <Texture name="TargetHighLevelTexture" file="Interface\TargetingFrame\UI-TargetingFrame-Skull"> |
||
155 | <Size> |
||
156 | <AbsDimension x="16" y="16"/> |
||
157 | </Size> |
||
158 | <Anchors> |
||
159 | <Anchor point="CENTER"> |
||
160 | <Offset> |
||
161 | <AbsDimension x="63" y="-16"/> |
||
162 | </Offset> |
||
163 | </Anchor> |
||
164 | </Anchors> |
||
165 | </Texture> |
||
166 | <Texture name="TargetLeaderIcon" file="Interface\GroupFrame\UI-Group-LeaderIcon" hidden="true"> |
||
167 | <Size> |
||
168 | <AbsDimension x="16" y="16"/> |
||
169 | </Size> |
||
170 | <Anchors> |
||
171 | <Anchor point="TOPRIGHT"> |
||
172 | <Offset> |
||
173 | <AbsDimension x="-44" y="-10"/> |
||
174 | </Offset> |
||
175 | </Anchor> |
||
176 | </Anchors> |
||
177 | </Texture> |
||
178 | <Texture name="TargetPVPIcon" hidden="true"> |
||
179 | <Size> |
||
180 | <AbsDimension x="64" y="64"/> |
||
181 | </Size> |
||
182 | <Anchors> |
||
183 | <Anchor point="TOPRIGHT"> |
||
184 | <Offset> |
||
185 | <AbsDimension x="3" y="-20"/> |
||
186 | </Offset> |
||
187 | </Anchor> |
||
188 | </Anchors> |
||
189 | </Texture> |
||
190 | </Layer> |
||
191 | </Layers> |
||
192 | </Frame> |
||
193 | </Frames> |
||
194 | </Frame> |
||
195 | <Frame name="TargetFrameDropDown" inherits="UIDropDownMenuTemplate" id="1" hidden="true"> |
||
196 | <Size> |
||
197 | <AbsDimension x="10" y="10"/> |
||
198 | </Size> |
||
199 | <Anchors> |
||
200 | <Anchor point="TOP"> |
||
201 | <Offset> |
||
202 | <AbsDimension x="10" y="-60"/> |
||
203 | </Offset> |
||
204 | </Anchor> |
||
205 | </Anchors> |
||
206 | <Scripts> |
||
207 | <OnLoad> |
||
208 | TargetFrameDropDown_OnLoad(); |
||
209 | </OnLoad> |
||
210 | </Scripts> |
||
211 | </Frame> |
||
212 | <StatusBar name="TargetFrameHealthBar" inherits="TextStatusBar"> |
||
213 | <Size> |
||
214 | <AbsDimension x="119" y="12"/> |
||
215 | </Size> |
||
216 | <Anchors> |
||
217 | <Anchor point="TOPRIGHT"> |
||
218 | <Offset> |
||
219 | <AbsDimension x="-106" y="-41"/> |
||
220 | </Offset> |
||
221 | </Anchor> |
||
222 | </Anchors> |
||
223 | <Scripts> |
||
224 | <OnEvent> |
||
225 | UnitFrameHealthBar_Update(this, arg1); |
||
226 | </OnEvent> |
||
227 | <OnValueChanged> |
||
228 | UnitFrameHealthBar_OnValueChanged(arg1); |
||
229 | TargetHealthCheck(); |
||
230 | </OnValueChanged> |
||
231 | <OnEnter> |
||
232 | aftt_UnitFrame_OnEnter(); |
||
233 | </OnEnter> |
||
234 | </Scripts> |
||
235 | <BarTexture file="Interface\TargetingFrame\UI-StatusBar"/> |
||
236 | </StatusBar> |
||
237 | <StatusBar name="TargetFrameManaBar" inherits="TextStatusBar"> |
||
238 | <Size> |
||
239 | <AbsDimension x="119" y="12"/> |
||
240 | </Size> |
||
241 | <Anchors> |
||
242 | <Anchor point="TOPRIGHT"> |
||
243 | <Offset> |
||
244 | <AbsDimension x="-106" y="-52"/> |
||
245 | </Offset> |
||
246 | </Anchor> |
||
247 | </Anchors> |
||
248 | <Scripts> |
||
249 | <OnEvent> |
||
250 | UnitFrameManaBar_Update(this, arg1); |
||
251 | </OnEvent> |
||
252 | <OnEnter> |
||
253 | aftt_UnitFrame_OnEnter(); |
||
254 | </OnEnter> |
||
255 | </Scripts> |
||
256 | <BarTexture file="Interface\TargetingFrame\UI-StatusBar"/> |
||
257 | <BarColor r="0" g="0" b="1.0"/> |
||
258 | </StatusBar> |
||
259 | <Button name="TargetFrameDebuff1" inherits="TargetDebuffButtonTemplate" id="1"> |
||
260 | <Anchors> |
||
261 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT"> |
||
262 | <Offset> |
||
263 | <AbsDimension x="5" y="32"/> |
||
264 | </Offset> |
||
265 | </Anchor> |
||
266 | </Anchors> |
||
267 | </Button> |
||
268 | <Button name="TargetFrameDebuff2" inherits="TargetDebuffButtonTemplate" id="2"> |
||
269 | <Anchors> |
||
270 | <Anchor point="LEFT" relativeTo="TargetFrameDebuff1" relativePoint="RIGHT"> |
||
271 | <Offset> |
||
272 | <AbsDimension x="3" y="0"/> |
||
273 | </Offset> |
||
274 | </Anchor> |
||
275 | </Anchors> |
||
276 | </Button> |
||
277 | <Button name="TargetFrameDebuff3" inherits="TargetDebuffButtonTemplate" id="3"> |
||
278 | <Anchors> |
||
279 | <Anchor point="LEFT" relativeTo="TargetFrameDebuff2" relativePoint="RIGHT"> |
||
280 | <Offset> |
||
281 | <AbsDimension x="3" y="0"/> |
||
282 | </Offset> |
||
283 | </Anchor> |
||
284 | </Anchors> |
||
285 | </Button> |
||
286 | <Button name="TargetFrameDebuff4" inherits="TargetDebuffButtonTemplate" id="4"> |
||
287 | <Anchors> |
||
288 | <Anchor point="LEFT" relativeTo="TargetFrameDebuff3" relativePoint="RIGHT"> |
||
289 | <Offset> |
||
290 | <AbsDimension x="3" y="0"/> |
||
291 | </Offset> |
||
292 | </Anchor> |
||
293 | </Anchors> |
||
294 | </Button> |
||
295 | <Button name="TargetFrameDebuff5" inherits="TargetDebuffButtonTemplate" id="5"> |
||
296 | <Anchors> |
||
297 | <Anchor point="LEFT" relativeTo="TargetFrameDebuff4" relativePoint="RIGHT"> |
||
298 | <Offset> |
||
299 | <AbsDimension x="3" y="0"/> |
||
300 | </Offset> |
||
301 | </Anchor> |
||
302 | </Anchors> |
||
303 | </Button> |
||
304 | <Button name="TargetFrameBuff1" inherits="TargetBuffButtonTemplate" id="1"> |
||
305 | <Anchors> |
||
306 | <Anchor point="TOPLEFT" relativeTo="TargetFrameDebuff1" relativePoint="BOTTOMLEFT"> |
||
307 | <Offset> |
||
308 | <AbsDimension x="0" y="-2"/> |
||
309 | </Offset> |
||
310 | </Anchor> |
||
311 | </Anchors> |
||
312 | </Button> |
||
313 | <Button name="TargetFrameBuff2" inherits="TargetBuffButtonTemplate" id="2"> |
||
314 | <Anchors> |
||
315 | <Anchor point="LEFT" relativeTo="TargetFrameBuff1" relativePoint="RIGHT"> |
||
316 | <Offset> |
||
317 | <AbsDimension x="3" y="0"/> |
||
318 | </Offset> |
||
319 | </Anchor> |
||
320 | </Anchors> |
||
321 | </Button> |
||
322 | <Button name="TargetFrameBuff3" inherits="TargetBuffButtonTemplate" id="3"> |
||
323 | <Anchors> |
||
324 | <Anchor point="LEFT" relativeTo="TargetFrameBuff2" relativePoint="RIGHT"> |
||
325 | <Offset> |
||
326 | <AbsDimension x="3" y="0"/> |
||
327 | </Offset> |
||
328 | </Anchor> |
||
329 | </Anchors> |
||
330 | </Button> |
||
331 | <Button name="TargetFrameBuff4" inherits="TargetBuffButtonTemplate" id="4"> |
||
332 | <Anchors> |
||
333 | <Anchor point="LEFT" relativeTo="TargetFrameBuff3" relativePoint="RIGHT"> |
||
334 | <Offset> |
||
335 | <AbsDimension x="3" y="0"/> |
||
336 | </Offset> |
||
337 | </Anchor> |
||
338 | </Anchors> |
||
339 | </Button> |
||
340 | <Button name="TargetFrameBuff5" inherits="TargetBuffButtonTemplate" id="5"> |
||
341 | <Anchors> |
||
342 | <Anchor point="LEFT" relativeTo="TargetFrameBuff4" relativePoint="RIGHT"> |
||
343 | <Offset> |
||
344 | <AbsDimension x="3" y="0"/> |
||
345 | </Offset> |
||
346 | </Anchor> |
||
347 | </Anchors> |
||
348 | </Button> |
||
349 | </Frames> |
||
350 | <Scripts> |
||
351 | <OnLoad> |
||
352 | UnitFrame_Initialize("target", TargetName, TargetPortrait, |
||
353 | TargetFrameHealthBar, TargetFrameHealthBarText, |
||
354 | TargetFrameManaBar, TargetFrameManaBarText); |
||
355 | TargetFrame_OnLoad(); |
||
356 | </OnLoad> |
||
357 | <OnEvent> |
||
358 | TargetFrame_OnEvent(event); |
||
359 | </OnEvent> |
||
360 | <OnShow> |
||
361 | TargetFrame_OnShow(); |
||
362 | </OnShow> |
||
363 | <OnUpdate> |
||
364 | UnitFrame_OnUpdate(arg1); |
||
365 | TargetFrame_HealthUpdate(arg1); |
||
366 | </OnUpdate> |
||
367 | <OnHide> |
||
368 | TargetFrame_OnHide(); |
||
369 | </OnHide> |
||
370 | <OnEnter> |
||
371 | UnitFrame_OnEnter(); |
||
372 | </OnEnter> |
||
373 | <OnLeave> |
||
374 | UnitFrame_OnLeave(); |
||
375 | </OnLeave> |
||
376 | <OnClick> |
||
377 | TargetFrame_OnClick(arg1); |
||
378 | </OnClick> |
||
379 | </Scripts> |
||
380 | </Button> |
||
381 | </Ui> |