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_CombatDisplay.lua"/>
4  
5  
6 <Frame name="Perl_Config_CombatDisplay_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_CombatDisplay_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="PERL_LOCALIZED_CONFIG_COMBATDISPLAY">
32 <Anchors>
33 <Anchor point="TOP" relativeTo="Perl_Config_CombatDisplay_Header">
34 <Offset>
35 <AbsDimension x="0" y="-14"/>
36 </Offset>
37 </Anchor>
38 </Anchors>
39 </FontString>
40  
41 <FontString name="$parent_Display_Mode_Text" inherits="GameFontNormal" text="PERL_LOCALIZED_CONFIG_DISPLAY_MODE">
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_Persist_Modes_Text" inherits="GameFontNormal" text="PERL_LOCALIZED_CONFIG_COMBATDISPLAY_PERSIST_MODES">
52 <Anchors>
53 <Anchor point="LEFT" relativePoint="TOPLEFT">
54 <Offset>
55 <AbsDimension x="20" y="-140"/>
56 </Offset>
57 </Anchor>
58 </Anchors>
59 </FontString>
60  
61 <FontString name="$parent_Misc_Text" inherits="GameFontNormal" text="PERL_LOCALIZED_CONFIG_MISC">
62 <Anchors>
63 <Anchor point="LEFT" relativePoint="TOPLEFT">
64 <Offset>
65 <AbsDimension x="20" y="-210"/>
66 </Offset>
67 </Anchor>
68 </Anchors>
69 </FontString>
70  
71 <FontString name="$parent_Misc2_Text" inherits="GameFontNormal" text=" ">
72 <Anchors>
73 <Anchor point="LEFT" relativePoint="TOPLEFT">
74 <Offset>
75 <AbsDimension x="240" y="-210"/>
76 </Offset>
77 </Anchor>
78 </Anchors>
79 </FontString>
80  
81 <FontString name="$parent_Target_Text" inherits="GameFontNormal" text="PERL_LOCALIZED_CONFIG_COMBATDISPLAY_TARGET_SETTINGS">
82 <Anchors>
83 <Anchor point="LEFT" relativePoint="TOPLEFT">
84 <Offset>
85 <AbsDimension x="200" y="-140"/>
86 </Offset>
87 </Anchor>
88 </Anchors>
89 </FontString>
90  
91 <FontString name="$parent_Transparency_Text" inherits="GameFontNormal" text="PERL_LOCALIZED_CONFIG_TRANSPARENCY">
92 <Anchors>
93 <Anchor point="LEFT" relativePoint="TOPLEFT">
94 <Offset>
95 <AbsDimension x="350" y="-30"/>
96 </Offset>
97 </Anchor>
98 </Anchors>
99 </FontString>
100  
101 <FontString name="$parent_Scaling_Text" inherits="GameFontNormal" text="PERL_LOCALIZED_CONFIG_SCALING">
102 <Anchors>
103 <Anchor point="LEFT" relativePoint="TOPLEFT">
104 <Offset>
105 <AbsDimension x="20" y="-325"/>
106 </Offset>
107 </Anchor>
108 </Anchors>
109 </FontString>
110 </Layer>
111 </Layers>
112  
113 <Frames>
114 <CheckButton name="$parent_CheckButton1" inherits="UICheckButtonTemplate" id="1">
115 <Size>
116 <AbsDimension x="20" y="20"/>
117 </Size>
118 <Anchors>
119 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Display_Mode_Text">
120 <Offset>
121 <AbsDimension x="20" y="-20"/>
122 </Offset>
123 </Anchor>
124 </Anchors>
125 <Scripts>
126 <OnLoad>
127 getglobal(this:GetName().."Text"):SetText(PERL_LOCALIZED_CONFIG_ALWAYS_SHOWN);
128 </OnLoad>
129 <OnClick>
130 Perl_Config_CombatDisplay_Frame_CheckButton2:SetChecked(nil); <!-- We need to uncheck Button 2 -->
131 Perl_Config_CombatDisplay_Frame_CheckButton3:SetChecked(nil); <!-- We need to uncheck Button 3 -->
132 Perl_Config_CombatDisplay_Frame_CheckButton4:SetChecked(nil); <!-- We need to uncheck Button 4 -->
133 Perl_Config_CombatDisplay_Mode_Update();
134 </OnClick>
135 </Scripts>
136 </CheckButton>
137  
138 <CheckButton name="$parent_CheckButton2" inherits="UICheckButtonTemplate" id="2">
139 <Size>
140 <AbsDimension x="20" y="20"/>
141 </Size>
142 <Anchors>
143 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton1" >
144 <Offset>
145 <AbsDimension x="0" y="-20"/>
146 </Offset>
147 </Anchor>
148 </Anchors>
149 <Scripts>
150 <OnLoad>
151 getglobal(this:GetName().."Text"):SetText(PERL_LOCALIZED_CONFIG_COMBATDISPLAY_AUTOATTACK);
152 </OnLoad>
153 <OnClick>
154 Perl_Config_CombatDisplay_Frame_CheckButton1:SetChecked(nil); <!-- We need to uncheck Button 1 -->
155 Perl_Config_CombatDisplay_Frame_CheckButton3:SetChecked(nil); <!-- We need to uncheck Button 3 -->
156 Perl_Config_CombatDisplay_Frame_CheckButton4:SetChecked(nil); <!-- We need to uncheck Button 4 -->
157 Perl_Config_CombatDisplay_Mode_Update();
158 </OnClick>
159 </Scripts>
160 </CheckButton>
161  
162 <CheckButton name="$parent_CheckButton3" inherits="UICheckButtonTemplate" id="3">
163 <Size>
164 <AbsDimension x="20" y="20"/>
165 </Size>
166 <Anchors>
167 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton2">
168 <Offset>
169 <AbsDimension x="0" y="-20"/>
170 </Offset>
171 </Anchor>
172 </Anchors>
173 <Scripts>
174 <OnLoad>
175 getglobal(this:GetName().."Text"):SetText(PERL_LOCALIZED_CONFIG_COMBATDISPLAY_ONAGRO);
176 </OnLoad>
177 <OnClick>
178 Perl_Config_CombatDisplay_Frame_CheckButton1:SetChecked(nil); <!-- We need to uncheck Button 1 -->
179 Perl_Config_CombatDisplay_Frame_CheckButton2:SetChecked(nil); <!-- We need to uncheck Button 2 -->
180 Perl_Config_CombatDisplay_Frame_CheckButton4:SetChecked(nil); <!-- We need to uncheck Button 4 -->
181 Perl_Config_CombatDisplay_Mode_Update();
182 </OnClick>
183 </Scripts>
184 </CheckButton>
185  
186 <CheckButton name="$parent_CheckButton4" inherits="UICheckButtonTemplate" id="4">
187 <Size>
188 <AbsDimension x="20" y="20"/>
189 </Size>
190 <Anchors>
191 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton3">
192 <Offset>
193 <AbsDimension x="0" y="-20"/>
194 </Offset>
195 </Anchor>
196 </Anchors>
197 <Scripts>
198 <OnLoad>
199 getglobal(this:GetName().."Text"):SetText(PERL_LOCALIZED_CONFIG_ALWAYS_HIDDEN);
200 </OnLoad>
201 <OnClick>
202 Perl_Config_CombatDisplay_Frame_CheckButton1:SetChecked(nil); <!-- We need to uncheck Button 1 -->
203 Perl_Config_CombatDisplay_Frame_CheckButton2:SetChecked(nil); <!-- We need to uncheck Button 2 -->
204 Perl_Config_CombatDisplay_Frame_CheckButton3:SetChecked(nil); <!-- We need to uncheck Button 3 -->
205 Perl_Config_CombatDisplay_Mode_Update();
206 </OnClick>
207 </Scripts>
208 </CheckButton>
209  
210 <CheckButton name="$parent_CheckButton5" inherits="UICheckButtonTemplate" id="5">
211 <Size>
212 <AbsDimension x="20" y="20"/>
213 </Size>
214 <Anchors>
215 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Persist_Modes_Text">
216 <Offset>
217 <AbsDimension x="20" y="-20"/>
218 </Offset>
219 </Anchor>
220 </Anchors>
221 <Scripts>
222 <OnLoad>
223 getglobal(this:GetName().."Text"):SetText(PERL_LOCALIZED_CONFIG_COMBATDISPLAY_HEALTH_PERSIST);
224 </OnLoad>
225 <OnClick>
226 Perl_Config_CombatDisplay_Health_Persistance_Update();
227 </OnClick>
228 </Scripts>
229 </CheckButton>
230  
231 <CheckButton name="$parent_CheckButton6" inherits="UICheckButtonTemplate" id="6">
232 <Size>
233 <AbsDimension x="20" y="20"/>
234 </Size>
235 <Anchors>
236 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton5">
237 <Offset>
238 <AbsDimension x="0" y="-20"/>
239 </Offset>
240 </Anchor>
241 </Anchors>
242 <Scripts>
243 <OnLoad>
244 getglobal(this:GetName().."Text"):SetText(PERL_LOCALIZED_CONFIG_COMBATDISPLAY_MANA_PERSIST);
245 </OnLoad>
246 <OnClick>
247 Perl_Config_CombatDisplay_Mana_Persistance_Update();
248 </OnClick>
249 </Scripts>
250 </CheckButton>
251  
252 <CheckButton name="$parent_CheckButton13" inherits="UICheckButtonTemplate" id="13">
253 <Size>
254 <AbsDimension x="20" y="20"/>
255 </Size>
256 <Anchors>
257 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Misc_Text">
258 <Offset>
259 <AbsDimension x="20" y="-20"/>
260 </Offset>
261 </Anchor>
262 </Anchors>
263 <Scripts>
264 <OnLoad>
265 getglobal(this:GetName().."Text"):SetText(PERL_LOCALIZED_CONFIG_PET_SUPPORT);
266 </OnLoad>
267 <OnClick>
268 Perl_Config_CombatDisplay_PetBars_Update();
269 </OnClick>
270 </Scripts>
271 </CheckButton>
272  
273 <CheckButton name="$parent_CheckButton12" inherits="UICheckButtonTemplate" id="12">
274 <Size>
275 <AbsDimension x="20" y="20"/>
276 </Size>
277 <Anchors>
278 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton13">
279 <Offset>
280 <AbsDimension x="0" y="-20"/>
281 </Offset>
282 </Anchor>
283 </Anchors>
284 <Scripts>
285 <OnLoad>
286 getglobal(this:GetName().."Text"):SetText(PERL_LOCALIZED_CONFIG_DRUIDBAR);
287 </OnLoad>
288 <OnClick>
289 Perl_Config_CombatDisplay_DruidBar_Update();
290 </OnClick>
291 </Scripts>
292 </CheckButton>
293  
294 <CheckButton name="$parent_CheckButton14" inherits="UICheckButtonTemplate" id="14">
295 <Size>
296 <AbsDimension x="20" y="20"/>
297 </Size>
298 <Anchors>
299 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton12">
300 <Offset>
301 <AbsDimension x="0" y="-20"/>
302 </Offset>
303 </Anchor>
304 </Anchors>
305 <Scripts>
306 <OnLoad>
307 getglobal(this:GetName().."Text"):SetText(PERL_LOCALIZED_CONFIG_COMBATDISPLAY_MENU);
308 </OnLoad>
309 <OnClick>
310 Perl_Config_CombatDisplay_Right_Click_Update();
311 </OnClick>
312 </Scripts>
313 </CheckButton>
314  
315 <CheckButton name="$parent_CheckButton8" inherits="UICheckButtonTemplate" id="8">
316 <Size>
317 <AbsDimension x="20" y="20"/>
318 </Size>
319 <Anchors>
320 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton14">
321 <Offset>
322 <AbsDimension x="0" y="-20"/>
323 </Offset>
324 </Anchor>
325 </Anchors>
326 <Scripts>
327 <OnLoad>
328 getglobal(this:GetName().."Text"):SetText(PERL_LOCALIZED_CONFIG_COMBATDISPLAY_LOCK);
329 </OnLoad>
330 <OnClick>
331 Perl_Config_CombatDisplay_Lock_Update();
332 </OnClick>
333 </Scripts>
334 </CheckButton>
335  
336 <Slider name="$parent_Slider1" inherits="OptionsSliderTemplate" minValue="1" maxValue="149" valueStep="1">
337 <Size>
338 <AbsDimension x="200" y="15"/>
339 </Size>
340 <Anchors>
341 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Scaling_Text">
342 <Offset>
343 <AbsDimension x="20" y="-20"/>
344 </Offset>
345 </Anchor>
346 </Anchors>
347 <Scripts>
348 <OnValueChanged>
349 getglobal(this:GetName().."Text"):SetText(getglobal(this:GetName()):GetValue());
350 Perl_Config_CombatDisplay_Set_Scale(getglobal(this:GetName()):GetValue());
351 </OnValueChanged>
352 </Scripts>
353 </Slider>
354  
355 <CheckButton name="$parent_CheckButton9" inherits="UICheckButtonTemplate" id="9">
356 <Size>
357 <AbsDimension x="20" y="20"/>
358 </Size>
359 <Anchors>
360 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parent_Slider1">
361 <Offset>
362 <AbsDimension x="20" y="0"/>
363 </Offset>
364 </Anchor>
365 </Anchors>
366 <Scripts>
367 <OnLoad>
368 getglobal(this:GetName().."Text"):SetText(PERL_LOCALIZED_CONFIG_SCALING_SET_CURRENT);
369 </OnLoad>
370 <OnClick>
371 Perl_Config_CombatDisplay_Set_Scale();
372 </OnClick>
373 </Scripts>
374 </CheckButton>
375  
376 <Slider name="$parent_Slider2" inherits="OptionsSliderTemplate" minValue="0" maxValue="100" valueStep="1">
377 <Size>
378 <AbsDimension x="200" y="15"/>
379 </Size>
380 <Anchors>
381 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Transparency_Text">
382 <Offset>
383 <AbsDimension x="20" y="-20"/>
384 </Offset>
385 </Anchor>
386 </Anchors>
387 <Scripts>
388 <OnValueChanged>
389 getglobal(this:GetName().."Text"):SetText(getglobal(this:GetName()):GetValue());
390 Perl_Config_CombatDisplay_Set_Transparency(getglobal(this:GetName()):GetValue());
391 </OnValueChanged>
392 </Scripts>
393 </Slider>
394  
395 <CheckButton name="$parent_CheckButton10" inherits="UICheckButtonTemplate" id="10">
396 <Size>
397 <AbsDimension x="20" y="20"/>
398 </Size>
399 <Anchors>
400 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Target_Text">
401 <Offset>
402 <AbsDimension x="20" y="-20"/>
403 </Offset>
404 </Anchor>
405 </Anchors>
406 <Scripts>
407 <OnLoad>
408 getglobal(this:GetName().."Text"):SetText(PERL_LOCALIZED_CONFIG_COMBATDISPLAY_ENABLE_TARGET);
409 </OnLoad>
410 <OnClick>
411 Perl_Config_CombatDisplay_Target_Update();
412 </OnClick>
413 </Scripts>
414 </CheckButton>
415  
416 <CheckButton name="$parent_CheckButton11" inherits="UICheckButtonTemplate" id="11">
417 <Size>
418 <AbsDimension x="20" y="20"/>
419 </Size>
420 <Anchors>
421 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton10">
422 <Offset>
423 <AbsDimension x="0" y="-20"/>
424 </Offset>
425 </Anchor>
426 </Anchors>
427 <Scripts>
428 <OnLoad>
429 getglobal(this:GetName().."Text"):SetText(PERL_LOCALIZED_CONFIG_MOBHEALTH);
430 </OnLoad>
431 <OnClick>
432 Perl_Config_CombatDisplay_MobHealth_Update();
433 </OnClick>
434 </Scripts>
435 </CheckButton>
436  
437 <CheckButton name="$parent_CheckButton15" inherits="UICheckButtonTemplate" id="15">
438 <Size>
439 <AbsDimension x="20" y="20"/>
440 </Size>
441 <Anchors>
442 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Misc2_Text">
443 <Offset>
444 <AbsDimension x="20" y="-20"/>
445 </Offset>
446 </Anchor>
447 </Anchors>
448 <Scripts>
449 <OnLoad>
450 getglobal(this:GetName().."Text"):SetText(PERL_LOCALIZED_CONFIG_FIVESEC);
451 </OnLoad>
452 <OnClick>
453 Perl_Config_CombatDisplay_FiveSec_Update();
454 </OnClick>
455 </Scripts>
456 </CheckButton>
457  
458 <CheckButton name="$parent_CheckButton16" inherits="UICheckButtonTemplate" id="16">
459 <Size>
460 <AbsDimension x="20" y="20"/>
461 </Size>
462 <Anchors>
463 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton15">
464 <Offset>
465 <AbsDimension x="0" y="-20"/>
466 </Offset>
467 </Anchor>
468 </Anchors>
469 <Scripts>
470 <OnLoad>
471 getglobal(this:GetName().."Text"):SetText(PERL_LOCALIZED_CONFIG_DISPLAY_PERCENTS);
472 </OnLoad>
473 <OnClick>
474 Perl_Config_CombatDisplay_Display_Percents_Update();
475 </OnClick>
476 </Scripts>
477 </CheckButton>
478 </Frames>
479  
480 </Frame>
481 </Ui>