vanilla-wow-addons – Blame information for rev 1
?pathlinks?
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" |
2 | xsi:schemaLocation="http://www.blizzard.com/wow/ui/"> |
||
3 | <Script file="RangeColorOptions.lua" /> |
||
4 | <Slider name="RangeColorSliderTemplate" inherits="OptionsSliderTemplate" virtual="true"> |
||
5 | <Scripts> |
||
6 | <OnEnter> |
||
7 | if ( this.tooltipText ) then |
||
8 | GameTooltip:SetOwner(this, "ANCHOR_LEFT"); |
||
9 | GameTooltip:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b, alpha); |
||
10 | GameTooltip:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b, alpha); |
||
11 | GameTooltip:SetText(this.tooltipText, 1.0, 1.0, 1.0); |
||
12 | end |
||
13 | </OnEnter> |
||
14 | <OnValueChanged> |
||
15 | PlaySound("igMainMenuOptionCheckBoxOn"); |
||
16 | RangeColorOptions_SliderOnValueChanged(); |
||
17 | </OnValueChanged> |
||
18 | <OnLeave> |
||
19 | GameTooltip:Hide(); |
||
20 | </OnLeave> |
||
21 | </Scripts> |
||
22 | </Slider> |
||
23 | <CheckButton name="RangeColorCheckTemplate" inherits="UICheckButtonTemplate" virtual="true"> |
||
24 | <HitRectInsets> |
||
25 | <AbsInset left="0" right="-50" top="0" bottom="0" /> |
||
26 | </HitRectInsets> |
||
27 | <Scripts> |
||
28 | <OnClick> |
||
29 | if ( this:GetChecked() ) then |
||
30 | PlaySound("igMainMenuOptionCheckBoxOff"); |
||
31 | else |
||
32 | PlaySound("igMainMenuOptionCheckBoxOn"); |
||
33 | end |
||
34 | RangeColorOptions_CheckButtonOnClick(); |
||
35 | </OnClick> |
||
36 | <OnEnter> |
||
37 | if ( this.tooltipText ) then |
||
38 | GameTooltip:SetOwner(this, "ANCHOR_LEFT"); |
||
39 | GameTooltip:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b, alpha); |
||
40 | GameTooltip:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b, alpha); |
||
41 | GameTooltip:SetText(this.tooltipText, 1.0, 1.0, 1.0); |
||
42 | end |
||
43 | </OnEnter> |
||
44 | <OnLeave> |
||
45 | GameTooltip:Hide(); |
||
46 | </OnLeave> |
||
47 | </Scripts> |
||
48 | </CheckButton> |
||
49 | <Frame name="RangeColorSwatchTemplate" virtual="true"> |
||
50 | <Size> |
||
51 | <AbsDimension x="40" y="40" /> |
||
52 | </Size> |
||
53 | <Frames> |
||
54 | <Button name="$parent_ColorSwatch"> |
||
55 | <Size> |
||
56 | <AbsDimension x="16" y="16" /> |
||
57 | </Size> |
||
58 | <Anchors> |
||
59 | <Anchor point="LEFT"> |
||
60 | <Offset> |
||
61 | <AbsDimension x="10" y="10" /> |
||
62 | </Offset> |
||
63 | </Anchor> |
||
64 | </Anchors> |
||
65 | <Layers> |
||
66 | <Layer level="BACKGROUND"> |
||
67 | <Texture name="$parent_SwatchBg"> |
||
68 | <Size> |
||
69 | <AbsDimension x="14" y="14" /> |
||
70 | </Size> |
||
71 | <Anchors> |
||
72 | <Anchor point="CENTER"> |
||
73 | <Offset> |
||
74 | <AbsDimension x="0" y="0" /> |
||
75 | </Offset> |
||
76 | </Anchor> |
||
77 | </Anchors> |
||
78 | <Color r="1.0" g="1.0" b="1.0" /> |
||
79 | </Texture> |
||
80 | <FontString name="$parentText" inherits="GameFontNormal"> |
||
81 | <Anchors> |
||
82 | <Anchor point="TOP" relativePoint="BOTTOM"> |
||
83 | <Offset> |
||
84 | <AbsDimension x="0" y="-3" /> |
||
85 | </Offset> |
||
86 | </Anchor> |
||
87 | </Anchors> |
||
88 | </FontString> |
||
89 | </Layer> |
||
90 | </Layers> |
||
91 | <Scripts> |
||
92 | <OnClick> |
||
93 | RangeColorOptions_OpenColorPicker(this:GetParent()); |
||
94 | </OnClick> |
||
95 | <OnEnter> |
||
96 | getglobal(this:GetName().."_SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b); |
||
97 | </OnEnter> |
||
98 | <OnLeave> |
||
99 | getglobal(this:GetName().."_SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b); |
||
100 | </OnLeave> |
||
101 | </Scripts> |
||
102 | <NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch" /> |
||
103 | </Button> |
||
104 | </Frames> |
||
105 | <Scripts> |
||
106 | <OnEnter> |
||
107 | if ( this.tooltipText ) then |
||
108 | GameTooltip:SetOwner(this, "ANCHOR_LEFT"); |
||
109 | GameTooltip:SetBackdropColor(0.0, 0.0, 0.0); |
||
110 | GameTooltip:SetText(this.tooltipText, 1.0, 1.0, 1.0); |
||
111 | end |
||
112 | </OnEnter> |
||
113 | <OnLeave> |
||
114 | GameTooltip:Hide(); |
||
115 | </OnLeave> |
||
116 | </Scripts> |
||
117 | </Frame> |
||
118 | <Frame name="RangeColorOptionsFrame" toplevel="true" frameStrata="MEDIUM" movable="true" |
||
119 | enableMouse="true" hidden="true" parent="UIParent"> |
||
120 | <Size> |
||
121 | <AbsDimension x="460" y="340" /> |
||
122 | </Size> |
||
123 | <Anchors> |
||
124 | <Anchor point="CENTER" /> |
||
125 | </Anchors> |
||
126 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" |
||
127 | tile="true"> |
||
128 | <BackgroundInsets> |
||
129 | <AbsInset left="11" right="12" top="12" bottom="11" /> |
||
130 | <Size> |
||
131 | <AbsDimension x="128" y="17" /> |
||
132 | </Size> |
||
133 | </BackgroundInsets> |
||
134 | <TileSize> |
||
135 | <AbsValue val="32" /> |
||
136 | </TileSize> |
||
137 | <EdgeSize> |
||
138 | <AbsValue val="32" /> |
||
139 | </EdgeSize> |
||
140 | </Backdrop> |
||
141 | <Layers> |
||
142 | <Layer level="ARTWORK"> |
||
143 | <Texture name="RangeColorTitle" file="Interface\DialogFrame\UI-DialogBox-Header"> |
||
144 | <Size> |
||
145 | <AbsDimension x="290" y="64" /> |
||
146 | </Size> |
||
147 | <Anchors> |
||
148 | <Anchor point="TOP"> |
||
149 | <Offset> |
||
150 | <AbsDimension x="0" y="12" /> |
||
151 | </Offset> |
||
152 | </Anchor> |
||
153 | </Anchors> |
||
154 | </Texture> |
||
155 | <FontString inherits="GameFontNormal" text="Range Color Options"> |
||
156 | <Anchors> |
||
157 | <Anchor point="TOP" relativeTo="RangeColorOptionsFrame"> |
||
158 | <Offset> |
||
159 | <AbsDimension x="0" y="-3" /> |
||
160 | </Offset> |
||
161 | </Anchor> |
||
162 | </Anchors> |
||
163 | </FontString> |
||
164 | </Layer> |
||
165 | </Layers> |
||
166 | <Frames> |
||
167 | <Frame name="RangeColorOptionsFrame_OutOfRangeFrame" inherits="OptionFrameBoxTemplate"> |
||
168 | <Size> |
||
169 | <AbsDimension x="200" y="80" /> |
||
170 | </Size> |
||
171 | <Anchors> |
||
172 | <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="RangeColorOptionsFrame"> |
||
173 | <Offset> |
||
174 | <AbsDimension x="20" y="-30" /> |
||
175 | </Offset> |
||
176 | </Anchor> |
||
177 | </Anchors> |
||
178 | <Scripts> |
||
179 | <OnLoad> |
||
180 | this:SetBackdropBorderColor(0.4, 0.4, 0.4); |
||
181 | this:SetBackdropColor(0.15, 0.15, 0.15); |
||
182 | </OnLoad> |
||
183 | </Scripts> |
||
184 | <Frames> |
||
185 | <Frame name="RangeColorOptionsFrame_OutOfRangeFrameTitle"> |
||
186 | <Size> |
||
187 | <AbsDimension x="140" y="20" /> |
||
188 | </Size> |
||
189 | <Anchors> |
||
190 | <Anchor point="TOP"> |
||
191 | <Offset> |
||
192 | <AbsDimension x="0" y="-10" /> |
||
193 | </Offset> |
||
194 | </Anchor> |
||
195 | </Anchors> |
||
196 | <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" |
||
197 | tile="true"> |
||
198 | <EdgeSize> |
||
199 | <AbsValue val="8" /> |
||
200 | </EdgeSize> |
||
201 | <TileSize> |
||
202 | <AbsValue val="8" /> |
||
203 | </TileSize> |
||
204 | <BackgroundInsets> |
||
205 | <AbsInset left="2" right="2" top="2" bottom="2" /> |
||
206 | </BackgroundInsets> |
||
207 | </Backdrop> |
||
208 | <Layers> |
||
209 | <Layer> |
||
210 | <FontString inherits="GameFontHighlight" text="Out of Range"> |
||
211 | <Anchors> |
||
212 | <Anchor point="CENTER"> |
||
213 | <Offset> |
||
214 | <AbsDimension x="0" y="0" /> |
||
215 | </Offset> |
||
216 | </Anchor> |
||
217 | </Anchors> |
||
218 | </FontString> |
||
219 | </Layer> |
||
220 | </Layers> |
||
221 | <Scripts> |
||
222 | <OnLoad> |
||
223 | this:SetBackdropBorderColor(0.4, 0.4, 0.4); |
||
224 | this:SetBackdropColor(0.15, 0.15, 0.15); |
||
225 | </OnLoad> |
||
226 | </Scripts> |
||
227 | </Frame> |
||
228 | <Frame name="RangeColorSwatchFrame1" inherits="RangeColorSwatchTemplate"> |
||
229 | <Anchors> |
||
230 | <Anchor point="TOP" relativeTo="RangeColorOptionsFrame_OutOfRangeFrame"> |
||
231 | <Offset> |
||
232 | <AbsDimension x="-60" y="-35" /> |
||
233 | </Offset> |
||
234 | </Anchor> |
||
235 | </Anchors> |
||
236 | </Frame> |
||
237 | <Frame name="RangeColorSwatchFrame2" inherits="RangeColorSwatchTemplate"> |
||
238 | <Anchors> |
||
239 | <Anchor point="LEFT" relativeTo="RangeColorSwatchFrame1" relativePoint="LEFT"> |
||
240 | <Offset> |
||
241 | <AbsDimension x="60" y="0" /> |
||
242 | </Offset> |
||
243 | </Anchor> |
||
244 | </Anchors> |
||
245 | </Frame> |
||
246 | <Frame name="RangeColorSwatchFrame3" inherits="RangeColorSwatchTemplate"> |
||
247 | <Anchors> |
||
248 | <Anchor point="LEFT" relativeTo="RangeColorSwatchFrame2" relativePoint="LEFT"> |
||
249 | <Offset> |
||
250 | <AbsDimension x="60" y="0" /> |
||
251 | </Offset> |
||
252 | </Anchor> |
||
253 | </Anchors> |
||
254 | </Frame> |
||
255 | </Frames> |
||
256 | </Frame> |
||
257 | <Frame name="RangeColorOptionsFrame_NotEnoughManaFrame" inherits="OptionFrameBoxTemplate"> |
||
258 | <Size> |
||
259 | <AbsDimension x="200" y="80" /> |
||
260 | </Size> |
||
261 | <Anchors> |
||
262 | <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="RangeColorOptionsFrame_OutOfRangeFrame"> |
||
263 | <Offset> |
||
264 | <AbsDimension x="20" y="0" /> |
||
265 | </Offset> |
||
266 | </Anchor> |
||
267 | </Anchors> |
||
268 | <Scripts> |
||
269 | <OnLoad> |
||
270 | this:SetBackdropBorderColor(0.4, 0.4, 0.4); |
||
271 | this:SetBackdropColor(0.15, 0.15, 0.15); |
||
272 | </OnLoad> |
||
273 | </Scripts> |
||
274 | <Frames> |
||
275 | <Frame name="RangeColorOptionsFrame_NotEnoughManaFrameTitle"> |
||
276 | <Size> |
||
277 | <AbsDimension x="140" y="20" /> |
||
278 | </Size> |
||
279 | <Anchors> |
||
280 | <Anchor point="TOP"> |
||
281 | <Offset> |
||
282 | <AbsDimension x="0" y="-10" /> |
||
283 | </Offset> |
||
284 | </Anchor> |
||
285 | </Anchors> |
||
286 | <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" |
||
287 | tile="true"> |
||
288 | <EdgeSize> |
||
289 | <AbsValue val="8" /> |
||
290 | </EdgeSize> |
||
291 | <TileSize> |
||
292 | <AbsValue val="8" /> |
||
293 | </TileSize> |
||
294 | <BackgroundInsets> |
||
295 | <AbsInset left="2" right="2" top="2" bottom="2" /> |
||
296 | </BackgroundInsets> |
||
297 | </Backdrop> |
||
298 | <Layers> |
||
299 | <Layer> |
||
300 | <FontString inherits="GameFontHighlight" text="Not enough Mana"> |
||
301 | <Anchors> |
||
302 | <Anchor point="CENTER"> |
||
303 | <Offset> |
||
304 | <AbsDimension x="0" y="0" /> |
||
305 | </Offset> |
||
306 | </Anchor> |
||
307 | </Anchors> |
||
308 | </FontString> |
||
309 | </Layer> |
||
310 | </Layers> |
||
311 | <Scripts> |
||
312 | <OnLoad> |
||
313 | this:SetBackdropBorderColor(0.4, 0.4, 0.4); |
||
314 | this:SetBackdropColor(0.15, 0.15, 0.15); |
||
315 | </OnLoad> |
||
316 | </Scripts> |
||
317 | </Frame> |
||
318 | <Frame name="RangeColorSwatchFrame4" inherits="RangeColorSwatchTemplate"> |
||
319 | <Anchors> |
||
320 | <Anchor point="TOP" relativeTo="RangeColorOptionsFrame_NotEnoughManaFrame"> |
||
321 | <Offset> |
||
322 | <AbsDimension x="-60" y="-35" /> |
||
323 | </Offset> |
||
324 | </Anchor> |
||
325 | </Anchors> |
||
326 | </Frame> |
||
327 | <Frame name="RangeColorSwatchFrame5" inherits="RangeColorSwatchTemplate"> |
||
328 | <Anchors> |
||
329 | <Anchor point="LEFT" relativeTo="RangeColorSwatchFrame4" relativePoint="LEFT"> |
||
330 | <Offset> |
||
331 | <AbsDimension x="60" y="0" /> |
||
332 | </Offset> |
||
333 | </Anchor> |
||
334 | </Anchors> |
||
335 | </Frame> |
||
336 | <Frame name="RangeColorSwatchFrame6" inherits="RangeColorSwatchTemplate"> |
||
337 | <Anchors> |
||
338 | <Anchor point="LEFT" relativeTo="RangeColorSwatchFrame5" relativePoint="LEFT"> |
||
339 | <Offset> |
||
340 | <AbsDimension x="60" y="0" /> |
||
341 | </Offset> |
||
342 | </Anchor> |
||
343 | </Anchors> |
||
344 | </Frame> |
||
345 | </Frames> |
||
346 | </Frame> |
||
347 | <Frame name="RangeColorOptionsFrame_NotUsableFrame" inherits="OptionFrameBoxTemplate"> |
||
348 | <Size> |
||
349 | <AbsDimension x="200" y="80" /> |
||
350 | </Size> |
||
351 | <Anchors> |
||
352 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="RangeColorOptionsFrame_OutOfRangeFrame"> |
||
353 | <Offset> |
||
354 | <AbsDimension x="0" y="-10" /> |
||
355 | </Offset> |
||
356 | </Anchor> |
||
357 | </Anchors> |
||
358 | <Scripts> |
||
359 | <OnLoad> |
||
360 | this:SetBackdropBorderColor(0.4, 0.4, 0.4); |
||
361 | this:SetBackdropColor(0.15, 0.15, 0.15); |
||
362 | </OnLoad> |
||
363 | </Scripts> |
||
364 | <Frames> |
||
365 | <Frame name="RangeColorOptionsFrame_NotUsableFrameTitle"> |
||
366 | <Size> |
||
367 | <AbsDimension x="140" y="20" /> |
||
368 | </Size> |
||
369 | <Anchors> |
||
370 | <Anchor point="TOP"> |
||
371 | <Offset> |
||
372 | <AbsDimension x="0" y="-10" /> |
||
373 | </Offset> |
||
374 | </Anchor> |
||
375 | </Anchors> |
||
376 | <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" |
||
377 | tile="true"> |
||
378 | <EdgeSize> |
||
379 | <AbsValue val="8" /> |
||
380 | </EdgeSize> |
||
381 | <TileSize> |
||
382 | <AbsValue val="8" /> |
||
383 | </TileSize> |
||
384 | <BackgroundInsets> |
||
385 | <AbsInset left="2" right="2" top="2" bottom="2" /> |
||
386 | </BackgroundInsets> |
||
387 | </Backdrop> |
||
388 | <Layers> |
||
389 | <Layer> |
||
390 | <FontString inherits="GameFontHighlight" text="Not Usable"> |
||
391 | <Anchors> |
||
392 | <Anchor point="CENTER"> |
||
393 | <Offset> |
||
394 | <AbsDimension x="0" y="0" /> |
||
395 | </Offset> |
||
396 | </Anchor> |
||
397 | </Anchors> |
||
398 | </FontString> |
||
399 | </Layer> |
||
400 | </Layers> |
||
401 | <Scripts> |
||
402 | <OnLoad> |
||
403 | this:SetBackdropBorderColor(0.4, 0.4, 0.4); |
||
404 | this:SetBackdropColor(0.15, 0.15, 0.15); |
||
405 | </OnLoad> |
||
406 | </Scripts> |
||
407 | </Frame> |
||
408 | <Frame name="RangeColorSwatchFrame7" inherits="RangeColorSwatchTemplate"> |
||
409 | <Anchors> |
||
410 | <Anchor point="TOP" relativeTo="RangeColorOptionsFrame_NotUsableFrame"> |
||
411 | <Offset> |
||
412 | <AbsDimension x="-60" y="-35" /> |
||
413 | </Offset> |
||
414 | </Anchor> |
||
415 | </Anchors> |
||
416 | </Frame> |
||
417 | <Frame name="RangeColorSwatchFrame8" inherits="RangeColorSwatchTemplate"> |
||
418 | <Anchors> |
||
419 | <Anchor point="LEFT" relativeTo="RangeColorSwatchFrame7" relativePoint="LEFT"> |
||
420 | <Offset> |
||
421 | <AbsDimension x="60" y="0" /> |
||
422 | </Offset> |
||
423 | </Anchor> |
||
424 | </Anchors> |
||
425 | </Frame> |
||
426 | <Frame name="RangeColorSwatchFrame9" inherits="RangeColorSwatchTemplate"> |
||
427 | <Anchors> |
||
428 | <Anchor point="LEFT" relativeTo="RangeColorSwatchFrame8" relativePoint="LEFT"> |
||
429 | <Offset> |
||
430 | <AbsDimension x="60" y="0" /> |
||
431 | </Offset> |
||
432 | </Anchor> |
||
433 | </Anchors> |
||
434 | </Frame> |
||
435 | </Frames> |
||
436 | </Frame> |
||
437 | <Frame name="RangeColorOptionsFrame_UsableFrame" inherits="OptionFrameBoxTemplate"> |
||
438 | <Size> |
||
439 | <AbsDimension x="200" y="80" /> |
||
440 | </Size> |
||
441 | <Anchors> |
||
442 | <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="RangeColorOptionsFrame_NotUsableFrame"> |
||
443 | <Offset> |
||
444 | <AbsDimension x="20" y="0" /> |
||
445 | </Offset> |
||
446 | </Anchor> |
||
447 | </Anchors> |
||
448 | <Scripts> |
||
449 | <OnLoad> |
||
450 | this:SetBackdropBorderColor(0.4, 0.4, 0.4); |
||
451 | this:SetBackdropColor(0.15, 0.15, 0.15); |
||
452 | </OnLoad> |
||
453 | </Scripts> |
||
454 | <Frames> |
||
455 | <Frame name="RangeColorOptionsFrame_UsableFrameTitle"> |
||
456 | <Size> |
||
457 | <AbsDimension x="140" y="20" /> |
||
458 | </Size> |
||
459 | <Anchors> |
||
460 | <Anchor point="TOP"> |
||
461 | <Offset> |
||
462 | <AbsDimension x="0" y="-10" /> |
||
463 | </Offset> |
||
464 | </Anchor> |
||
465 | </Anchors> |
||
466 | <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" |
||
467 | tile="true"> |
||
468 | <EdgeSize> |
||
469 | <AbsValue val="8" /> |
||
470 | </EdgeSize> |
||
471 | <TileSize> |
||
472 | <AbsValue val="8" /> |
||
473 | </TileSize> |
||
474 | <BackgroundInsets> |
||
475 | <AbsInset left="2" right="2" top="2" bottom="2" /> |
||
476 | </BackgroundInsets> |
||
477 | </Backdrop> |
||
478 | <Layers> |
||
479 | <Layer> |
||
480 | <FontString inherits="GameFontHighlight" text="Usable"> |
||
481 | <Anchors> |
||
482 | <Anchor point="CENTER"> |
||
483 | <Offset> |
||
484 | <AbsDimension x="0" y="0" /> |
||
485 | </Offset> |
||
486 | </Anchor> |
||
487 | </Anchors> |
||
488 | </FontString> |
||
489 | </Layer> |
||
490 | </Layers> |
||
491 | <Scripts> |
||
492 | <OnLoad> |
||
493 | this:SetBackdropBorderColor(0.4, 0.4, 0.4); |
||
494 | this:SetBackdropColor(0.15, 0.15, 0.15); |
||
495 | </OnLoad> |
||
496 | </Scripts> |
||
497 | </Frame> |
||
498 | <Frame name="RangeColorSwatchFrame10" inherits="RangeColorSwatchTemplate"> |
||
499 | <Anchors> |
||
500 | <Anchor point="TOP" relativeTo="RangeColorOptionsFrame_UsableFrame"> |
||
501 | <Offset> |
||
502 | <AbsDimension x="-60" y="-35" /> |
||
503 | </Offset> |
||
504 | </Anchor> |
||
505 | </Anchors> |
||
506 | </Frame> |
||
507 | <Frame name="RangeColorSwatchFrame11" inherits="RangeColorSwatchTemplate"> |
||
508 | <Anchors> |
||
509 | <Anchor point="LEFT" relativeTo="RangeColorSwatchFrame10" relativePoint="LEFT"> |
||
510 | <Offset> |
||
511 | <AbsDimension x="60" y="0" /> |
||
512 | </Offset> |
||
513 | </Anchor> |
||
514 | </Anchors> |
||
515 | </Frame> |
||
516 | <Frame name="RangeColorSwatchFrame12" inherits="RangeColorSwatchTemplate"> |
||
517 | <Anchors> |
||
518 | <Anchor point="LEFT" relativeTo="RangeColorSwatchFrame11" relativePoint="LEFT"> |
||
519 | <Offset> |
||
520 | <AbsDimension x="60" y="0" /> |
||
521 | </Offset> |
||
522 | </Anchor> |
||
523 | </Anchors> |
||
524 | </Frame> |
||
525 | </Frames> |
||
526 | </Frame> |
||
527 | <Frame name="RangeColorOptionsFrame_GeneralFrame" inherits="OptionFrameBoxTemplate"> |
||
528 | <Size> |
||
529 | <AbsDimension x="420" y="80" /> |
||
530 | </Size> |
||
531 | <Anchors> |
||
532 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="RangeColorOptionsFrame_NotUsableFrame"> |
||
533 | <Offset> |
||
534 | <AbsDimension x="0" y="-10" /> |
||
535 | </Offset> |
||
536 | </Anchor> |
||
537 | </Anchors> |
||
538 | <Scripts> |
||
539 | <OnLoad> |
||
540 | this:SetBackdropBorderColor(0.4, 0.4, 0.4); |
||
541 | this:SetBackdropColor(0.15, 0.15, 0.15); |
||
542 | </OnLoad> |
||
543 | </Scripts> |
||
544 | <Frames> |
||
545 | <Frame name="RangeColorOptionsFrame_GeneralFrameTitle"> |
||
546 | <Size> |
||
547 | <AbsDimension x="140" y="20" /> |
||
548 | </Size> |
||
549 | <Anchors> |
||
550 | <Anchor point="TOP"> |
||
551 | <Offset> |
||
552 | <AbsDimension x="0" y="-10" /> |
||
553 | </Offset> |
||
554 | </Anchor> |
||
555 | </Anchors> |
||
556 | <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" |
||
557 | tile="true"> |
||
558 | <EdgeSize> |
||
559 | <AbsValue val="8" /> |
||
560 | </EdgeSize> |
||
561 | <TileSize> |
||
562 | <AbsValue val="8" /> |
||
563 | </TileSize> |
||
564 | <BackgroundInsets> |
||
565 | <AbsInset left="2" right="2" top="2" bottom="2" /> |
||
566 | </BackgroundInsets> |
||
567 | </Backdrop> |
||
568 | <Layers> |
||
569 | <Layer> |
||
570 | <FontString inherits="GameFontHighlight" text="General"> |
||
571 | <Anchors> |
||
572 | <Anchor point="CENTER"> |
||
573 | <Offset> |
||
574 | <AbsDimension x="0" y="0" /> |
||
575 | </Offset> |
||
576 | </Anchor> |
||
577 | </Anchors> |
||
578 | </FontString> |
||
579 | </Layer> |
||
580 | </Layers> |
||
581 | <Scripts> |
||
582 | <OnLoad> |
||
583 | this:SetBackdropBorderColor(0.4, 0.4, 0.4); |
||
584 | this:SetBackdropColor(0.15, 0.15, 0.15); |
||
585 | </OnLoad> |
||
586 | </Scripts> |
||
587 | </Frame> |
||
588 | |||
589 | <Slider name="RangeColorOptionsFrame_Slider1" inherits="RangeColorSliderTemplate"> |
||
590 | <Anchors> |
||
591 | <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="RangeColorOptionsFrame_GeneralFrame"> |
||
592 | <Offset> |
||
593 | <AbsDimension x="30" y="-40" /> |
||
594 | </Offset> |
||
595 | </Anchor> |
||
596 | </Anchors> |
||
597 | </Slider> |
||
598 | <CheckButton name="RangeColorOptionsFrame_CheckButton1" inherits="RangeColorCheckTemplate"> |
||
599 | <Anchors> |
||
600 | <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="RangeColorOptionsFrame_GeneralFrame"> |
||
601 | <Offset> |
||
602 | <AbsDimension x="200" y="-35" /> |
||
603 | </Offset> |
||
604 | </Anchor> |
||
605 | </Anchors> |
||
606 | </CheckButton> |
||
607 | <CheckButton name="RangeColorOptionsFrame_CheckButton2" inherits="RangeColorCheckTemplate"> |
||
608 | <Anchors> |
||
609 | <Anchor point="LEFT" relativePoint="LEFT" relativeTo="RangeColorOptionsFrame_CheckButton1"> |
||
610 | <Offset> |
||
611 | <AbsDimension x="90" y="0" /> |
||
612 | </Offset> |
||
613 | </Anchor> |
||
614 | </Anchors> |
||
615 | </CheckButton> |
||
616 | |||
617 | </Frames> |
||
618 | </Frame> |
||
619 | <Button name="RangeColorOptionsSave" inherits="OptionsButtonTemplate" text="Close"> |
||
620 | <Size> |
||
621 | <AbsDimension x="120" y="25" /> |
||
622 | </Size> |
||
623 | <Anchors> |
||
624 | <Anchor point="CENTER" relativePoint="BOTTOM" relativeTo="RangeColorOptionsFrame"> |
||
625 | <Offset> |
||
626 | <AbsDimension x="120" y="30" /> |
||
627 | </Offset> |
||
628 | </Anchor> |
||
629 | </Anchors> |
||
630 | <Scripts> |
||
631 | <OnClick> |
||
632 | PlaySound("gsTitleOptionOK"); |
||
633 | if ( ColorPickerFrame:IsVisible() ) then |
||
634 | ColorPickerFrame:Hide(); |
||
635 | end |
||
636 | RangeColor_HideOptions(); |
||
637 | </OnClick> |
||
638 | </Scripts> |
||
639 | </Button> |
||
640 | <Button name="RangeColorOptionsReset" inherits="UIPanelButtonGrayTemplate" text="Reset"> |
||
641 | <Size> |
||
642 | <AbsDimension x="80" y="22" /> |
||
643 | </Size> |
||
644 | <Anchors> |
||
645 | <Anchor point="CENTER" relativePoint="BOTTOM" relativeTo="RangeColorOptionsFrame"> |
||
646 | <Offset> |
||
647 | <AbsDimension x="-150" y="30" /> |
||
648 | </Offset> |
||
649 | </Anchor> |
||
650 | </Anchors> |
||
651 | <Scripts> |
||
652 | <OnClick> |
||
653 | PlaySound("gsTitleOptionOK"); |
||
654 | RangeColor_ResetOptions(); |
||
655 | </OnClick> |
||
656 | <OnEnter> |
||
657 | GameTooltip:SetOwner(this, "ANCHOR_LEFT"); |
||
658 | GameTooltip:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b, alpha); |
||
659 | GameTooltip:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b, alpha); |
||
660 | GameTooltip:SetText(RANGECOLOROPTIONS_RESETTOOLTIPTEXT, 1.0, 0.0, 0.0); |
||
661 | </OnEnter> |
||
662 | <OnLeave> |
||
663 | GameTooltip:Hide(); |
||
664 | </OnLeave> |
||
665 | </Scripts> |
||
666 | </Button> |
||
667 | </Frames> |
||
668 | <Scripts> |
||
669 | <OnLoad> |
||
670 | RangeColorOptions_OnLoad(); |
||
671 | </OnLoad> |
||
672 | <OnShow> |
||
673 | RangeColorOptions_OnShow(); |
||
674 | </OnShow> |
||
675 | </Scripts> |
||
676 | </Frame> |
||
677 | </Ui> |