vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
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 C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
3 <Script file="CT_RATarget.lua"/>
4 <Button name="CT_RATargetMTTemplate" virtual="true">
5 <Size>
6 <AbsDimension x="220" y="15"/>
7 </Size>
8  
9 <Layers>
10 <Layer level="ARTWORK">
11 <FontString name="$parentText" text="MT #1:" inherits="GameFontNormal" justifyH="LEFT" justifyV="TOP">
12 <Anchors>
13 <Anchor point="LEFT">
14 <Offset>
15 <AbsDimension x="10" y="0"/>
16 </Offset>
17 </Anchor>
18 </Anchors>
19 </FontString>
20 </Layer>
21 <Layer level="BACKGROUND">
22 <Texture name="$parentMouseOver" hidden="true">
23 <Anchors>
24 <Anchor point="TOPLEFT"/>
25 <Anchor point="BOTTOMRIGHT"/>
26 </Anchors>
27 <Color r="1" g="1" b="1" a="0.3"/>
28 </Texture>
29 </Layer>
30 </Layers>
31  
32 <Scripts>
33 <OnEnter>
34 CT_RATargetFrame.MTOver = getglobal(this:GetName() .. "MouseOver");
35 if ( CT_RATargetFrame.mtFunction ) then
36 getglobal(this:GetName() .. "MouseOver"):Show();
37 end
38 </OnEnter>
39 <OnLeave>
40 CT_RATargetFrame.MTOver = nil;
41 getglobal(this:GetName() .. "MouseOver"):Hide();
42 </OnLeave>
43 <OnLoad>
44 this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
45 </OnLoad>
46 <OnClick>
47 if ( arg1 == "LeftButton" ) then
48 if ( CT_RATargetFrame.mtFunction ) then
49 getglobal(CT_RATargetFrame.mtFunction)(this:GetID(), CT_RATargetFrame.mtArgs);
50 end
51 else
52 CT_RATarget_RemoveMT(this:GetID());
53 end
54 </OnClick>
55 </Scripts>
56 </Button>
57 <Frame name="CT_RATargetTargetTemplate" virtual="true">
58 <Size>
59 <AbsDimension x="220" y="15"/>
60 </Size>
61  
62 <Layers>
63 <Layer level="OVERLAY">
64 <FontString name="$parentText" text="Target #5:" inherits="GameFontNormal" justifyH="LEFT" justifyV="TOP">
65 <Anchors>
66 <Anchor point="LEFT">
67 <Offset>
68 <AbsDimension x="0" y="0"/>
69 </Offset>
70 </Anchor>
71 </Anchors>
72 </FontString>
73 </Layer>
74 <Layer level="ARTWORK">
75 <Texture name="$parentMouseOver" hidden="true">
76 <Anchors>
77 <Anchor point="TOPLEFT"/>
78 <Anchor point="BOTTOMRIGHT"/>
79 </Anchors>
80 <Color r="1" g="1" b="1" a="0.3"/>
81 </Texture>
82 </Layer>
83 <Layer level="BACKGROUND">
84 <Texture name="$parentError" hidden="true">
85 <Anchors>
86 <Anchor point="TOPLEFT"/>
87 <Anchor point="BOTTOMRIGHT"/>
88 </Anchors>
89 <Color r="1" g="1" b="1" a="0.3"/>
90 </Texture>
91 </Layer>
92 </Layers>
93  
94 <Scripts>
95 <OnEnter>
96 this.isOver = 1;
97 if ( not this.lock and CT_RATargetFrame.targetFunction ) then
98 getglobal(this:GetName() .. "MouseOver"):Show();
99 end
100 </OnEnter>
101 <OnLeave>
102 this.isOver = nil;
103 getglobal(this:GetName() .. "MouseOver"):Hide();
104 </OnLeave>
105 <OnClick>
106 if ( arg1 == "RightButton" and CT_RATargetFrame.rightClickFunction ) then
107 getglobal(CT_RATargetFrame.rightClickFunction)(this:GetID(), CT_RATargetFrame.rightClickArgs);
108 elseif ( CT_RATargetFrame.targetFunction ) then
109 getglobal(CT_RATargetFrame.targetFunction)(this:GetID(), CT_RATargetFrame.targetArgs);
110 end
111 </OnClick>
112 </Scripts>
113 </Frame>
114  
115 <Frame name="CT_RATargetFrame" hidden="true" movable="true" parent="UIParent">
116 <Size>
117 <AbsDimension x="450" y="275"/>
118 </Size>
119  
120 <Anchors>
121 <Anchor point="CENTER"/>
122 </Anchors>
123  
124 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
125 <EdgeSize>
126 <AbsValue val="16"/>
127 </EdgeSize>
128 <TileSize>
129 <AbsValue val="16"/>
130 </TileSize>
131 <BackgroundInsets>
132 <AbsInset left="5" right="5" top="5" bottom="5"/>
133 </BackgroundInsets>
134 </Backdrop>
135  
136 <Layers>
137 <Layer level="ARTWORK">
138 <FontString name="$parentTitle" text="Target Management" inherits="GameFontNormal">
139 <Anchors>
140 <Anchor point="TOP">
141 <Offset>
142 <AbsDimension x="0" y="-5"/>
143 </Offset>
144 </Anchor>
145 </Anchors>
146 </FontString>
147 <FontString name="$parentCurrentTarget" text="Current Target:" justifyH="LEFT" justifyV="TOP" inherits="GameFontNormal">
148 <Anchors>
149 <Anchor point="TOPLEFT">
150 <Offset>
151 <AbsDimension x="15" y="-30"/>
152 </Offset>
153 </Anchor>
154 </Anchors>
155 </FontString>
156 </Layer>
157 </Layers>
158  
159 <Frames>
160 <Button name="$parentCloseButton" hidden="false">
161 <Size>
162 <AbsDimension x="42" y="42"/>
163 </Size>
164 <Anchors>
165 <Anchor point="TOPRIGHT"/>
166 </Anchors>
167 <Scripts>
168 <OnClick>
169 HideUIPanel(this:GetParent());
170 </OnClick>
171 </Scripts>
172 <NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
173 <PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
174 <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
175 </Button>
176 <Button name="$parentMT1" inherits="CT_RATargetMTTemplate" id="1">
177 <Anchors>
178 <Anchor point="TOPLEFT">
179 <Offset>
180 <AbsDimension x="5" y="-60"/>
181 </Offset>
182 </Anchor>
183 </Anchors>
184 </Button>
185 <Button name="$parentMT2" inherits="CT_RATargetMTTemplate" id="2">
186 <Anchors>
187 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentMT1"/>
188 </Anchors>
189 </Button>
190 <Button name="$parentMT3" inherits="CT_RATargetMTTemplate" id="3">
191 <Anchors>
192 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentMT2"/>
193 </Anchors>
194 </Button>
195 <Button name="$parentMT4" inherits="CT_RATargetMTTemplate" id="4">
196 <Anchors>
197 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentMT3"/>
198 </Anchors>
199 </Button>
200 <Button name="$parentMT5" inherits="CT_RATargetMTTemplate" id="5">
201 <Anchors>
202 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentMT4"/>
203 </Anchors>
204 </Button>
205 <Button name="$parentMT6" inherits="CT_RATargetMTTemplate" id="6">
206 <Anchors>
207 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentMT5"/>
208 </Anchors>
209 </Button>
210 <Button name="$parentMT7" inherits="CT_RATargetMTTemplate" id="7">
211 <Anchors>
212 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentMT6"/>
213 </Anchors>
214 </Button>
215 <Button name="$parentMT8" inherits="CT_RATargetMTTemplate" id="8">
216 <Anchors>
217 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentMT7"/>
218 </Anchors>
219 </Button>
220 <Button name="$parentMT9" inherits="CT_RATargetMTTemplate" id="9">
221 <Anchors>
222 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentMT8"/>
223 </Anchors>
224 </Button>
225 <Button name="$parentMT10" inherits="CT_RATargetMTTemplate" id="10">
226 <Anchors>
227 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentMT9"/>
228 </Anchors>
229 </Button>
230 <Button name="$parentTarget1" inherits="CT_RATargetTargetTemplate" id="1">
231 <Anchors>
232 <Anchor point="TOPLEFT">
233 <Offset>
234 <AbsDimension x="225" y="-60"/>
235 </Offset>
236 </Anchor>
237 </Anchors>
238 </Button>
239 <Button name="$parentTarget2" inherits="CT_RATargetTargetTemplate" id="2">
240 <Anchors>
241 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentTarget1"/>
242 </Anchors>
243 </Button>
244 <Button name="$parentTarget3" inherits="CT_RATargetTargetTemplate" id="3">
245 <Anchors>
246 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentTarget2"/>
247 </Anchors>
248 </Button>
249 <Button name="$parentTarget4" inherits="CT_RATargetTargetTemplate" id="4">
250 <Anchors>
251 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentTarget3"/>
252 </Anchors>
253 </Button>
254 <Button name="$parentTarget5" inherits="CT_RATargetTargetTemplate" id="5">
255 <Anchors>
256 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentTarget4"/>
257 </Anchors>
258 </Button>
259 <Button name="$parentTarget6" inherits="CT_RATargetTargetTemplate" id="6">
260 <Anchors>
261 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentTarget5"/>
262 </Anchors>
263 </Button>
264 <Button name="$parentTarget7" inherits="CT_RATargetTargetTemplate" id="7">
265 <Anchors>
266 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentTarget6"/>
267 </Anchors>
268 </Button>
269 <Button name="$parentTarget8" inherits="CT_RATargetTargetTemplate" id="8">
270 <Anchors>
271 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentTarget7"/>
272 </Anchors>
273 </Button>
274 <Button name="$parentTarget9" inherits="CT_RATargetTargetTemplate" id="9">
275 <Anchors>
276 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentTarget8"/>
277 </Anchors>
278 </Button>
279 <Button name="$parentTarget10" inherits="CT_RATargetTargetTemplate" id="10">
280 <Anchors>
281 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentTarget9"/>
282 </Anchors>
283 </Button>
284  
285 <Button name="$parentInfoBox">
286 <Size>
287 <AbsDimension x="440" y="45"/>
288 </Size>
289 <Anchors>
290 <Anchor point="BOTTOM">
291 <Offset>
292 <AbsDimension x="0" y="5"/>
293 </Offset>
294 </Anchor>
295 </Anchors>
296 <Layers>
297 <Layer level="ARTWORK">
298 <FontString name="$parentText" inherits="GameFontNormal">
299 <Anchors>
300 <Anchor point="CENTER"/>
301 </Anchors>
302 </FontString>
303 </Layer>
304 <Layer level="BACKGROUND">
305 <Texture name="$parentMouseOver" hidden="true">
306 <Anchors>
307 <Anchor point="TOPLEFT"/>
308 <Anchor point="BOTTOMRIGHT"/>
309 </Anchors>
310 <Color r="1" g="1" b="1" a="0.3"/>
311 </Texture>
312 </Layer>
313 </Layers>
314 <Scripts>
315 <OnEnter>
316 this.isOver = 1;
317 if ( not this.lock ) then
318 getglobal(this:GetName() .. "MouseOver"):Show();
319 end
320 </OnEnter>
321 <OnLeave>
322 this.isOver = nil;
323 getglobal(this:GetName() .. "MouseOver"):Hide();
324 </OnLeave>
325 <OnClick>
326 if ( not this.lock and this.clickFunction and getglobal(this.clickFunction) ) then
327 getglobal(this.clickFunction)(this.functionArg);
328 end
329 </OnClick>
330 </Scripts>
331 </Button>
332 </Frames>
333  
334 <Scripts>
335 <OnMouseDown>
336 if ( arg1 == "LeftButton" ) then
337 this:StartMoving();
338 end
339 </OnMouseDown>
340 <OnMouseUp>
341 if ( arg1 == "LeftButton" ) then
342 this:StopMovingOrSizing();
343 end
344 </OnMouseUp>
345 <OnHide>
346 PlaySound("UChatScrollButton");
347 this:StopMovingOrSizing();
348 </OnHide>
349 <OnShow>
350 PlaySound("UChatScrollButton");
351 </OnShow>
352 <OnLoad>
353 CT_RATarget_OnLoad();
354 </OnLoad>
355 <OnEvent>
356 CT_RATarget_OnEvent(event);
357 </OnEvent>
358 <OnUpdate>
359 CT_RATarget_OnUpdate(arg1);
360 </OnUpdate>
361 </Scripts>
362 </Frame>
363 <Frame name="CT_RA_AssistFrame" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="UIParent">
364 <Size>
365 <AbsDimension x="325" y="125"/>
366 </Size>
367 <Anchors>
368 <Anchor point="CENTER" relativeTo="UIParent"/>
369 </Anchors>
370 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
371 <BackgroundInsets>
372 <AbsInset left="11" right="12" top="12" bottom="11"/>
373 </BackgroundInsets>
374 <TileSize>
375 <AbsValue val="32"/>
376 </TileSize>
377 <EdgeSize>
378 <AbsValue val="32"/>
379 </EdgeSize>
380 </Backdrop>
381 <Layers>
382 <Layer level="ARTWORK">
383 <Texture name="$parentHeaderTexture" file="Interface\DialogFrame\UI-DialogBox-Header">
384 <Size>
385 <AbsDimension x="256" y="64"/>
386 </Size>
387 <Anchors>
388 <Anchor point="TOP">
389 <Offset>
390 <AbsDimension x="0" y="12"/>
391 </Offset>
392 </Anchor>
393 </Anchors>
394 </Texture>
395 <FontString name="$parentHeaderText" inherits="GameFontNormal" text="Assist">
396 <Anchors>
397 <Anchor point="TOP" relativeTo="$parentHeaderTexture">
398 <Offset>
399 <AbsDimension x="0" y="-14"/>
400 </Offset>
401 </Anchor>
402 </Anchors>
403 </FontString>
404 <FontString name="$parentInfo" justifyV="top" inherits="GameFontNormal">
405 <Size>
406 <AbsDimension x="350" y="32"/>
407 </Size>
408 <Anchors>
409 <Anchor point="TOP">
410 <Offset>
411 <AbsDimension x="0" y="-30"/>
412 </Offset>
413 </Anchor>
414 </Anchors>
415 </FontString>
416 </Layer>
417 </Layers>
418 <Frames>
419 <Button name="$parentAssistButton" hidden="false" inherits="GameMenuButtonTemplate" text="Assist">
420 <Size>
421 <AbsDimension x="125" y="32"/>
422 </Size>
423 <Anchors>
424 <Anchor point="CENTER" relativePoint="CENTER">
425 <Offset>
426 <AbsDimension x="0" y="-20"/>
427 </Offset>
428 </Anchor>
429 </Anchors>
430 <Scripts>
431 <OnClick>
432 for i = 1, GetNumRaidMembers(), 1 do
433 if ( UnitName("raid" .. i) == CT_RATarget.assistPerson[1] ) then
434 AssistUnit("raid" .. i);
435 break;
436 end
437 end
438 CT_RATarget.assistPerson = nil;
439 this:GetParent():Hide();
440 PlaySound("UChatScrollButton");
441 </OnClick>
442 </Scripts>
443 </Button>
444 </Frames>
445 <Scripts>
446 <OnShow>
447 PlaySound("TellMessage");
448 getglobal(this:GetName() .. "Info"):SetText("'|c00FFFFFF" .. CT_RATarget.assistPerson[1] .. "|r' wants you to assist him/her.\nPress Assist to assist.");
449 </OnShow>
450 </Scripts>
451 </Frame>
452 </Ui>