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="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="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="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="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="220" y="-210"/>
76 </Offset>
77 </Anchor>
78 </Anchors>
79 </FontString>
80  
81 <FontString name="$parent_Target_Text" inherits="GameFontNormal" text="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="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="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("Always");
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("w/ Auto Attack");
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("On Agro");
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("Never");
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("Health Persistance");
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("Mana Persistance");
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("Display Pet Bars");
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("Display Druid Bar");
287 </OnLoad>
288 <OnClick>
289 Perl_Config_CombatDisplay_DruidBar_Update();
290 </OnClick>
291 </Scripts>
292 </CheckButton>
293  
294 <CheckButton name="$parent_CheckButton8" inherits="UICheckButtonTemplate" id="8">
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("Lock CombatDisplay Frame");
308 </OnLoad>
309 <OnClick>
310 Perl_Config_CombatDisplay_Lock_Update();
311 </OnClick>
312 </Scripts>
313 </CheckButton>
314  
315 <Slider name="$parent_Slider1" inherits="OptionsSliderTemplate" minValue="1" maxValue="149" valueStep="1">
316 <Size>
317 <AbsDimension x="200" y="15"/>
318 </Size>
319 <Anchors>
320 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Scaling_Text">
321 <Offset>
322 <AbsDimension x="20" y="-20"/>
323 </Offset>
324 </Anchor>
325 </Anchors>
326 <Scripts>
327 <OnValueChanged>
328 getglobal(this:GetName().."Text"):SetText(getglobal(this:GetName()):GetValue());
329 Perl_Config_CombatDisplay_Set_Scale(getglobal(this:GetName()):GetValue());
330 </OnValueChanged>
331 </Scripts>
332 </Slider>
333  
334 <CheckButton name="$parent_CheckButton9" inherits="UICheckButtonTemplate" id="9">
335 <Size>
336 <AbsDimension x="20" y="20"/>
337 </Size>
338 <Anchors>
339 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parent_Slider1">
340 <Offset>
341 <AbsDimension x="20" y="0"/>
342 </Offset>
343 </Anchor>
344 </Anchors>
345 <Scripts>
346 <OnLoad>
347 getglobal(this:GetName().."Text"):SetText("Set To Current UI Scale");
348 </OnLoad>
349 <OnClick>
350 Perl_Config_CombatDisplay_Set_Scale();
351 </OnClick>
352 </Scripts>
353 </CheckButton>
354  
355 <Slider name="$parent_Slider2" inherits="OptionsSliderTemplate" minValue="0" maxValue="100" valueStep="1">
356 <Size>
357 <AbsDimension x="200" y="15"/>
358 </Size>
359 <Anchors>
360 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Transparency_Text">
361 <Offset>
362 <AbsDimension x="20" y="-20"/>
363 </Offset>
364 </Anchor>
365 </Anchors>
366 <Scripts>
367 <OnValueChanged>
368 getglobal(this:GetName().."Text"):SetText(getglobal(this:GetName()):GetValue());
369 Perl_Config_CombatDisplay_Set_Transparency(getglobal(this:GetName()):GetValue());
370 </OnValueChanged>
371 </Scripts>
372 </Slider>
373  
374 <CheckButton name="$parent_CheckButton10" inherits="UICheckButtonTemplate" id="10">
375 <Size>
376 <AbsDimension x="20" y="20"/>
377 </Size>
378 <Anchors>
379 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Target_Text">
380 <Offset>
381 <AbsDimension x="20" y="-20"/>
382 </Offset>
383 </Anchor>
384 </Anchors>
385 <Scripts>
386 <OnLoad>
387 getglobal(this:GetName().."Text"):SetText("Enable CombatDisplay Target Frame");
388 </OnLoad>
389 <OnClick>
390 Perl_Config_CombatDisplay_Target_Update();
391 </OnClick>
392 </Scripts>
393 </CheckButton>
394  
395 <CheckButton name="$parent_CheckButton11" inherits="UICheckButtonTemplate" id="11">
396 <Size>
397 <AbsDimension x="20" y="20"/>
398 </Size>
399 <Anchors>
400 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton10">
401 <Offset>
402 <AbsDimension x="0" y="-20"/>
403 </Offset>
404 </Anchor>
405 </Anchors>
406 <Scripts>
407 <OnLoad>
408 getglobal(this:GetName().."Text"):SetText("MobHealth Support");
409 </OnLoad>
410 <OnClick>
411 Perl_Config_CombatDisplay_MobHealth_Update();
412 </OnClick>
413 </Scripts>
414 </CheckButton>
415 </Frames>
416  
417 </Frame>
418 </Ui>