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  
3 <script file="distance.lua"></script>
4 <script file="distance_options.lua"></script>
5 <script file="localization.lua"></script>
6 <script file="localization.de.lua"></script>
7 <script file="localization.kr.lua"></script>
8 <script file="localization.fr.lua"></script>
9 <script file="localization.cn.lua"></script>
10 <script file="localization.tw.lua"></script>
11 <!--.............................................................. OPTIONS ..............................................................-->
12 <Frame name="distance_options_frame" parent="UIParent" frameStrata="HIGH" level="BACKGROUND" enableMouse="true" resizable="false" hidden="true" movable="true">
13 <Size><AbsDimension x="520" y="400"/></Size>
14 <Backdrop edgeFile="\\Interface\\AddOns\\Distance\\texture\\Border">
15 <EdgeSize><AbsValue val="10"/></EdgeSize>
16 <BackgroundInsets><AbsInset left="3" right="2" top="2" bottom="2"/></BackgroundInsets>
17 </Backdrop>
18 <Anchors>
19 <Anchor point="LEFT">
20 </Anchor>
21 </Anchors>
22 <!--.............................................................. HEADER ..............................................................-->
23 <Frames>
24 <Frame name="distance_options_frame_header" parent="distance_options_frame" frameStrata="HIGH" level="BACKGROUND">
25 <Size><AbsDimension x="510" y="30"/></Size>
26 <Backdrop bgFile="\\Interface\\AddOns\\Distance\\texture\\Background" edgeFile="\\Interface\\AddOns\\Distance\\texture\\Border">
27 <EdgeSize><AbsValue val="10"/></EdgeSize>
28 <BackgroundInsets><AbsInset left="3" right="2" top="2" bottom="2"/></BackgroundInsets>
29 </Backdrop>
30 <Anchors>
31 <Anchor point="TOP" relativeTo="distance_options_frame">
32 <Offset><AbsDimension x="0" y="-5"/></Offset>
33 </Anchor>
34 </Anchors>
35 <!--...................................... HEADER TEXT ......................................-->
36 <Layers>
37 <Layer>
38 <FontString inherits="GameFontNormal" text="Distance v1.3">
39 <Anchors>
40 <Anchor point="CENTER" relativeTo="distance_options_frame_header">
41 <Offset><AbsDimension x="0" y="0"/></Offset>
42 </Anchor>
43 </Anchors>
44 </FontString>
45 </Layer>
46 </Layers>
47 </Frame>
48 <!--...................................... OPTION FRAME LEFT ......................................-->
49 <Frame name="distance_option_left" parent="distance_options_frame" frameStrata="HIGH" level="BACKGROUND">
50 <Size><AbsDimension x="195" y="360"/></Size>
51 <Backdrop bgFile="\\Interface\\AddOns\\Distance\\texture\\Background" edgeFile="\\Interface\\AddOns\\Distance\\texture\\Border">
52 <EdgeSize><AbsValue val="10"/></EdgeSize>
53 <BackgroundInsets><AbsInset left="3" right="2" top="2" bottom="2"/></BackgroundInsets>
54 </Backdrop>
55 <Anchors>
56 <Anchor point="LEFT" relativeTo="distance_options_frame">
57 <Offset><AbsDimension x="5" y="-15"/></Offset>
58 </Anchor>
59 </Anchors>
60 <!--...................................... lock ......................................-->
61 <Layers>
62 <Layer>
63 <FontString name="distance_lock_text" inherits="GameFontNormal" text="Lock position">
64 <Anchors>
65 <Anchor point="TOP" relativeTo="distance_option_left">
66 <Offset><AbsDimension x="0" y="-20"/></Offset>
67 </Anchor>
68 </Anchors>
69 </FontString>
70 </Layer>
71 <!--...................................... rotate ......................................-->
72  
73 <Layer>
74 <FontString name="distance_rotate_text" inherits="GameFontNormal" text="Horizontal">
75 <Anchors>
76 <Anchor point="TOP" relativeTo="distance_lock_text">
77 <Offset><AbsDimension x="0" y="-50"/> </Offset>
78 </Anchor>
79 </Anchors>
80 </FontString>
81 </Layer>
82 <!--...................................... anchor ......................................-->
83 <Layer>
84 <FontString name="distance_anchor_text" inherits="GameFontNormal" text="Text Anchor">
85 <Anchors>
86 <Anchor point="TOP" relativeTo="distance_rotate_text">
87 <Offset><AbsDimension x="0" y="-50"/></Offset>
88 </Anchor>
89 </Anchors>
90 </FontString>
91 </Layer>
92 <!--...................................... Width ......................................-->
93 <Layer>
94 <FontString name="distance_width_text" inherits="GameFontNormal" text="Width">
95 <Anchors>
96 <Anchor point="TOP" relativeTo="distance_anchor_text">
97 <Offset><AbsDimension x="0" y="-80"/></Offset>
98 </Anchor>
99 </Anchors>
100 </FontString>
101 </Layer>
102 <!--...................................... height ......................................-->
103 <Layer>
104 <FontString name="distance_height_text" inherits="GameFontNormal" text="Height">
105 <Anchors>
106 <Anchor point="TOP" relativeTo="distance_width_text">
107 <Offset><AbsDimension x="0" y="-50"/></Offset>
108 </Anchor>
109 </Anchors>
110 </FontString>
111 </Layer>
112 <!--...................................... alpha ......................................-->
113 <Layer>
114 <FontString name="distance_alpha_text" inherits="GameFontNormal" text="Alpha">
115 <Anchors>
116 <Anchor point="TOP" relativeTo="distance_height_text">
117 <Offset><AbsDimension x="0" y="-50"/></Offset>
118 </Anchor>
119 </Anchors>
120 </FontString>
121 </Layer>
122 </Layers>
123 </Frame>
124  
125 <!--.............................................................. CLOSE OPTIONS ..............................................................-->
126 <Button name="distance_options_frame_close_button" inherits="GameMenuButtonTemplate" text="Close">
127 <Size><AbsDimension x="50" y="20"/></Size>
128 <Anchors>
129 <Anchor point="RIGHT" relativeTo="distance_options_frame_header">
130 <Offset><AbsDimension x="-5" y="0"/></Offset>
131 </Anchor>
132 </Anchors>
133 <Scripts>
134 <OnClick>
135 distance_options_OnClick();
136 </OnClick>
137 </Scripts>
138 </Button>
139 <!--.............................................................. RESET OPTIONS ..............................................................-->
140 <Button name="distance_options_frame_reset_button" inherits="GameMenuButtonTemplate" text="Reset">
141 <Size><AbsDimension x="50" y="20"/></Size>
142 <Anchors>
143 <Anchor point="LEFT" relativeTo="distance_options_frame_header">
144 <Offset><AbsDimension x="5" y="0"/></Offset>
145 </Anchor>
146 </Anchors>
147 <Scripts>
148 <OnClick>
149 distance_frame_reset_OnClick();
150 </OnClick>
151 </Scripts>
152 </Button>
153 <!--.............................................................. LOCK FRAME ..............................................................-->
154 <CheckButton name="distance_options_frame_lock_button" parent="distance_option_left" inherits="OptionsCheckButtonTemplate" checked="true">
155 <Size><AbsDimension x="30" y="30"/></Size>
156 <Anchors>
157 <Anchor point="TOP" relativeTo="distance_lock_text">
158 <Offset><AbsDimension x="0" y="-10"/></Offset>
159 </Anchor>
160 </Anchors>
161 <Scripts>
162 <OnClick>
163 distance_frame_lock_OnClick();
164 </OnClick>
165 </Scripts>
166 </CheckButton>
167 <!--.............................................................. ROTATE FRAME ..............................................................-->
168 <CheckButton name="distance_options_frame_rotate_button" parent="distance_option_left" inherits="OptionsCheckButtonTemplate" checked="false">
169 <Size><AbsDimension x="30" y="30"/></Size>
170 <Anchors>
171 <Anchor point="TOP" relativeTo="distance_rotate_text">
172 <Offset><AbsDimension x="0" y="-10"/></Offset>
173 </Anchor>
174 </Anchors>
175 <Scripts>
176 <OnClick>
177 distance_frame_rotate_OnClick();
178 </OnClick>
179 </Scripts>
180 </CheckButton>
181 <!--.............................................................. ANCHORS ..............................................................-->
182 <!--...................................... BR ......................................-->
183 <Button name="distance_options_frame_BR_button" parent="distance_option_left" inherits="OptionsButtonTemplate" text="BR">
184 <Size><AbsDimension x="20" y="20"/></Size>
185 <Anchors>
186 <Anchor point="TOP" relativeTo="distance_anchor_text">
187 <Offset><AbsDimension x="30" y="-40"/></Offset>
188 </Anchor>
189 </Anchors>
190 <Scripts>
191 <OnClick>
192 distance_frame_BR_OnClick();
193 </OnClick>
194 </Scripts>
195 </Button>
196 <!--...................................... TR ......................................-->
197 <Button name="distance_options_frame_TR_button" parent="distance_option_left" inherits="OptionsButtonTemplate" text="TR">
198 <Size><AbsDimension x="20" y="20"/></Size>
199 <Anchors>
200 <Anchor point="TOP" relativeTo="distance_anchor_text">
201 <Offset><AbsDimension x="30" y="-15"/></Offset>
202 </Anchor>
203 </Anchors>
204 <Scripts>
205 <OnClick>
206 distance_frame_TR_OnClick();
207 </OnClick>
208 </Scripts>
209 </Button>
210 <!--...................................... BL ......................................-->
211 <Button name="distance_options_frame_BL_button" parent="distance_option_left" inherits="OptionsButtonTemplate" text="BL">
212 <Size><AbsDimension x="20" y="20"/></Size>
213 <Anchors>
214 <Anchor point="TOP" relativeTo="distance_anchor_text">
215 <Offset><AbsDimension x="-30" y="-40"/></Offset>
216 </Anchor>
217 </Anchors>
218 <Scripts>
219 <OnClick>
220 distance_frame_BL_OnClick();
221 </OnClick>
222 </Scripts>
223 </Button>
224 <!--...................................... TL ......................................-->
225 <Button name="distance_options_frame_TL_button" parent="distance_option_left" inherits="OptionsButtonTemplate" text="TL">
226 <Size><AbsDimension x="20" y="20"/></Size>
227 <Anchors>
228 <Anchor point="TOP" relativeTo="distance_anchor_text">
229 <Offset><AbsDimension x="-30" y="-15"/></Offset>
230 </Anchor>
231 </Anchors>
232 <Scripts>
233 <OnClick>
234 distance_frame_TL_OnClick();
235 </OnClick>
236 </Scripts>
237 </Button>
238 <!--...................................... BC ......................................-->
239 <Button name="distance_options_frame_BC_button" parent="distance_option_left" inherits="OptionsButtonTemplate" text="BC">
240 <Size><AbsDimension x="20" y="20"/></Size>
241 <Anchors>
242 <Anchor point="TOP" relativeTo="distance_anchor_text">
243 <Offset><AbsDimension x="0" y="-40"/></Offset>
244 </Anchor>
245 </Anchors>
246 <Scripts>
247 <OnClick>
248 distance_frame_BC_OnClick();
249 </OnClick>
250 </Scripts>
251 </Button>
252 <!--...................................... TC ......................................-->
253 <Button name="distance_options_frame_TC_button" parent="distance_option_left" inherits="OptionsButtonTemplate" text="TC">
254 <Size><AbsDimension x="20" y="20"/></Size>
255 <Anchors>
256 <Anchor point="TOP" relativeTo="distance_anchor_text">
257 <Offset><AbsDimension x="0" y="-15"/></Offset>
258 </Anchor>
259 </Anchors>
260 <Scripts>
261 <OnClick>
262 distance_frame_TC_OnClick();
263 </OnClick>
264 </Scripts>
265 </Button>
266 <!--.............................................................. SLIDERS ..............................................................-->
267 <!--...................................... WIDTH ......................................-->
268 <Slider name="distance_options_slider_width" parent="distance_option_left" inherits="OptionsSliderTemplate">
269 <Size><AbsDimension x="160" y="15"/></Size>
270 <Anchors>
271 <Anchor point="TOP" relativeTo="distance_width_text">
272 <Offset><AbsDimension x="0" y="-15"/></Offset>
273 </Anchor>
274 </Anchors>
275 <Scripts>
276 <OnValueChanged>
277 distance_slider_width();
278 </OnValueChanged>
279 </Scripts>
280 </Slider>
281 <!--...................................... HEIGHT ......................................-->
282 <Slider name="distance_options_slider_height" parent="distance_option_left" inherits="OptionsSliderTemplate">
283 <Size><AbsDimension x="160" y="15"/></Size>
284 <Anchors>
285 <Anchor point="TOP" relativeTo="distance_height_text">
286 <Offset><AbsDimension x="0" y="-15"/></Offset>
287 </Anchor>
288 </Anchors>
289 <Scripts>
290 <OnValueChanged>
291 distance_slider_height();
292 </OnValueChanged>
293 </Scripts>
294 </Slider>
295 <!--...................................... ALPHA ......................................-->
296 <Slider name="distance_options_slider_alpha" parent="distance_option_left" inherits="OptionsSliderTemplate">
297 <Size><AbsDimension x="160" y="15"/></Size>
298 <Anchors>
299 <Anchor point="TOP" relativeTo="distance_alpha_text">
300 <Offset><AbsDimension x="0" y="-15"/></Offset>
301 </Anchor>
302 </Anchors>
303 <Scripts>
304 <OnValueChanged>
305 distance_slider_alpha();
306 </OnValueChanged>
307 </Scripts>
308 </Slider>
309 <!--.............................................................. OPTION FRAME RIGHT ..............................................................-->
310 <Frame name="distance_option_right" parent="distance_options_frame" frameStrata="HIGH" level="BACKGROUND">
311 <Size><AbsDimension x="315" y="360"/></Size>
312 <Backdrop bgFile="\\Interface\\AddOns\\Distance\\texture\\Background" edgeFile="\\Interface\\AddOns\\Distance\\texture\\Border">
313 <EdgeSize><AbsValue val="10"/></EdgeSize>
314 <BackgroundInsets><AbsInset left="3" right="2" top="2" bottom="2"/></BackgroundInsets>
315 </Backdrop>
316 <Anchors>
317 <Anchor point="RIGHT" relativeTo="distance_options_frame">
318 <Offset><AbsDimension x="-5" y="-15"/></Offset>
319 </Anchor>
320 </Anchors>
321 <!--...................................... background texture ......................................-->
322 <Layers>
323 <Layer>
324 <FontString name="distance_background_texture" inherits="GameFontNormal" text="Background texture">
325 <Anchors>
326 <Anchor point="TOPLEFT" relativeTo="distance_option_right">
327 <Offset> <AbsDimension x="20" y="-20" /> </Offset>
328 </Anchor>
329 </Anchors>
330 </FontString>
331 </Layer>
332 <Layer>
333 </Layer>
334 <!--...................................... border texture ......................................-->
335 <Layer>
336 <FontString name="distance_border_texture" inherits="GameFontNormal" text="Border texture">
337 <Anchors>
338 <Anchor point="TOPLEFT" relativeTo="distance_background_texture">
339 <Offset> <AbsDimension x="0" y="-50" /> </Offset>
340 </Anchor>
341 </Anchors>
342 </FontString>
343 </Layer>
344 <!--...................................... bar texture ......................................-->
345 <Layer>
346 <FontString name="distance_bar_height_texture" inherits="GameFontNormal" text="Bar height texture">
347 <Anchors>
348 <Anchor point="TOPLEFT" relativeTo="distance_border_texture">
349 <Offset> <AbsDimension x="0" y="-50" /> </Offset>
350 </Anchor>
351 </Anchors>
352 </FontString>
353 </Layer>
354 <!--...................................... bar texture ......................................-->
355 <Layer>
356 <FontString name="distance_bar_width_texture" inherits="GameFontNormal" text="Bar width texture">
357 <Anchors>
358 <Anchor point="TOPLEFT" relativeTo="distance_bar_height_texture">
359 <Offset> <AbsDimension x="0" y="-50" /> </Offset>
360 </Anchor>
361 </Anchors>
362 </FontString>
363 </Layer>
364 <!--...................................... text texture ......................................-->
365 </Layers>
366 </Frame>
367 <!--.............................................................. BACKGROUND ..............................................................-->
368 <!--...................................... background texture ......................................-->
369 <EditBox name="distance_background_texture_editbox" frameStrata="HIGH" level="ARTWORK">
370 <Size><AbsDimension x="140" y="20"/></Size>
371 <Backdrop bgFile="\\Interface\\AddOns\\Distance\\texture\\Background" edgeFile="\\Interface\\AddOns\\Distance\\texture\\Border">
372 <EdgeSize><AbsValue val="10"/></EdgeSize>
373 <BackgroundInsets><AbsInset left="3" right="2" top="2" bottom="2"/></BackgroundInsets>
374 </Backdrop>
375 <Anchors>
376 <Anchor point="TOPLEFT" relativeTo="distance_background_texture">
377 <Offset><AbsDimension x="0" y="-20"/></Offset>
378 </Anchor>
379 </Anchors>
380 <FontString inherits="GameFontHighlightSmall"/>
381 <Scripts>
382 <OnEnterPressed>
383  
384 </OnEnterPressed>
385 </Scripts>
386 </EditBox>
387 <!--...................................... ok ......................................-->
388 <Button name="distance_background_texture_ok" inherits="OptionsButtonTemplate" text="Ok">
389 <Size><AbsDimension x="25" y="25"/></Size>
390 <Anchors>
391 <Anchor point="RIGHT" relativeTo="distance_background_texture_editbox">
392 <Offset><AbsDimension x="30" y="0"/></Offset>
393 </Anchor>
394 </Anchors>
395 <Scripts>
396 <OnClick>
397 distance_enter_background_texture();
398 </OnClick>
399 </Scripts>
400 </Button>
401 <!--...................................... color ......................................-->
402 <Button name="distance_background_texture_color" inherits="OptionsButtonTemplate" text="Color">
403 <Size><AbsDimension x="50" y="25"/></Size>
404 <Anchors>
405 <Anchor point="RIGHT" relativeTo="distance_background_texture_ok">
406 <Offset><AbsDimension x="55" y="0"/></Offset>
407 </Anchor>
408 </Anchors>
409 <Scripts>
410 <OnClick>
411  
412 </OnClick>
413 </Scripts>
414 </Button>
415 <!--...................................... default ......................................-->
416 <Button name="distance_background_texture_default" inherits="OptionsButtonTemplate" text="Default">
417 <Size><AbsDimension x="60" y="25"/></Size>
418 <Anchors>
419 <Anchor point="RIGHT" relativeTo="distance_background_texture_color">
420 <Offset><AbsDimension x="65" y="0"/></Offset>
421 </Anchor>
422 </Anchors>
423 <Scripts>
424 <OnClick>
425  
426 </OnClick>
427 </Scripts>
428 </Button>
429 <!--.............................................................. BORDER ..............................................................-->
430 <!--...................................... border texture ......................................-->
431 <EditBox name="distance_border_texture_editbox" frameStrata="HIGH" level="ARTWORK">
432 <Size><AbsDimension x="140" y="20"/></Size>
433 <Backdrop bgFile="\\Interface\\AddOns\\Distance\\texture\\Background" edgeFile="\\Interface\\AddOns\\Distance\\texture\\Border">
434 <EdgeSize><AbsValue val="10"/></EdgeSize>
435 <BackgroundInsets><AbsInset left="3" right="2" top="2" bottom="2"/></BackgroundInsets>
436 </Backdrop>
437 <Anchors>
438 <Anchor point="TOPLEFT" relativeTo="distance_border_texture">
439 <Offset><AbsDimension x="0" y="-20"/></Offset>
440 </Anchor>
441 </Anchors>
442 <FontString inherits="GameFontHighlightSmall"/>
443 <Scripts>
444 <OnEnterPressed>
445  
446 </OnEnterPressed>
447 </Scripts>
448 </EditBox>
449 <!--...................................... ok ......................................-->
450 <Button name="distance_border_texture_ok" inherits="OptionsButtonTemplate" text="Ok">
451 <Size><AbsDimension x="25" y="25"/></Size>
452 <Anchors>
453 <Anchor point="RIGHT" relativeTo="distance_border_texture_editbox">
454 <Offset><AbsDimension x="30" y="0"/></Offset>
455 </Anchor>
456 </Anchors>
457 <Scripts>
458 <OnClick>
459 distance_enter_border_texture();
460 </OnClick>
461 </Scripts>
462 </Button>
463 <!--...................................... border color ......................................-->
464 <Button name="distance_border_texture_color" inherits="OptionsButtonTemplate" text="Color">
465 <Size><AbsDimension x="50" y="25"/></Size>
466 <Anchors>
467 <Anchor point="RIGHT" relativeTo="distance_border_texture_ok">
468 <Offset><AbsDimension x="55" y="0"/></Offset>
469 </Anchor>
470 </Anchors>
471 </Button>
472 <!--...................................... border default ......................................-->
473 <Button name="distance_border_texture_default" inherits="OptionsButtonTemplate" text="Default">
474 <Size><AbsDimension x="60" y="25"/></Size>
475 <Anchors>
476 <Anchor point="RIGHT" relativeTo="distance_border_texture_color">
477 <Offset><AbsDimension x="65" y="0"/></Offset>
478 </Anchor>
479 </Anchors>
480 </Button>
481 <!--.............................................................. BAR HEIGHT ..............................................................-->
482 <!--...................................... bar texture ......................................-->
483 <EditBox name="distance_bar_height_texture_editbox" frameStrata="HIGH" level="ARTWORK">
484 <Size><AbsDimension x="140" y="20"/></Size>
485 <Backdrop bgFile="\\Interface\\AddOns\\Distance\\texture\\Background" edgeFile="\\Interface\\AddOns\\Distance\\texture\\Border">
486 <EdgeSize><AbsValue val="10"/></EdgeSize>
487 <BackgroundInsets><AbsInset left="3" right="2" top="2" bottom="2"/></BackgroundInsets>
488 </Backdrop>
489 <Anchors>
490 <Anchor point="TOPLEFT" relativeTo="distance_bar_height_texture">
491 <Offset><AbsDimension x="0" y="-20"/></Offset>
492 </Anchor>
493 </Anchors>
494 <FontString inherits="GameFontHighlightSmall"/>
495 <Scripts>
496 <OnEnterPressed>
497 distance_enter_bar_height_texture();
498 </OnEnterPressed>
499 </Scripts>
500 </EditBox>
501 <!--...................................... ok ......................................-->
502 <Button name="distance_bar_height_texture_ok" inherits="OptionsButtonTemplate" text="Ok">
503 <Size><AbsDimension x="25" y="25"/></Size>
504 <Anchors>
505 <Anchor point="RIGHT" relativeTo="distance_bar_height_texture_editbox">
506 <Offset><AbsDimension x="30" y="0"/></Offset>
507 </Anchor>
508 </Anchors>
509 <Scripts>
510 <OnClick>
511 distance_enter_bar_height_texture();
512 </OnClick>
513 </Scripts>
514 </Button>
515 <!--...................................... border default ......................................-->
516 <Button name="distance_bar_height_texture_default" inherits="OptionsButtonTemplate" text="Default">
517 <Size><AbsDimension x="60" y="25"/></Size>
518 <Anchors>
519 <Anchor point="RIGHT" relativeTo="distance_bar_height_texture_ok">
520 <Offset><AbsDimension x="65" y="0"/></Offset>
521 </Anchor>
522 </Anchors>
523 <Scripts>
524 <OnClick>
525 distance_default_bar_height_texture();
526 </OnClick>
527 </Scripts>
528 </Button>
529 <!--.............................................................. BAR WIDTH ..............................................................-->
530 <!--...................................... bar texture ......................................-->
531 <EditBox name="distance_bar_width_texture_editbox" frameStrata="HIGH" level="ARTWORK">
532 <Size><AbsDimension x="140" y="20"/></Size>
533 <Backdrop bgFile="\\Interface\\AddOns\\Distance\\texture\\Background" edgeFile="\\Interface\\AddOns\\Distance\\texture\\Border">
534 <EdgeSize><AbsValue val="10"/></EdgeSize>
535 <BackgroundInsets><AbsInset left="3" right="2" top="2" bottom="2"/></BackgroundInsets>
536 </Backdrop>
537 <Anchors>
538 <Anchor point="TOPLEFT" relativeTo="distance_bar_width_texture">
539 <Offset><AbsDimension x="0" y="-20"/></Offset>
540 </Anchor>
541 </Anchors>
542 <FontString inherits="GameFontHighlightSmall"/>
543 <Scripts>
544 <OnEnterPressed>
545 distance_enter_bar_width_texture();
546 </OnEnterPressed>
547 </Scripts>
548 </EditBox>
549 <!--...................................... ok ......................................-->
550 <Button name="distance_bar_width_texture_ok" inherits="OptionsButtonTemplate" text="Ok">
551 <Size><AbsDimension x="25" y="25"/></Size>
552 <Anchors>
553 <Anchor point="RIGHT" relativeTo="distance_bar_width_texture_editbox">
554 <Offset><AbsDimension x="30" y="0"/></Offset>
555 </Anchor>
556 </Anchors>
557 <Scripts>
558 <OnClick>
559 distance_enter_bar_width_texture();
560 </OnClick>
561 </Scripts>
562 </Button>
563 <!--...................................... border default ......................................-->
564 <Button name="distance_bar_width_texture_default" inherits="OptionsButtonTemplate" text="Default">
565 <Size><AbsDimension x="60" y="25"/></Size>
566 <Anchors>
567 <Anchor point="RIGHT" relativeTo="distance_bar_width_texture_ok">
568 <Offset><AbsDimension x="65" y="0"/></Offset>
569 </Anchor>
570 </Anchors>
571 <Scripts>
572 <OnClick>
573 distance_default_bar_width_texture();
574 </OnClick>
575 </Scripts>
576 </Button>
577 <!--.............................................................. TEXT ..............................................................-->
578 <!--...................................... text texture ......................................-->
579  
580 <!--.............................................................. COLOR FRAME ..............................................................-->
581 <!--...................................... color frame ......................................-->
582 <Frame name="distance_option_colors" parent="distance_option_right" frameStrata="HIGH" level="BACKGROUND">
583 <Size><AbsDimension x="240" y="125"/></Size>
584 <Backdrop bgFile="\\Interface\\AddOns\\Distance\\texture\\Background" edgeFile="\\Interface\\AddOns\\Distance\\texture\\Border">
585 <EdgeSize><AbsValue val="10"/></EdgeSize>
586 <BackgroundInsets><AbsInset left="3" right="2" top="2" bottom="2"/></BackgroundInsets>
587 </Backdrop>
588 <Anchors>
589 <Anchor point="BOTTOMRIGHT" relativeTo="distance_option_right">
590 <Offset><AbsDimension x="-5" y="5"/></Offset>
591 </Anchor>
592 </Anchors>
593 <!--...................................... tab1text ......................................-->
594 <Layers>
595 <Layer>
596 <FontString name="distance_options_color_tab1" inherits="GameFontNormal" text="Bar 1">
597 <Anchors>
598 <Anchor point="RIGHT" relativeTo="distance_option_colors">
599 <Offset><AbsDimension x="-245" y="50" /></Offset>
600 </Anchor>
601 </Anchors>
602 </FontString>
603 </Layer>
604 <Layer>
605 <FontString name="distance_options_color_tab2" inherits="GameFontNormal" text="Bar 2">
606 <Anchors>
607 <Anchor point="RIGHT" relativeTo="distance_option_colors">
608 <Offset><AbsDimension x="-245" y="25" /></Offset>
609 </Anchor>
610 </Anchors>
611 </FontString>
612 </Layer>
613 <Layer>
614 <FontString name="distance_options_color_tab3" inherits="GameFontNormal" text="Bar 3">
615 <Anchors>
616 <Anchor point="RIGHT" relativeTo="distance_option_colors">
617 <Offset><AbsDimension x="-245" y="0" /></Offset>
618 </Anchor>
619 </Anchors>
620 </FontString>
621 </Layer>
622 <Layer>
623 <FontString name="distance_options_color_tab4" inherits="GameFontNormal" text="Bar 4">
624 <Anchors>
625 <Anchor point="RIGHT" relativeTo="distance_option_colors">
626 <Offset><AbsDimension x="-245" y="-25" /></Offset>
627 </Anchor>
628 </Anchors>
629 </FontString>
630 </Layer>
631 <Layer>
632 <FontString name="distance_options_color_tab5" inherits="GameFontNormal" text="BGB">
633 <Anchors>
634 <Anchor point="RIGHT" relativeTo="distance_option_colors">
635 <Offset><AbsDimension x="-245" y="-50" /></Offset>
636 </Anchor>
637 </Anchors>
638 </FontString>
639 </Layer>
640 <!--...................................... red slider name ......................................-->
641 <Layer>
642 <FontString name="distance_red_slider_name" inherits="GameFontNormal" text="Red:">
643 <Anchors>
644 <Anchor point="TOPLEFT" relativeTo="distance_option_colors">
645 <Offset> <AbsDimension x="10" y="-10" /> </Offset>
646 </Anchor>
647 </Anchors>
648 </FontString>
649 </Layer>
650 <!--...................................... green slider name ......................................-->
651 <Layer>
652 <FontString name="distance_green_slider_name" inherits="GameFontNormal" text="Green:">
653 <Anchors>
654 <Anchor point="TOPLEFT" relativeTo="distance_red_slider_name">
655 <Offset> <AbsDimension x="0" y="-40" /> </Offset>
656 </Anchor>
657 </Anchors>
658 </FontString>
659 </Layer>
660 <!--...................................... blue slider name ......................................-->
661 <Layer>
662 <FontString name="distance_blue_slider_name" inherits="GameFontNormal" text="Blue:">
663 <Anchors>
664 <Anchor point="TOPLEFT" relativeTo="distance_green_slider_name">
665 <Offset> <AbsDimension x="0" y="-40" /> </Offset>
666 </Anchor>
667 </Anchors>
668 </FontString>
669 </Layer>
670  
671 </Layers>
672 </Frame>
673 <!--.............................................................. COLOR FRAME TABS ..............................................................-->
674 <!--...................................... TAB1 ......................................-->
675 <Button name="distance_options_color_bar1" virtual="true">
676 <Size><AbsDimension x="50" y="20"/></Size>
677 <Anchors>
678 <Anchor point="RIGHT" relativeTo="distance_option_colors">
679 <Offset><AbsDimension x="-240" y="50"/></Offset>
680 </Anchor>
681 </Anchors>
682 <Layers>
683 <Layer>
684 <Texture name="distance_color_bar1">
685 </Texture>
686 </Layer>
687 </Layers>
688 <Scripts>
689 <OnClick>
690 distance_options_color_bar1_OnClick();
691 </OnClick>
692 </Scripts>
693 </Button>
694  
695 <!--...................................... TAB2 ......................................-->
696 <Button name="distance_options_color_bar2" virtual="true">
697 <Size><AbsDimension x="50" y="20"/></Size>
698 <Anchors>
699 <Anchor point="RIGHT" relativeTo="distance_option_colors">
700 <Offset><AbsDimension x="-240" y="25"/></Offset>
701 </Anchor>
702 </Anchors>
703 <Layers>
704 <Layer>
705 <Texture name="distance_color_bar2">
706 </Texture>
707 </Layer>
708 </Layers>
709 <Scripts>
710 <OnClick>
711 distance_options_color_bar2_OnClick();
712 </OnClick>
713 </Scripts>
714 </Button>
715 <!--...................................... TAB3 ......................................-->
716 <Button name="distance_options_color_bar3" virtual="true">
717 <Size><AbsDimension x="50" y="20"/></Size>
718 <Anchors>
719 <Anchor point="RIGHT" relativeTo="distance_option_colors">
720 <Offset><AbsDimension x="-240" y="0"/></Offset>
721 </Anchor>
722 </Anchors>
723 <Layers>
724 <Layer>
725 <Texture name="distance_color_bar3">
726 </Texture>
727 </Layer>
728 </Layers>
729 <Scripts>
730 <OnClick>
731 distance_options_color_bar3_OnClick();
732 </OnClick>
733 </Scripts>
734 </Button>
735 <!--...................................... TAB4 ......................................-->
736 <Button name="distance_options_color_bar4" virtual="true">
737 <Size><AbsDimension x="50" y="20"/></Size>
738 <Anchors>
739 <Anchor point="RIGHT" relativeTo="distance_option_colors">
740 <Offset><AbsDimension x="-240" y="-25"/></Offset>
741 </Anchor>
742 </Anchors>
743 <Layers>
744 <Layer>
745 <Texture name="distance_color_bar4">
746 </Texture>
747 </Layer>
748 </Layers>
749 <Scripts>
750 <OnClick>
751 distance_options_color_bar4_OnClick();
752 </OnClick>
753 </Scripts>
754 </Button>
755 <!--...................................... TAB5 ......................................-->
756 <Button name="distance_options_color_bar5" virtual="true">
757 <Size><AbsDimension x="50" y="20"/></Size>
758 <Backdrop bgFile="\\Interface\\AddOns\\Distance\\texture\\Background" edgeFile="\\Interface\\AddOns\\Distance\\texture\\Border">
759 <EdgeSize><AbsValue val="10"/></EdgeSize>
760 <BackgroundInsets><AbsInset left="3" right="2" top="2" bottom="2"/></BackgroundInsets>
761 </Backdrop>
762 <Anchors>
763 <Anchor point="RIGHT" relativeTo="distance_option_colors">
764 <Offset><AbsDimension x="-240" y="-50"/></Offset>
765 </Anchor>
766 </Anchors>
767 <Scripts>
768 <OnClick>
769 distance_options_color_bar5_OnClick();
770 </OnClick>
771 </Scripts>
772 </Button>
773 <!--.............................................................. COLOR SLIDERS ..............................................................-->
774 <!--...................................... RED ......................................-->
775 <Slider name="distance_options_slider_red" parent="distance_option_colors" inherits="OptionsSliderTemplate">
776 <Size><AbsDimension x="120" y="15"/></Size>
777 <Anchors>
778 <Anchor point="LEFT" relativeTo="distance_red_slider_name">
779 <Offset><AbsDimension x="50" y="0"/></Offset>
780 </Anchor>
781 </Anchors>
782 <Scripts>
783 <OnValueChanged>
784 distance_slider_red();
785 </OnValueChanged>
786 </Scripts>
787 </Slider>
788 <!--...................................... EDIT BOX RED ......................................-->
789 <EditBox name="distance_options_editbox_red" parent="distance_option_colors" frameStrata="HIGH" level="ARTWORK">
790 <Size><AbsDimension x="50" y="20"/></Size>
791 <Backdrop bgFile="\\Interface\\AddOns\\Distance\\texture\\Background" edgeFile="\\Interface\\AddOns\\Distance\\texture\\Border">
792 <EdgeSize><AbsValue val="10"/></EdgeSize>
793 <BackgroundInsets><AbsInset left="3" right="2" top="2" bottom="2"/></BackgroundInsets>
794 </Backdrop>
795 <Anchors>
796 <Anchor point="TOPRIGHT" relativeTo="distance_options_slider_red">
797 <Offset><AbsDimension x="55" y="0"/></Offset>
798 </Anchor>
799 </Anchors>
800 <FontString inherits="GameFontHighlightSmall"/>
801 <Scripts>
802 <OnEnterPressed>
803  
804 </OnEnterPressed>
805 <OnLoad>
806 this:SetAutoFocus(false);
807 </OnLoad>
808 </Scripts>
809 </EditBox>
810 <!--...................................... GREEN ......................................-->
811 <Slider name="distance_options_slider_green" parent="distance_option_colors" inherits="OptionsSliderTemplate">
812 <Size><AbsDimension x="120" y="15"/></Size>
813 <Anchors>
814 <Anchor point="LEFT" relativeTo="distance_green_slider_name">
815 <Offset><AbsDimension x="50" y="0"/></Offset>
816 </Anchor>
817 </Anchors>
818 <Scripts>
819 <OnValueChanged>
820 distance_slider_green();
821 </OnValueChanged>
822 </Scripts>
823 </Slider>
824 <!--...................................... EDIT BOX RED ......................................-->
825 <EditBox name="distance_options_editbox_green" parent="distance_option_colors" frameStrata="HIGH" level="ARTWORK">
826 <Size><AbsDimension x="50" y="20"/></Size>
827 <Backdrop bgFile="\\Interface\\AddOns\\Distance\\texture\\Background" edgeFile="\\Interface\\AddOns\\Distance\\texture\\Border">
828 <EdgeSize><AbsValue val="10"/></EdgeSize>
829 <BackgroundInsets><AbsInset left="3" right="2" top="2" bottom="2"/></BackgroundInsets>
830 </Backdrop>
831 <Anchors>
832 <Anchor point="TOPRIGHT" relativeTo="distance_options_slider_green">
833 <Offset><AbsDimension x="55" y="0"/></Offset>
834 </Anchor>
835 </Anchors>
836 <FontString inherits="GameFontHighlightSmall"/>
837 <Scripts>
838 <OnEnterPressed>
839  
840 </OnEnterPressed>
841 <OnLoad>
842 this:SetAutoFocus(false);
843 </OnLoad>
844 </Scripts>
845 </EditBox>
846 <!--...................................... BLUE ......................................-->
847 <Slider name="distance_options_slider_blue" parent="distance_option_colors" inherits="OptionsSliderTemplate">
848 <Size><AbsDimension x="120" y="15"/></Size>
849 <Anchors>
850 <Anchor point="LEFT" relativeTo="distance_blue_slider_name">
851 <Offset><AbsDimension x="50" y="0"/></Offset>
852 </Anchor>
853 </Anchors>
854 <Scripts>
855 <OnValueChanged>
856 distance_slider_blue();
857 </OnValueChanged>
858 </Scripts>
859 </Slider>
860 <!--...................................... EDIT BOX RED ......................................-->
861 <EditBox name="distance_options_editbox_blue" parent="distance_option_colors" frameStrata="HIGH" level="ARTWORK">
862 <Size><AbsDimension x="50" y="20"/></Size>
863 <Backdrop bgFile="\\Interface\\AddOns\\Distance\\texture\\Background" edgeFile="\\Interface\\AddOns\\Distance\\texture\\Border">
864 <EdgeSize><AbsValue val="10"/></EdgeSize>
865 <BackgroundInsets><AbsInset left="3" right="2" top="2" bottom="2"/></BackgroundInsets>
866 </Backdrop>
867 <Anchors>
868 <Anchor point="TOPRIGHT" relativeTo="distance_options_slider_blue">
869 <Offset><AbsDimension x="55" y="0"/></Offset>
870 </Anchor>
871 </Anchors>
872 <FontString inherits="GameFontHighlightSmall"/>
873 <Scripts>
874 <OnEnterPressed>
875  
876 </OnEnterPressed>
877 <OnLoad>
878 this:SetAutoFocus(false);
879 </OnLoad>
880 </Scripts>
881 </EditBox>
882 </Frames>
883 <!--.............................................................. SCRIPT ..............................................................-->
884 <!--...................................... HANDLERS ......................................-->
885 <Scripts>
886 <OnLoad>
887 distance_textures_OnLoad();
888 distance_options_editbox_red:SetText("red");
889 distance_options_editbox_green:SetText("green");
890 distance_options_editbox_blue:SetText("blue");
891  
892 </OnLoad>
893  
894 <OnEnter>
895 distance_options_color_bar1:SetHighlightTexture(distance_bar_texture_w);
896 distance_options_color_bar2:SetHighlightTexture(distance_bar_texture_w);
897 distance_options_color_bar3:SetHighlightTexture(distance_bar_texture_w);
898 distance_options_color_bar4:SetHighlightTexture(distance_bar_texture_w);
899 distance_options_color_bar5:SetHighlightTexture(distance_bar_texture_w);
900 </OnEnter>
901  
902 <OnEvent>
903 distance_Load_OnEvent();
904 </OnEvent>
905 <!--...................................... DRAGABLE ......................................-->
906 <OnMouseUp>
907 distance_options_OnMouseUp();
908 </OnMouseUp>
909  
910 <OnMouseDown>
911 distance_options_OnMouseDown();
912 </OnMouseDown>
913  
914 </Scripts>
915  
916 </Frame>
917  
918 </Ui>
919