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 ..\FrameXML\UI.xsd">
3 <Script file="Perl_Config_Target_Target.lua"/>
4  
5  
6 <Frame name="Perl_Config_Target_Target_Frame" frameStrata="DIALOG" hidden="true" enableMouse="true">
7 <Size>
8 <AbsDimension x="600" y="380"/>
9 </Size>
10 <Anchors>
11 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="Perl_Config_Frame">
12 <Offset>
13 <AbsDimension x="0" y="-120"/>
14 </Offset>
15 </Anchor>
16 </Anchors>
17 <Layers>
18 <Layer level="ARTWORK">
19 <Texture name="Perl_Config_Target_Target_Header" file="Interface\DialogFrame\UI-DialogBox-Header">
20 <Size>
21 <AbsDimension x="256" y="64"/>
22 </Size>
23 <Anchors>
24 <Anchor point="TOP">
25 <Offset>
26 <AbsDimension x="0" y="12"/>
27 </Offset>
28 </Anchor>
29 </Anchors>
30 </Texture>
31 <FontString inherits="GameFontNormal" text="Target_Target">
32 <Anchors>
33 <Anchor point="TOP" relativeTo="Perl_Config_Target_Target_Header">
34 <Offset>
35 <AbsDimension x="0" y="-14"/>
36 </Offset>
37 </Anchor>
38 </Anchors>
39 </FontString>
40  
41 <FontString name="$parent_Main_Text" inherits="GameFontNormal" text="Main">
42 <Anchors>
43 <Anchor point="LEFT" relativePoint="TOPLEFT">
44 <Offset>
45 <AbsDimension x="20" y="-30"/>
46 </Offset>
47 </Anchor>
48 </Anchors>
49 </FontString>
50  
51 <FontString name="$parent_ToT_Text" inherits="GameFontNormal" text="Alert Mode">
52 <Anchors>
53 <Anchor point="LEFT" relativePoint="TOPLEFT">
54 <Offset>
55 <AbsDimension x="20" y="-100"/>
56 </Offset>
57 </Anchor>
58 </Anchors>
59 </FontString>
60  
61 <FontString name="$parent_Misc_Text" inherits="GameFontNormal" text="Misc">
62 <Anchors>
63 <Anchor point="LEFT" relativePoint="TOPLEFT">
64 <Offset>
65 <AbsDimension x="20" y="-190"/>
66 </Offset>
67 </Anchor>
68 </Anchors>
69 </FontString>
70  
71 <FontString name="$parent_Alert_Text" inherits="GameFontNormal" text="Alert Size">
72 <Anchors>
73 <Anchor point="LEFT" relativePoint="TOPLEFT">
74 <Offset>
75 <AbsDimension x="175" y="-100"/>
76 </Offset>
77 </Anchor>
78 </Anchors>
79 </FontString>
80  
81 <FontString name="$parent_Transparency_Text" inherits="GameFontNormal" text="Transparency">
82 <Anchors>
83 <Anchor point="LEFT" relativePoint="TOPLEFT">
84 <Offset>
85 <AbsDimension x="350" y="-30"/>
86 </Offset>
87 </Anchor>
88 </Anchors>
89 </FontString>
90  
91 <FontString name="$parent_Scaling_Text" inherits="GameFontNormal" text="Scaling">
92 <Anchors>
93 <Anchor point="LEFT" relativePoint="TOPLEFT">
94 <Offset>
95 <AbsDimension x="20" y="-325"/>
96 </Offset>
97 </Anchor>
98 </Anchors>
99 </FontString>
100 </Layer>
101 </Layers>
102  
103 <Frames>
104 <CheckButton name="$parent_CheckButton1" inherits="UICheckButtonTemplate" id="1">
105 <Size>
106 <AbsDimension x="20" y="20"/>
107 </Size>
108 <Anchors>
109 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Main_Text">
110 <Offset>
111 <AbsDimension x="20" y="-20"/>
112 </Offset>
113 </Anchor>
114 </Anchors>
115 <Scripts>
116 <OnLoad>
117 getglobal(this:GetName().."Text"):SetText("Enable Target of Target");
118 </OnLoad>
119 <OnClick>
120 Perl_Config_Target_Target_ToT_Update();
121 </OnClick>
122 </Scripts>
123 </CheckButton>
124  
125 <CheckButton name="$parent_CheckButton2" inherits="UICheckButtonTemplate" id="2">
126 <Size>
127 <AbsDimension x="20" y="20"/>
128 </Size>
129 <Anchors>
130 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton1">
131 <Offset>
132 <AbsDimension x="0" y="-20"/>
133 </Offset>
134 </Anchor>
135 </Anchors>
136 <Scripts>
137 <OnLoad>
138 getglobal(this:GetName().."Text"):SetText("Enable Target of Target of Target");
139 </OnLoad>
140 <OnClick>
141 Perl_Config_Target_Target_ToToT_Update();
142 </OnClick>
143 </Scripts>
144 </CheckButton>
145  
146 <CheckButton name="$parent_CheckButton7" inherits="UICheckButtonTemplate" id="7">
147 <Size>
148 <AbsDimension x="20" y="20"/>
149 </Size>
150 <Anchors>
151 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Misc_Text">
152 <Offset>
153 <AbsDimension x="20" y="-20"/>
154 </Offset>
155 </Anchor>
156 </Anchors>
157 <Scripts>
158 <OnLoad>
159 getglobal(this:GetName().."Text"):SetText("Audio Alert on Agro");
160 </OnLoad>
161 <OnClick>
162 Perl_Config_Target_Target_Sound_Update();
163 </OnClick>
164 </Scripts>
165 </CheckButton>
166  
167 <CheckButton name="$parent_CheckButton3" inherits="UICheckButtonTemplate" id="3">
168 <Size>
169 <AbsDimension x="20" y="20"/>
170 </Size>
171 <Anchors>
172 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton7">
173 <Offset>
174 <AbsDimension x="0" y="-20"/>
175 </Offset>
176 </Anchor>
177 </Anchors>
178 <Scripts>
179 <OnLoad>
180 getglobal(this:GetName().."Text"):SetText("MobHealth Support");
181 </OnLoad>
182 <OnClick>
183 Perl_Config_Target_Target_MobHealth_Update();
184 </OnClick>
185 </Scripts>
186 </CheckButton>
187  
188 <CheckButton name="$parent_CheckButton5" inherits="UICheckButtonTemplate" id="5">
189 <Size>
190 <AbsDimension x="20" y="20"/>
191 </Size>
192 <Anchors>
193 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton3">
194 <Offset>
195 <AbsDimension x="0" y="-20"/>
196 </Offset>
197 </Anchor>
198 </Anchors>
199 <Scripts>
200 <OnLoad>
201 getglobal(this:GetName().."Text"):SetText("Lock Target_Target Frames");
202 </OnLoad>
203 <OnClick>
204 Perl_Config_Target_Target_Lock_Update();
205 </OnClick>
206 </Scripts>
207 </CheckButton>
208  
209 <Slider name="$parent_Slider1" inherits="OptionsSliderTemplate" minValue="1" maxValue="149" valueStep="1">
210 <Size>
211 <AbsDimension x="200" y="15"/>
212 </Size>
213 <Anchors>
214 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Scaling_Text">
215 <Offset>
216 <AbsDimension x="20" y="-20"/>
217 </Offset>
218 </Anchor>
219 </Anchors>
220 <Scripts>
221 <OnValueChanged>
222 getglobal(this:GetName().."Text"):SetText(getglobal(this:GetName()):GetValue());
223 Perl_Config_Target_Target_Set_Scale(getglobal(this:GetName()):GetValue());
224 </OnValueChanged>
225 </Scripts>
226 </Slider>
227  
228 <CheckButton name="$parent_CheckButton6" inherits="UICheckButtonTemplate" id="6">
229 <Size>
230 <AbsDimension x="20" y="20"/>
231 </Size>
232 <Anchors>
233 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parent_Slider1">
234 <Offset>
235 <AbsDimension x="20" y="0"/>
236 </Offset>
237 </Anchor>
238 </Anchors>
239 <Scripts>
240 <OnLoad>
241 getglobal(this:GetName().."Text"):SetText("Set To Current UI Scale");
242 </OnLoad>
243 <OnClick>
244 Perl_Config_Target_Target_Set_Scale();
245 </OnClick>
246 </Scripts>
247 </CheckButton>
248  
249 <Slider name="$parent_Slider2" inherits="OptionsSliderTemplate" minValue="0" maxValue="100" valueStep="1">
250 <Size>
251 <AbsDimension x="200" y="15"/>
252 </Size>
253 <Anchors>
254 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Transparency_Text">
255 <Offset>
256 <AbsDimension x="20" y="-20"/>
257 </Offset>
258 </Anchor>
259 </Anchors>
260 <Scripts>
261 <OnValueChanged>
262 getglobal(this:GetName().."Text"):SetText(getglobal(this:GetName()):GetValue());
263 Perl_Config_Target_Target_Set_Transparency(getglobal(this:GetName()):GetValue());
264 </OnValueChanged>
265 </Scripts>
266 </Slider>
267  
268 <CheckButton name="$parent_CheckButton8" inherits="UICheckButtonTemplate" id="8">
269 <Size>
270 <AbsDimension x="20" y="20"/>
271 </Size>
272 <Anchors>
273 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_ToT_Text">
274 <Offset>
275 <AbsDimension x="20" y="-20"/>
276 </Offset>
277 </Anchor>
278 </Anchors>
279 <Scripts>
280 <OnLoad>
281 getglobal(this:GetName().."Text"):SetText("DPS Mode");
282 </OnLoad>
283 <OnClick>
284 Perl_Config_Target_Target_Frame_CheckButton9:SetChecked(nil); <!-- We need to uncheck Button 9 -->
285 Perl_Config_Target_Target_Frame_CheckButton10:SetChecked(nil); <!-- We need to uncheck Button 10 -->
286 Perl_Config_Target_Target_Mode_Update();
287 </OnClick>
288 </Scripts>
289 </CheckButton>
290  
291 <CheckButton name="$parent_CheckButton9" inherits="UICheckButtonTemplate" id="9">
292 <Size>
293 <AbsDimension x="20" y="20"/>
294 </Size>
295 <Anchors>
296 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton8" >
297 <Offset>
298 <AbsDimension x="0" y="-20"/>
299 </Offset>
300 </Anchor>
301 </Anchors>
302 <Scripts>
303 <OnLoad>
304 getglobal(this:GetName().."Text"):SetText("Tank Mode");
305 </OnLoad>
306 <OnClick>
307 Perl_Config_Target_Target_Frame_CheckButton8:SetChecked(nil); <!-- We need to uncheck Button 8 -->
308 Perl_Config_Target_Target_Frame_CheckButton10:SetChecked(nil); <!-- We need to uncheck Button 10 -->
309 Perl_Config_Target_Target_Mode_Update();
310 </OnClick>
311 </Scripts>
312 </CheckButton>
313  
314 <CheckButton name="$parent_CheckButton10" inherits="UICheckButtonTemplate" id="10">
315 <Size>
316 <AbsDimension x="20" y="20"/>
317 </Size>
318 <Anchors>
319 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton9">
320 <Offset>
321 <AbsDimension x="0" y="-20"/>
322 </Offset>
323 </Anchor>
324 </Anchors>
325 <Scripts>
326 <OnLoad>
327 getglobal(this:GetName().."Text"):SetText("Healer Mode");
328 </OnLoad>
329 <OnClick>
330 Perl_Config_Target_Target_Frame_CheckButton8:SetChecked(nil); <!-- We need to uncheck Button 8 -->
331 Perl_Config_Target_Target_Frame_CheckButton9:SetChecked(nil); <!-- We need to uncheck Button 9 -->
332 Perl_Config_Target_Target_Mode_Update();
333 </OnClick>
334 </Scripts>
335 </CheckButton>
336  
337 <CheckButton name="$parent_CheckButton11" inherits="UICheckButtonTemplate" id="11">
338 <Size>
339 <AbsDimension x="20" y="20"/>
340 </Size>
341 <Anchors>
342 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Alert_Text">
343 <Offset>
344 <AbsDimension x="20" y="-20"/>
345 </Offset>
346 </Anchor>
347 </Anchors>
348 <Scripts>
349 <OnLoad>
350 getglobal(this:GetName().."Text"):SetText("Small Text");
351 </OnLoad>
352 <OnClick>
353 Perl_Config_Target_Target_Frame_CheckButton12:SetChecked(nil); <!-- We need to uncheck Button 12 -->
354 Perl_Config_Target_Target_Frame_CheckButton13:SetChecked(nil); <!-- We need to uncheck Button 13 -->
355 Perl_Config_Target_Target_Alert_Size_Update();
356 </OnClick>
357 </Scripts>
358 </CheckButton>
359  
360 <CheckButton name="$parent_CheckButton12" inherits="UICheckButtonTemplate" id="12">
361 <Size>
362 <AbsDimension x="20" y="20"/>
363 </Size>
364 <Anchors>
365 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton11">
366 <Offset>
367 <AbsDimension x="0" y="-20"/>
368 </Offset>
369 </Anchor>
370 </Anchors>
371 <Scripts>
372 <OnLoad>
373 getglobal(this:GetName().."Text"):SetText("Large Text");
374 </OnLoad>
375 <OnClick>
376 Perl_Config_Target_Target_Frame_CheckButton11:SetChecked(nil); <!-- We need to uncheck Button 11 -->
377 Perl_Config_Target_Target_Frame_CheckButton13:SetChecked(nil); <!-- We need to uncheck Button 13 -->
378 Perl_Config_Target_Target_Alert_Size_Update();
379 </OnClick>
380 </Scripts>
381 </CheckButton>
382  
383 <CheckButton name="$parent_CheckButton13" inherits="UICheckButtonTemplate" id="13">
384 <Size>
385 <AbsDimension x="20" y="20"/>
386 </Size>
387 <Anchors>
388 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton12">
389 <Offset>
390 <AbsDimension x="0" y="-20"/>
391 </Offset>
392 </Anchor>
393 </Anchors>
394 <Scripts>
395 <OnLoad>
396 getglobal(this:GetName().."Text"):SetText("No Text");
397 </OnLoad>
398 <OnClick>
399 Perl_Config_Target_Target_Frame_CheckButton11:SetChecked(nil); <!-- We need to uncheck Button 11 -->
400 Perl_Config_Target_Target_Frame_CheckButton12:SetChecked(nil); <!-- We need to uncheck Button 12 -->
401 Perl_Config_Target_Target_Alert_Size_Update();
402 </OnClick>
403 </Scripts>
404 </CheckButton>
405  
406 <Button name="$parent_Button1" inherits="UIPanelButtonTemplate" text="Right of Target Frame">
407 <Size>
408 <AbsDimension x="170" y="22"/>
409 </Size>
410 <Anchors>
411 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Transparency_Text">
412 <Offset>
413 <AbsDimension x="0" y="-100"/>
414 </Offset>
415 </Anchor>
416 </Anchors>
417 <Scripts>
418 <OnClick>
419 Perl_Target_Target_Allign(1);
420 DEFAULT_CHAT_FRAME:AddMessage("|cffffff00Perl Classic Unit Frames: Target of Target frames have been 'Right Aligned'.");
421 </OnClick>
422 </Scripts>
423 </Button>
424  
425 <Button name="$parent_Button2" inherits="UIPanelButtonTemplate" text="Top of Target Frame">
426 <Size>
427 <AbsDimension x="170" y="22"/>
428 </Size>
429 <Anchors>
430 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Button1">
431 <Offset>
432 <AbsDimension x="0" y="-30"/>
433 </Offset>
434 </Anchor>
435 </Anchors>
436 <Scripts>
437 <OnClick>
438 Perl_Target_Target_Allign(2);
439 DEFAULT_CHAT_FRAME:AddMessage("|cffffff00Perl Classic Unit Frames: Target of Target frames have been 'Top Aligned'.");
440 </OnClick>
441 </Scripts>
442 </Button>
443 </Frames>
444  
445 </Frame>
446 </Ui>