vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | <!-- |
2 | Spell Alert |
||
3 | Author: Awen Modified by: Mithryn |
||
4 | --> |
||
5 | |||
6 | <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/ |
||
7 | C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd"> |
||
8 | <Script file="localization.lua"/> |
||
9 | <Script file="SpellAlert.lua"/> |
||
10 | <CheckButton name="SA_RadioButtonTemplate" virtual="true"> |
||
11 | <Size> |
||
12 | <AbsDimension x="20" y="20"/> |
||
13 | </Size> |
||
14 | <Layers> |
||
15 | <Layer level="ARTWORK"> |
||
16 | <FontString inherits="GameFontNormalSmall" name="$parentName"> |
||
17 | <Anchors> |
||
18 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent"> |
||
19 | <Offset> |
||
20 | <AbsDimension x="0" y="0"/> |
||
21 | </Offset> |
||
22 | </Anchor> |
||
23 | </Anchors> |
||
24 | <Color r="1" g="1" b="1"/> |
||
25 | </FontString> |
||
26 | </Layer> |
||
27 | </Layers> |
||
28 | <NormalTexture name="$parentNormalTexture" file="Interface\Buttons\UI-RadioButton"> |
||
29 | <TexCoords left="0" right="0.25" top="0" bottom="1"/> |
||
30 | </NormalTexture> |
||
31 | <PushedTexture name="$parentPushedTexture" file="Interface\Buttons\UI-RadioButton"> |
||
32 | <TexCoords left="0.25" right="0.5" top="0" bottom="1"/> |
||
33 | </PushedTexture> |
||
34 | <HighlightTexture name="$parentHighlightTexture" file="Interface\Buttons\UI-RadioButton" alphaMode="ADD"> |
||
35 | <TexCoords left="0.51" right="0.75" top="0" bottom="1"/> |
||
36 | </HighlightTexture> |
||
37 | <CheckedTexture name="$parentCheckedTexture" file="Interface\Buttons\UI-RadioButton"> |
||
38 | <TexCoords left="0.25" right="0.5" top="0" bottom="1"/> |
||
39 | </CheckedTexture> |
||
40 | <Scripts> |
||
41 | <OnClick> |
||
42 | SA_Radio_OnClick(); |
||
43 | </OnClick> |
||
44 | </Scripts> |
||
45 | </CheckButton> |
||
46 | <Frame name="SAOptions" toplevel="true" frameStrata="LOW" movable="true" enableMouse="true" hidden="true" parent="UIParent"> |
||
47 | <Size> |
||
48 | <AbsDimension x="675" y="420" /> |
||
49 | </Size> |
||
50 | <Anchors> |
||
51 | <Anchor point="CENTER" /> |
||
52 | </Anchors> |
||
53 | <Layers> |
||
54 | <Layer level="ARTWORK"> |
||
55 | <Texture name="SAFrameTitle" file="Interface\DialogFrame\UI-DialogBox-Header"> |
||
56 | <Size> |
||
57 | <AbsDimension x="400" y="64" /> |
||
58 | </Size> |
||
59 | <Anchors> |
||
60 | <Anchor point="TOP"> |
||
61 | <Offset> |
||
62 | <AbsDimension x="0" y="12" /> |
||
63 | </Offset> |
||
64 | </Anchor> |
||
65 | </Anchors> |
||
66 | </Texture> |
||
67 | <FontString inherits="GameFontNormal" text="SpellAlert Modified 1.65"> |
||
68 | <Anchors> |
||
69 | <Anchor point="TOP" relativeTo="SAOptions"> |
||
70 | <Offset> |
||
71 | <AbsDimension x="0" y="-3" /> |
||
72 | </Offset> |
||
73 | </Anchor> |
||
74 | </Anchors> |
||
75 | </FontString> |
||
76 | </Layer> |
||
77 | </Layers> |
||
78 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> |
||
79 | <BackgroundInsets> |
||
80 | <AbsInset left="11" right="12" top="12" bottom="11" /> |
||
81 | <Size> |
||
82 | <AbsDimension x="128" y="17" /> |
||
83 | </Size> |
||
84 | </BackgroundInsets> |
||
85 | <TileSize> |
||
86 | <AbsValue val="32" /> |
||
87 | </TileSize> |
||
88 | <EdgeSize> |
||
89 | <AbsValue val="32" /> |
||
90 | </EdgeSize> |
||
91 | </Backdrop> |
||
92 | <Frames> |
||
93 | |||
94 | <Frame name="SACheckboxBG"> |
||
95 | <Anchors> |
||
96 | <Anchor point="TOPLEFT" relativeTo="SAOptions" relativePoint="TOPLEFT"> |
||
97 | <Offset> |
||
98 | <AbsDimension x="35" y="-40" /> |
||
99 | </Offset> |
||
100 | </Anchor> |
||
101 | </Anchors> |
||
102 | <Size> |
||
103 | <AbsDimension x="300" y="335"/> |
||
104 | </Size> |
||
105 | <Anchors> |
||
106 | <Anchor point="TOP"> |
||
107 | <Offset> |
||
108 | <AbsDimension x="0" y="-10"/> |
||
109 | </Offset> |
||
110 | </Anchor> |
||
111 | </Anchors> |
||
112 | <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
113 | <EdgeSize> |
||
114 | <AbsValue val="8"/> |
||
115 | </EdgeSize> |
||
116 | <TileSize> |
||
117 | <AbsValue val="8"/> |
||
118 | </TileSize> |
||
119 | <BackgroundInsets> |
||
120 | <AbsInset left="2" right="2" top="2" bottom="2"/> |
||
121 | </BackgroundInsets> |
||
122 | </Backdrop> |
||
123 | <Scripts> |
||
124 | <OnLoad> |
||
125 | this:SetBackdropBorderColor(0.4, 0.4, 0.4); |
||
126 | this:SetBackdropColor(0.15, 0.15, 0.15); |
||
127 | </OnLoad> |
||
128 | </Scripts> |
||
129 | </Frame> |
||
130 | |||
131 | <Frame name="SASliderBG"> |
||
132 | <Anchors> |
||
133 | <Anchor point="TOPRIGHT" relativeTo="SAOptions" relativePoint="TOPRIGHT"> |
||
134 | <Offset> |
||
135 | <AbsDimension x="-35" y="-40" /> |
||
136 | </Offset> |
||
137 | </Anchor> |
||
138 | </Anchors> |
||
139 | <Size> |
||
140 | <AbsDimension x="300" y="335"/> |
||
141 | </Size> |
||
142 | <Anchors> |
||
143 | <Anchor point="TOP"> |
||
144 | <Offset> |
||
145 | <AbsDimension x="0" y="-10"/> |
||
146 | </Offset> |
||
147 | </Anchor> |
||
148 | </Anchors> |
||
149 | <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
150 | <EdgeSize> |
||
151 | <AbsValue val="8"/> |
||
152 | </EdgeSize> |
||
153 | <TileSize> |
||
154 | <AbsValue val="8"/> |
||
155 | </TileSize> |
||
156 | <BackgroundInsets> |
||
157 | <AbsInset left="2" right="2" top="2" bottom="2"/> |
||
158 | </BackgroundInsets> |
||
159 | </Backdrop> |
||
160 | <Scripts> |
||
161 | <OnLoad> |
||
162 | this:SetBackdropBorderColor(0.4, 0.4, 0.4); |
||
163 | this:SetBackdropColor(0.15, 0.15, 0.15); |
||
164 | </OnLoad> |
||
165 | </Scripts> |
||
166 | </Frame> |
||
167 | |||
168 | <CheckButton name="SAOptionsEnable" inherits="OptionsCheckButtonTemplate"> |
||
169 | <Anchors> |
||
170 | <Anchor point="LEFT" relativeTo="SACheckboxBG" relativePoint="TOPLEFT"> |
||
171 | <Offset> |
||
172 | <AbsDimension x="10" y="-25" /> |
||
173 | </Offset> |
||
174 | </Anchor> |
||
175 | </Anchors> |
||
176 | <Scripts> |
||
177 | <OnLoad> |
||
178 | getglobal(this:GetName().."Text"):SetText("Enable Spell Alert"); |
||
179 | </OnLoad> |
||
180 | </Scripts> |
||
181 | </CheckButton> |
||
182 | <CheckButton name="SAOptionsTargetOnly" inherits="OptionsCheckButtonTemplate"> |
||
183 | <Anchors> |
||
184 | <Anchor point="LEFT" relativeTo="SAOptionsEnable" relativePoint="left"> |
||
185 | <Offset> |
||
186 | <AbsDimension x="0" y="-30" /> |
||
187 | </Offset> |
||
188 | </Anchor> |
||
189 | </Anchors> |
||
190 | <Scripts> |
||
191 | <OnLoad> |
||
192 | getglobal(this:GetName().."Text"):SetText("Alerts spells from the selected target only."); |
||
193 | </OnLoad> |
||
194 | </Scripts> |
||
195 | </CheckButton> |
||
196 | <CheckButton name="SAOptionsHeals" inherits="OptionsCheckButtonTemplate"> |
||
197 | <Anchors> |
||
198 | <Anchor point="LEFT" relativeTo="SAOptionsTargetOnly" relativePoint="left"> |
||
199 | <Offset> |
||
200 | <AbsDimension x="0" y="-30" /> |
||
201 | </Offset> |
||
202 | </Anchor> |
||
203 | </Anchors> |
||
204 | <Scripts> |
||
205 | <OnLoad> |
||
206 | getglobal(this:GetName().."Text"):SetText("Alert healing spells"); |
||
207 | </OnLoad> |
||
208 | </Scripts> |
||
209 | </CheckButton> |
||
210 | <CheckButton name="SAOptionsCC" inherits="OptionsCheckButtonTemplate"> |
||
211 | <Anchors> |
||
212 | <Anchor point="LEFT" relativeTo="SAOptionsHeals" relativePoint="left"> |
||
213 | <Offset> |
||
214 | <AbsDimension x="0" y="-30" /> |
||
215 | </Offset> |
||
216 | </Anchor> |
||
217 | </Anchors> |
||
218 | <Scripts> |
||
219 | <OnLoad> |
||
220 | getglobal(this:GetName().."Text"):SetText("Alert crowd control spells"); |
||
221 | </OnLoad> |
||
222 | </Scripts> |
||
223 | </CheckButton> |
||
224 | <CheckButton name="SAOptionsDispelable" inherits="OptionsCheckButtonTemplate"> |
||
225 | <Anchors> |
||
226 | <Anchor point="LEFT" relativeTo="SAOptionsCC" relativePoint="left"> |
||
227 | <Offset> |
||
228 | <AbsDimension x="0" y="-30" /> |
||
229 | </Offset> |
||
230 | </Anchor> |
||
231 | </Anchors> |
||
232 | <Scripts> |
||
233 | <OnLoad> |
||
234 | getglobal(this:GetName().."Text"):SetText("Alert dispellable abilities"); |
||
235 | </OnLoad> |
||
236 | </Scripts> |
||
237 | </CheckButton> |
||
238 | <CheckButton name="SAOptionsDamage" inherits="OptionsCheckButtonTemplate"> |
||
239 | <Anchors> |
||
240 | <Anchor point="LEFT" relativeTo="SAOptionsDispelable" relativePoint="left"> |
||
241 | <Offset> |
||
242 | <AbsDimension x="0" y="-30" /> |
||
243 | </Offset> |
||
244 | </Anchor> |
||
245 | </Anchors> |
||
246 | <Scripts> |
||
247 | <OnLoad> |
||
248 | getglobal(this:GetName().."Text"):SetText("Alert damage spells"); |
||
249 | </OnLoad> |
||
250 | </Scripts> |
||
251 | </CheckButton> |
||
252 | <CheckButton name="SAOptionsMisc" inherits="OptionsCheckButtonTemplate"> |
||
253 | <Anchors> |
||
254 | <Anchor point="LEFT" relativeTo="SAOptionsDamage" relativePoint="left"> |
||
255 | <Offset> |
||
256 | <AbsDimension x="0" y="-30" /> |
||
257 | </Offset> |
||
258 | </Anchor> |
||
259 | </Anchors> |
||
260 | <Scripts> |
||
261 | <OnLoad> |
||
262 | getglobal(this:GetName().."Text"):SetText("Alert other spell/abilities"); |
||
263 | </OnLoad> |
||
264 | </Scripts> |
||
265 | </CheckButton> |
||
266 | <CheckButton name="SAOptionsEmote" inherits="OptionsCheckButtonTemplate"> |
||
267 | <Anchors> |
||
268 | <Anchor point="LEFT" relativeTo="SAOptionsMisc" relativePoint="left"> |
||
269 | <Offset> |
||
270 | <AbsDimension x="0" y="-30" /> |
||
271 | </Offset> |
||
272 | </Anchor> |
||
273 | </Anchors> |
||
274 | <Scripts> |
||
275 | <OnLoad> |
||
276 | getglobal(this:GetName().."Text"):SetText("Alert Mob Emotes"); |
||
277 | </OnLoad> |
||
278 | </Scripts> |
||
279 | </CheckButton> |
||
280 | <CheckButton name="SAOptionsRetarget" inherits="OptionsCheckButtonTemplate"> |
||
281 | <Anchors> |
||
282 | <Anchor point="LEFT" relativeTo="SAOptionsEmote" relativePoint="left"> |
||
283 | <Offset> |
||
284 | <AbsDimension x="0" y="-30" /> |
||
285 | </Offset> |
||
286 | </Anchor> |
||
287 | </Anchors> |
||
288 | <Scripts> |
||
289 | <OnLoad> |
||
290 | getglobal(this:GetName().."Text"):SetText("Retarget after Crowd Control effect"); |
||
291 | </OnLoad> |
||
292 | </Scripts> |
||
293 | </CheckButton> |
||
294 | <CheckButton name="SAOptionsBomb" inherits="OptionsCheckButtonTemplate"> |
||
295 | <Anchors> |
||
296 | <Anchor point="LEFT" relativeTo="SAOptionsRetarget" relativePoint="left"> |
||
297 | <Offset> |
||
298 | <AbsDimension x="0" y="-30" /> |
||
299 | </Offset> |
||
300 | </Anchor> |
||
301 | </Anchors> |
||
302 | <Scripts> |
||
303 | <OnLoad> |
||
304 | getglobal(this:GetName().."Text"):SetText("Living Bomb warning"); |
||
305 | </OnLoad> |
||
306 | </Scripts> |
||
307 | </CheckButton> |
||
308 | |||
309 | <Frame name="SAColorLabel"> |
||
310 | <Size> |
||
311 | <AbsDimension x="200" y="16"/> |
||
312 | </Size> |
||
313 | <Anchors> |
||
314 | <Anchor point="left" relativePoint="TOPLEFT" relativeTo="SASliderBG"> |
||
315 | <Offset> |
||
316 | <AbsDimension x="0" y="10"/> |
||
317 | </Offset> |
||
318 | </Anchor> |
||
319 | </Anchors> |
||
320 | <Layers> |
||
321 | <Layer level="BACKGROUND"> |
||
322 | <FontString inherits="GameFontNormalSmall" text="Alert text colors"> |
||
323 | <Anchors> |
||
324 | <Anchor point="TOPLEFT"> |
||
325 | <Offset> |
||
326 | <AbsDimension x="15" y="-30"/> |
||
327 | </Offset> |
||
328 | </Anchor> |
||
329 | </Anchors> |
||
330 | </FontString> |
||
331 | </Layer> |
||
332 | </Layers> |
||
333 | </Frame> |
||
334 | |||
335 | <Frame name="SARadioLabels"> |
||
336 | <Size> |
||
337 | <AbsDimension x="200" y="16"/> |
||
338 | </Size> |
||
339 | <Anchors> |
||
340 | <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" relativeTo="SAColorLabel"> |
||
341 | <Offset> |
||
342 | <AbsDimension x="27" y="-70"/> |
||
343 | </Offset> |
||
344 | </Anchor> |
||
345 | </Anchors> |
||
346 | <Layers> |
||
347 | <Layer level="BACKGROUND"> |
||
348 | <FontString inherits="GameFontNormalSmall" text="All All except spell Only spell"> |
||
349 | <Anchors> |
||
350 | <Anchor point="TOPLEFT"> |
||
351 | <Offset> |
||
352 | <AbsDimension x="0" y="0"/> |
||
353 | </Offset> |
||
354 | </Anchor> |
||
355 | </Anchors> |
||
356 | </FontString> |
||
357 | </Layer> |
||
358 | </Layers> |
||
359 | </Frame> |
||
360 | |||
361 | <CheckButton name="$parentRadio1" id="1" inherits="SA_RadioButtonTemplate"> <!-- Color all --> |
||
362 | <Anchors> |
||
363 | <Anchor point="LEFT" relativeTo="SARadioLabels" relativePoint="left"> |
||
364 | <Offset> |
||
365 | <AbsDimension x="-2" y="-15"/> |
||
366 | </Offset> |
||
367 | </Anchor> |
||
368 | </Anchors> |
||
369 | <Scripts> |
||
370 | <OnEnter> |
||
371 | GameTooltip_AddNewbieTip("Color All", 1.0, 1.0, 1.0, "Color-codes the entire alert."); |
||
372 | </OnEnter> |
||
373 | <OnLeave> |
||
374 | GameTooltip:Hide(); |
||
375 | </OnLeave> |
||
376 | </Scripts> |
||
377 | </CheckButton> |
||
378 | <CheckButton name="$parentRadio2" id="2" inherits="SA_RadioButtonTemplate"> <!-- Color except spell --> |
||
379 | <Anchors> |
||
380 | <Anchor point="LEFT" relativeTo="$parentRadio1" relativePoint="RIGHT"> |
||
381 | <Offset> |
||
382 | <AbsDimension x="90" y="0"/> |
||
383 | </Offset> |
||
384 | </Anchor> |
||
385 | </Anchors> |
||
386 | <Scripts> |
||
387 | <OnEnter> |
||
388 | GameTooltip_AddNewbieTip("Color Except Spell", 1.0, 1.0, 1.0, "Color-codes everything except for the spell name."); |
||
389 | </OnEnter> |
||
390 | <OnLeave> |
||
391 | GameTooltip:Hide(); |
||
392 | </OnLeave> |
||
393 | </Scripts> |
||
394 | </CheckButton> |
||
395 | <CheckButton name="$parentRadio3" id="3" inherits="SA_RadioButtonTemplate"> <!-- Color only spell --> |
||
396 | <Anchors> |
||
397 | <Anchor point="LEFT" relativeTo="$parentRadio2" relativePoint="RIGHT"> |
||
398 | <Offset> |
||
399 | <AbsDimension x="90" y="0"/> |
||
400 | </Offset> |
||
401 | </Anchor> |
||
402 | </Anchors> |
||
403 | <Scripts> |
||
404 | <OnEnter> |
||
405 | GameTooltip_AddNewbieTip("Color Spell Only", 1.0, 1.0, 1.0, "Color-codes just the spell name."); |
||
406 | </OnEnter> |
||
407 | <OnLeave> |
||
408 | GameTooltip:Hide(); |
||
409 | </OnLeave> |
||
410 | </Scripts> |
||
411 | </CheckButton> |
||
412 | |||
413 | <Frame name="SAColorLabels"> |
||
414 | <Size> |
||
415 | <AbsDimension x="200" y="16"/> |
||
416 | </Size> |
||
417 | <Anchors> |
||
418 | <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" relativeTo="SARadioLabels"> |
||
419 | <Offset> |
||
420 | <AbsDimension x="-10" y="-55"/> |
||
421 | </Offset> |
||
422 | </Anchor> |
||
423 | </Anchors> |
||
424 | <Layers> |
||
425 | <Layer level="BACKGROUND"> |
||
426 | <FontString inherits="GameFontNormalSmall" text="Hostile Heal Buff Emote Totem"> |
||
427 | <Anchors> |
||
428 | <Anchor point="TOPLEFT"> |
||
429 | <Offset> |
||
430 | <AbsDimension x="0" y="0"/> |
||
431 | </Offset> |
||
432 | </Anchor> |
||
433 | </Anchors> |
||
434 | </FontString> |
||
435 | </Layer> |
||
436 | </Layers> |
||
437 | </Frame> |
||
438 | |||
439 | <Button name="SAat"> |
||
440 | <Size> |
||
441 | <AbsDimension x="16" y="16"/> |
||
442 | </Size> |
||
443 | <Anchors> |
||
444 | <Anchor point="LEFT" relativeTo="SAColorLabels" relativePoint="left"> |
||
445 | <Offset> |
||
446 | <AbsDimension x="10" y="-15" /> |
||
447 | </Offset> |
||
448 | </Anchor> |
||
449 | </Anchors> |
||
450 | <Layers> |
||
451 | <Layer level="BACKGROUND"> |
||
452 | <Texture name="SAat_SwatchBg"> |
||
453 | <Size> |
||
454 | <AbsDimension x="14" y="14"/> |
||
455 | </Size> |
||
456 | <Anchors> |
||
457 | <Anchor point="CENTER"> |
||
458 | <Offset> |
||
459 | <AbsDimension x="0" y="0"/> |
||
460 | </Offset> |
||
461 | </Anchor> |
||
462 | </Anchors> |
||
463 | <Color r="1.0" g="1.0" b="1.0"/> |
||
464 | </Texture> |
||
465 | </Layer> |
||
466 | </Layers> |
||
467 | <Scripts> |
||
468 | <OnClick> |
||
469 | SpellAlert_OpenColorPicker(this:GetParent(), 0); |
||
470 | </OnClick> |
||
471 | <OnEnter> |
||
472 | GameTooltip_AddNewbieTip("Hostile", 1.0, 1.0, 1.0, "Font color for hostile spells."); |
||
473 | getglobal("SAat_SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b); |
||
474 | </OnEnter> |
||
475 | <OnLeave> |
||
476 | GameTooltip:Hide(); |
||
477 | getglobal("SAat_SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b); |
||
478 | </OnLeave> |
||
479 | </Scripts> |
||
480 | <NormalTexture name="SAat_NormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/> |
||
481 | </Button> |
||
482 | |||
483 | <Button name="SAhe"> |
||
484 | <Size> |
||
485 | <AbsDimension x="16" y="16"/> |
||
486 | </Size> |
||
487 | <Anchors> |
||
488 | <Anchor point="LEFT" relativeTo="SAat" relativePoint="left"> |
||
489 | <Offset> |
||
490 | <AbsDimension x="55" y="0" /> |
||
491 | </Offset> |
||
492 | </Anchor> |
||
493 | </Anchors> |
||
494 | <Layers> |
||
495 | <Layer level="BACKGROUND"> |
||
496 | <Texture name="SAhe_SwatchBg"> |
||
497 | <Size> |
||
498 | <AbsDimension x="14" y="14"/> |
||
499 | </Size> |
||
500 | <Anchors> |
||
501 | <Anchor point="CENTER"> |
||
502 | <Offset> |
||
503 | <AbsDimension x="0" y="0"/> |
||
504 | </Offset> |
||
505 | </Anchor> |
||
506 | </Anchors> |
||
507 | <Color r="1.0" g="1.0" b="1.0"/> |
||
508 | </Texture> |
||
509 | </Layer> |
||
510 | </Layers> |
||
511 | <Scripts> |
||
512 | <OnClick> |
||
513 | SpellAlert_OpenColorPicker(this:GetParent(), 1); |
||
514 | </OnClick> |
||
515 | <OnEnter> |
||
516 | GameTooltip_AddNewbieTip("Heals", 1.0, 1.0, 1.0, "Font color for heals."); |
||
517 | getglobal("SAhe_SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b); |
||
518 | </OnEnter> |
||
519 | <OnLeave> |
||
520 | GameTooltip:Hide(); |
||
521 | getglobal("SAhe_SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b); |
||
522 | </OnLeave> |
||
523 | </Scripts> |
||
524 | <NormalTexture name="SAhe_NormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/> |
||
525 | </Button> |
||
526 | |||
527 | <Button name="SAbu"> |
||
528 | <Size> |
||
529 | <AbsDimension x="16" y="16"/> |
||
530 | </Size> |
||
531 | <Anchors> |
||
532 | <Anchor point="LEFT" relativeTo="SAhe" relativePoint="left"> |
||
533 | <Offset> |
||
534 | <AbsDimension x="55" y="0" /> |
||
535 | </Offset> |
||
536 | </Anchor> |
||
537 | </Anchors> |
||
538 | <Layers> |
||
539 | <Layer level="BACKGROUND"> |
||
540 | <Texture name="SAbu_SwatchBg"> |
||
541 | <Size> |
||
542 | <AbsDimension x="14" y="14"/> |
||
543 | </Size> |
||
544 | <Anchors> |
||
545 | <Anchor point="CENTER"> |
||
546 | <Offset> |
||
547 | <AbsDimension x="0" y="0"/> |
||
548 | </Offset> |
||
549 | </Anchor> |
||
550 | </Anchors> |
||
551 | <Color r="1.0" g="1.0" b="1.0"/> |
||
552 | </Texture> |
||
553 | </Layer> |
||
554 | </Layers> |
||
555 | <Scripts> |
||
556 | <OnClick> |
||
557 | SpellAlert_OpenColorPicker(this:GetParent(), 2); |
||
558 | </OnClick> |
||
559 | <OnEnter> |
||
560 | GameTooltip_AddNewbieTip("Buffs", 1.0, 1.0, 1.0, "Font color for buffs."); |
||
561 | getglobal("SAbu_SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b); |
||
562 | </OnEnter> |
||
563 | <OnLeave> |
||
564 | GameTooltip:Hide(); |
||
565 | getglobal("SAbu_SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b); |
||
566 | </OnLeave> |
||
567 | </Scripts> |
||
568 | <NormalTexture name="SAbu_NormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/> |
||
569 | </Button> |
||
570 | |||
571 | <Button name="SAem"> |
||
572 | <Size> |
||
573 | <AbsDimension x="16" y="16"/> |
||
574 | </Size> |
||
575 | <Anchors> |
||
576 | <Anchor point="LEFT" relativeTo="SAbu" relativePoint="left"> |
||
577 | <Offset> |
||
578 | <AbsDimension x="55" y="0" /> |
||
579 | </Offset> |
||
580 | </Anchor> |
||
581 | </Anchors> |
||
582 | <Layers> |
||
583 | <Layer level="BACKGROUND"> |
||
584 | <Texture name="SAem_SwatchBg"> |
||
585 | <Size> |
||
586 | <AbsDimension x="14" y="14"/> |
||
587 | </Size> |
||
588 | <Anchors> |
||
589 | <Anchor point="CENTER"> |
||
590 | <Offset> |
||
591 | <AbsDimension x="0" y="0"/> |
||
592 | </Offset> |
||
593 | </Anchor> |
||
594 | </Anchors> |
||
595 | <Color r="1.0" g="1.0" b="1.0"/> |
||
596 | </Texture> |
||
597 | </Layer> |
||
598 | </Layers> |
||
599 | <Scripts> |
||
600 | <OnClick> |
||
601 | SpellAlert_OpenColorPicker(this:GetParent(), 3); |
||
602 | </OnClick> |
||
603 | <OnEnter> |
||
604 | GameTooltip_AddNewbieTip("Emotes", 1.0, 1.0, 1.0, "Font color for emotes."); |
||
605 | getglobal("SAem_SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b); |
||
606 | </OnEnter> |
||
607 | <OnLeave> |
||
608 | GameTooltip:Hide(); |
||
609 | getglobal("SAem_SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b); |
||
610 | </OnLeave> |
||
611 | </Scripts> |
||
612 | <NormalTexture name="SAem_NormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/> |
||
613 | </Button> |
||
614 | |||
615 | <Button name="SAto"> |
||
616 | <Size> |
||
617 | <AbsDimension x="16" y="16"/> |
||
618 | </Size> |
||
619 | <Anchors> |
||
620 | <Anchor point="LEFT" relativeTo="SAem" relativePoint="left"> |
||
621 | <Offset> |
||
622 | <AbsDimension x="55" y="0" /> |
||
623 | </Offset> |
||
624 | </Anchor> |
||
625 | </Anchors> |
||
626 | <Layers> |
||
627 | <Layer level="BACKGROUND"> |
||
628 | <Texture name="SAto_SwatchBg"> |
||
629 | <Size> |
||
630 | <AbsDimension x="14" y="14"/> |
||
631 | </Size> |
||
632 | <Anchors> |
||
633 | <Anchor point="CENTER"> |
||
634 | <Offset> |
||
635 | <AbsDimension x="0" y="0"/> |
||
636 | </Offset> |
||
637 | </Anchor> |
||
638 | </Anchors> |
||
639 | <Color r="1.0" g="1.0" b="1.0"/> |
||
640 | </Texture> |
||
641 | </Layer> |
||
642 | </Layers> |
||
643 | <Scripts> |
||
644 | <OnClick> |
||
645 | SpellAlert_OpenColorPicker(this:GetParent(), 4); |
||
646 | </OnClick> |
||
647 | <OnEnter> |
||
648 | GameTooltip_AddNewbieTip("Totems", 1.0, 1.0, 1.0, "Font color for totems."); |
||
649 | getglobal("SAto_SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b); |
||
650 | </OnEnter> |
||
651 | <OnLeave> |
||
652 | GameTooltip:Hide(); |
||
653 | getglobal("SAto_SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b); |
||
654 | </OnLeave> |
||
655 | </Scripts> |
||
656 | <NormalTexture name="SAto_NormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/> |
||
657 | </Button> |
||
658 | |||
659 | <Slider name="SASizeSlider" inherits="OptionsSliderTemplate"> |
||
660 | <Size> |
||
661 | <AbsDimension x="240" y="16"/> |
||
662 | </Size> |
||
663 | <Anchors> |
||
664 | <Anchor point="LEFT" relativeTo="SAColorLabels" relativePoint="left"> |
||
665 | <Offset> |
||
666 | <AbsDimension x="20" y="-60" /> |
||
667 | </Offset> |
||
668 | </Anchor> |
||
669 | </Anchors> |
||
670 | <Scripts> |
||
671 | <OnLoad> |
||
672 | getglobal(this:GetName().."Text"):SetText("Alert size"); |
||
673 | getglobal(this:GetName().."High"):SetText("Big"); |
||
674 | getglobal(this:GetName().."Low"):SetText("Small"); |
||
675 | SASizeSlider:SetMinMaxValues(15,37); |
||
676 | SASizeSlider:SetValueStep(1); |
||
677 | </OnLoad> |
||
678 | <OnValueChanged> |
||
679 | SAConfig.zoom = SASizeSlider:GetValue(); |
||
680 | SpellAlert_UpdateLook(); |
||
681 | </OnValueChanged> |
||
682 | </Scripts> |
||
683 | </Slider> |
||
684 | |||
685 | <Slider name="SAShadowSlider" inherits="OptionsSliderTemplate"> |
||
686 | <Size> |
||
687 | <AbsDimension x="240" y="16"/> |
||
688 | </Size> |
||
689 | <Anchors> |
||
690 | <Anchor point="LEFT" relativeTo="SASizeSlider" relativePoint="left"> |
||
691 | <Offset> |
||
692 | <AbsDimension x="0" y="-45" /> |
||
693 | </Offset> |
||
694 | </Anchor> |
||
695 | </Anchors> |
||
696 | <Scripts> |
||
697 | <OnLoad> |
||
698 | getglobal(this:GetName().."Text"):SetText("Border Size"); |
||
699 | getglobal(this:GetName().."High"):SetText("Large"); |
||
700 | getglobal(this:GetName().."Low"):SetText("None"); |
||
701 | SAShadowSlider:SetMinMaxValues(0,2); |
||
702 | SAShadowSlider:SetValueStep(1); |
||
703 | </OnLoad> |
||
704 | <OnValueChanged> |
||
705 | SAConfig.shadow = SAShadowSlider:GetValue(); |
||
706 | SpellAlert_UpdateLook(); |
||
707 | </OnValueChanged> |
||
708 | </Scripts> |
||
709 | </Slider> |
||
710 | |||
711 | <Slider name="SAPosSlider" inherits="OptionsSliderTemplate"> |
||
712 | <Size> |
||
713 | <AbsDimension x="240" y="16"/> |
||
714 | </Size> |
||
715 | <Anchors> |
||
716 | <Anchor point="LEFT" relativeTo="SAShadowSlider" relativePoint="left"> |
||
717 | <Offset> |
||
718 | <AbsDimension x="0" y="-80" /> |
||
719 | </Offset> |
||
720 | </Anchor> |
||
721 | </Anchors> |
||
722 | <Scripts> |
||
723 | <OnLoad> |
||
724 | getglobal(this:GetName().."Text"):SetText("Alert text position"); |
||
725 | getglobal(this:GetName().."High"):SetText("Near Top"); |
||
726 | getglobal(this:GetName().."Low"):SetText("Near Bottom"); |
||
727 | SAPosSlider:SetMinMaxValues(-1080,80); |
||
728 | SAPosSlider:SetValueStep(10); |
||
729 | </OnLoad> |
||
730 | <OnValueChanged> |
||
731 | SAConfig.pos = SAPosSlider:GetValue(); |
||
732 | SpellAlert_UpdatePosition(); |
||
733 | </OnValueChanged> |
||
734 | </Scripts> |
||
735 | </Slider> |
||
736 | |||
737 | <Frame name="SARadioLabels2"> |
||
738 | <Size> |
||
739 | <AbsDimension x="200" y="16"/> |
||
740 | </Size> |
||
741 | <Anchors> |
||
742 | <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" relativeTo="SAShadowSlider"> |
||
743 | <Offset> |
||
744 | <AbsDimension x="44" y="-25"/> |
||
745 | </Offset> |
||
746 | </Anchor> |
||
747 | </Anchors> |
||
748 | <Layers> |
||
749 | <Layer level="BACKGROUND"> |
||
750 | <FontString inherits="GameFontNormalSmall" text="Centered Free"> |
||
751 | <Anchors> |
||
752 | <Anchor point="TOPLEFT"> |
||
753 | <Offset> |
||
754 | <AbsDimension x="-20" y="-25"/> |
||
755 | </Offset> |
||
756 | </Anchor> |
||
757 | </Anchors> |
||
758 | </FontString> |
||
759 | </Layer> |
||
760 | </Layers> |
||
761 | </Frame> |
||
762 | |||
763 | <CheckButton name="$parentRadioA" id="5" inherits="SA_RadioButtonTemplate"> <!-- Center Text --> |
||
764 | <Anchors> |
||
765 | <Anchor point="LEFT" relativeTo="SAShadowSlider" relativePoint="left"> |
||
766 | <Offset> |
||
767 | <AbsDimension x="43" y="-50"/> |
||
768 | </Offset> |
||
769 | </Anchor> |
||
770 | </Anchors> |
||
771 | <Scripts> |
||
772 | <OnEnter> |
||
773 | GameTooltip_AddNewbieTip("Center Text", 1.0, 1.0, 1.0, "Locks dragging of text."); |
||
774 | </OnEnter> |
||
775 | <OnLeave> |
||
776 | GameTooltip:Hide(); |
||
777 | </OnLeave> |
||
778 | </Scripts> |
||
779 | </CheckButton> |
||
780 | <CheckButton name="$parentRadioB" id="6" inherits="SA_RadioButtonTemplate"> <!-- Drag --> |
||
781 | <Anchors> |
||
782 | <Anchor point="LEFT" relativeTo="$parentRadioA" relativePoint="RIGHT"> |
||
783 | <Offset> |
||
784 | <AbsDimension x="90" y="0"/> |
||
785 | </Offset> |
||
786 | </Anchor> |
||
787 | </Anchors> |
||
788 | <Scripts> |
||
789 | <OnEnter> |
||
790 | GameTooltip_AddNewbieTip("Free", 1.0, 1.0, 1.0, "Drag to place text."); |
||
791 | </OnEnter> |
||
792 | <OnLeave> |
||
793 | GameTooltip:Hide(); |
||
794 | </OnLeave> |
||
795 | </Scripts> |
||
796 | </CheckButton> |
||
797 | |||
798 | <Slider name="SADelaySlider" inherits="OptionsSliderTemplate"> |
||
799 | <Size> |
||
800 | <AbsDimension x="240" y="16"/> |
||
801 | </Size> |
||
802 | <Anchors> |
||
803 | <Anchor point="LEFT" relativeTo="SAPosSlider" relativePoint="left"> |
||
804 | <Offset> |
||
805 | <AbsDimension x="0" y="-40" /> |
||
806 | </Offset> |
||
807 | </Anchor> |
||
808 | </Anchors> |
||
809 | <Scripts> |
||
810 | <OnLoad> |
||
811 | getglobal(this:GetName().."Text"):SetText("Alert Fade Delay"); |
||
812 | getglobal(this:GetName().."High"):SetText("Three Seconds"); |
||
813 | getglobal(this:GetName().."Low"):SetText("One Second"); |
||
814 | SADelaySlider:SetMinMaxValues(1,3); |
||
815 | SADelaySlider:SetValueStep(0.5); |
||
816 | </OnLoad> |
||
817 | <OnValueChanged> |
||
818 | SAConfig.holdTime = SADelaySlider:GetValue(); |
||
819 | SpellAlert_UpdatePosition(); |
||
820 | </OnValueChanged> |
||
821 | </Scripts> |
||
822 | </Slider> |
||
823 | |||
824 | <Button name="SAOptionsSave" inherits="GameMenuButtonTemplate" text="Save/Close"> |
||
825 | <Anchors> |
||
826 | <Anchor point="left" relativePoint="BOTTOMLEFT" relativeTo="SAOptions"> |
||
827 | <Offset> |
||
828 | <AbsDimension x="20" y="30" /> |
||
829 | </Offset> |
||
830 | </Anchor> |
||
831 | </Anchors> |
||
832 | <Scripts> |
||
833 | <OnClick> |
||
834 | SpellAlert_OptionsClose(); |
||
835 | </OnClick> |
||
836 | </Scripts> |
||
837 | </Button> |
||
838 | |||
839 | <Button name="SAOptionsReset" inherits="GameMenuButtonTemplate" text="Reset"> |
||
840 | <Size> |
||
841 | <AbsDimension x="40" y="16" /> |
||
842 | </Size> |
||
843 | <Anchors> |
||
844 | <Anchor point="right" relativePoint="BOTTOMRIGHT" relativeTo="SAOptions"> |
||
845 | <Offset> |
||
846 | <AbsDimension x="-20" y="30" /> |
||
847 | </Offset> |
||
848 | </Anchor> |
||
849 | </Anchors> |
||
850 | <Scripts> |
||
851 | <OnClick> |
||
852 | SAReset:Show(); |
||
853 | </OnClick> |
||
854 | <OnEnter> |
||
855 | GameTooltip_AddNewbieTip("Warning!", 1.0, 1.0, 1.0, "Resets all data! This cannot be reversed!"); |
||
856 | </OnEnter> |
||
857 | <OnLeave> |
||
858 | GameTooltip:Hide(); |
||
859 | </OnLeave> |
||
860 | </Scripts> |
||
861 | </Button> |
||
862 | </Frames> |
||
863 | <Scripts> |
||
864 | <OnMouseUp> |
||
865 | if ( this.isMoving ) then |
||
866 | this:StopMovingOrSizing(); |
||
867 | this.isMoving = false; |
||
868 | end |
||
869 | </OnMouseUp> |
||
870 | <OnMouseDown> |
||
871 | if ( ( ( not this.isLocked ) or ( this.isLocked == 0 ) ) and ( arg1 == "LeftButton" ) ) then |
||
872 | this:StartMoving(); |
||
873 | this.isMoving = true; |
||
874 | end |
||
875 | </OnMouseDown> |
||
876 | <OnHide> |
||
877 | if ( this.isMoving ) then |
||
878 | this:StopMovingOrSizing(); |
||
879 | this.isMoving = false; |
||
880 | end |
||
881 | </OnHide> |
||
882 | </Scripts> |
||
883 | </Frame> |
||
884 | |||
885 | <!-- I sux at programming so I'll do something clunky =D --> |
||
886 | <Button name="SADrag" movable="false" text="Drag" hidden="true" insertMode="TOP" parent="UIParent" frameStrata="HIGH" toplevel="true"> |
||
887 | <Size> |
||
888 | <AbsDimension x="64" y="32"/> |
||
889 | </Size> |
||
890 | <Anchors> |
||
891 | <Anchor point="CENTER" relativeTo="UIParent" relativePoint="CENTER"> |
||
892 | <Offset> |
||
893 | <AbsDimension x="0" y="0"/> |
||
894 | </Offset> |
||
895 | </Anchor> |
||
896 | </Anchors> |
||
897 | <Layers> |
||
898 | <Layer level="BACKGROUND"> |
||
899 | <Texture name="$parentLeft" file="Interface\ChatFrame\ChatFrameTab"> |
||
900 | <Size> |
||
901 | <AbsDimension x="16" y="32"/> |
||
902 | </Size> |
||
903 | <Anchors> |
||
904 | <Anchor point="TOPLEFT"/> |
||
905 | </Anchors> |
||
906 | <TexCoords left="0.0" right="0.25" top="0.0" bottom="1.0"/> |
||
907 | </Texture> |
||
908 | <Texture name="$parentMiddle" file="Interface\ChatFrame\ChatFrameTab"> |
||
909 | <Size> |
||
910 | <AbsDimension x="44" y="32"/> |
||
911 | </Size> |
||
912 | <Anchors> |
||
913 | <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/> |
||
914 | </Anchors> |
||
915 | <TexCoords left="0.25" right="0.75" top="0.0" bottom="1.0"/> |
||
916 | </Texture> |
||
917 | <Texture name="$parentRight" file="Interface\ChatFrame\ChatFrameTab"> |
||
918 | <Size> |
||
919 | <AbsDimension x="16" y="32"/> |
||
920 | </Size> |
||
921 | <Anchors> |
||
922 | <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/> |
||
923 | </Anchors> |
||
924 | <TexCoords left="0.75" right="1.0" top="0.0" bottom="1.0"/> |
||
925 | </Texture> |
||
926 | </Layer> |
||
927 | </Layers> |
||
928 | <Frames> |
||
929 | <Frame name="SA_HL" hidden="true"> |
||
930 | <Size> |
||
931 | <AbsDimension x="5" y="32"/> |
||
932 | </Size> |
||
933 | <Anchors> |
||
934 | <Anchor point="LEFT" relativeTo="$parentLeft"> |
||
935 | <Offset> |
||
936 | <AbsDimension x="0" y="-7"/> |
||
937 | </Offset> |
||
938 | </Anchor> |
||
939 | <Anchor point="RIGHT" relativeTo="$parentRight"> |
||
940 | <Offset> |
||
941 | <AbsDimension x="0" y="-7"/> |
||
942 | </Offset> |
||
943 | </Anchor> |
||
944 | </Anchors> |
||
945 | <Layers> |
||
946 | <Layer level="BACKGROUND"> |
||
947 | <Texture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD" setAllPoints="true"/> |
||
948 | </Layer> |
||
949 | </Layers> |
||
950 | </Frame> |
||
951 | </Frames> |
||
952 | <Scripts> |
||
953 | <OnEnter> |
||
954 | SA_HL:Show(); |
||
955 | </OnEnter> |
||
956 | <OnLeave> |
||
957 | SA_HL:Hide(); |
||
958 | </OnLeave> |
||
959 | <OnMouseDown> |
||
960 | if ( arg1 == "LeftButton" ) then |
||
961 | this:StartMoving(); |
||
962 | end |
||
963 | </OnMouseDown> |
||
964 | <OnMouseUp> |
||
965 | this:StopMovingOrSizing(); |
||
966 | </OnMouseUp> |
||
967 | <OnUpdate> |
||
968 | AlertFrame_Adjust(); |
||
969 | </OnUpdate> |
||
970 | </Scripts> |
||
971 | <NormalText name="$parentText" inherits="GameFontNormalSmall"> |
||
972 | <Size> |
||
973 | <AbsDimension x="50" y="8"/> |
||
974 | </Size> |
||
975 | <Anchors> |
||
976 | <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"> |
||
977 | <Offset> |
||
978 | <AbsDimension x="0" y="-5"/> |
||
979 | </Offset> |
||
980 | </Anchor> |
||
981 | </Anchors> |
||
982 | </NormalText> |
||
983 | </Button> |
||
984 | |||
985 | |||
986 | <MessageFrame name="AlertFrame" insertMode="TOP" parent="UIParent" frameStrata="HIGH" toplevel="true"> |
||
987 | <Size> |
||
988 | <AbsDimension x="3000" y="200"/> |
||
989 | </Size> |
||
990 | <Anchors> |
||
991 | <Anchor point="CENTER" relativeTo="SADrag" relativePoint="CENTER"> |
||
992 | <Offset> |
||
993 | <AbsDimension x="0" y="-25"/> |
||
994 | </Offset> |
||
995 | </Anchor> |
||
996 | </Anchors> |
||
997 | <Layers> |
||
998 | <Layer level="ARTWORK"> |
||
999 | <FontString name="AlertFrameText" inherits="ZoneTextFont"> |
||
1000 | <Size> |
||
1001 | <AbsDimension x="3000" y="0"/> |
||
1002 | </Size> |
||
1003 | <Anchors> |
||
1004 | <Anchor point="CENTER"/> |
||
1005 | </Anchors> |
||
1006 | </FontString> |
||
1007 | </Layer> |
||
1008 | </Layers> |
||
1009 | <Scripts> |
||
1010 | <OnLoad> |
||
1011 | SpellAlert_OnLoad(); |
||
1012 | </OnLoad> |
||
1013 | <OnEvent> |
||
1014 | SpellAlert_OnEvent(); |
||
1015 | </OnEvent> |
||
1016 | <OnUpdate> |
||
1017 | SpellAlert_OnUpdate(); |
||
1018 | </OnUpdate> |
||
1019 | </Scripts> |
||
1020 | </MessageFrame> |
||
1021 | |||
1022 | <Frame name="SAReset" toplevel="true" frameStrata="HIGH" hidden="true" inherits="OptionFrameBoxTemplate" parent="UIParent"> |
||
1023 | <Size> |
||
1024 | <AbsDimension x="160" y="70"/> |
||
1025 | </Size> |
||
1026 | <Anchors> |
||
1027 | <Anchor point="BOTTOMRIGHT" relativeTo="SAOptions" relativePoint="BOTTOMRIGHT"> |
||
1028 | <Offset> |
||
1029 | <AbsDimension x="0" y="0"/> |
||
1030 | </Offset> |
||
1031 | </Anchor> |
||
1032 | </Anchors> |
||
1033 | <Layers> |
||
1034 | <Layer level="BACKGROUND"> |
||
1035 | <FontString inherits="GameFontNormalSmall" text="Are you sure you want"> |
||
1036 | <Anchors> |
||
1037 | <Anchor point="CENTER"> |
||
1038 | <Offset> |
||
1039 | <AbsDimension x="0" y="20"/> |
||
1040 | </Offset> |
||
1041 | </Anchor> |
||
1042 | </Anchors> |
||
1043 | </FontString> |
||
1044 | <FontString inherits="GameFontNormalSmall" text="to reset options?"> |
||
1045 | <Anchors> |
||
1046 | <Anchor point="CENTER"> |
||
1047 | <Offset> |
||
1048 | <AbsDimension x="0" y="10"/> |
||
1049 | </Offset> |
||
1050 | </Anchor> |
||
1051 | </Anchors> |
||
1052 | </FontString> |
||
1053 | </Layer> |
||
1054 | </Layers> |
||
1055 | <Frames> |
||
1056 | <Button name="SAConfirm" inherits="GameMenuButtonTemplate" text="Ok"> |
||
1057 | <Size> |
||
1058 | <AbsDimension x="60" y="20" /> |
||
1059 | </Size> |
||
1060 | <Anchors> |
||
1061 | <Anchor point="CENTER" relativePoint="BOTTOM" relativeTo="SAReset"> |
||
1062 | <Offset> |
||
1063 | <AbsDimension x="-35" y="20" /> |
||
1064 | </Offset> |
||
1065 | </Anchor> |
||
1066 | </Anchors> |
||
1067 | <Scripts> |
||
1068 | <OnClick> |
||
1069 | SpellAlert_setOptions(); |
||
1070 | SAReset:Hide(); |
||
1071 | </OnClick> |
||
1072 | </Scripts> |
||
1073 | </Button> |
||
1074 | <Button name="SACancel" inherits="GameMenuButtonTemplate" text="Cancel"> |
||
1075 | <Size> |
||
1076 | <AbsDimension x="60" y="20" /> |
||
1077 | </Size> |
||
1078 | <Anchors> |
||
1079 | <Anchor point="CENTER" relativePoint="BOTTOM" relativeTo="SAReset"> |
||
1080 | <Offset> |
||
1081 | <AbsDimension x="35" y="20" /> |
||
1082 | </Offset> |
||
1083 | </Anchor> |
||
1084 | </Anchors> |
||
1085 | <Scripts> |
||
1086 | <OnClick> |
||
1087 | SAReset:Hide(); |
||
1088 | </OnClick> |
||
1089 | </Scripts> |
||
1090 | </Button> |
||
1091 | </Frames> |
||
1092 | </Frame> |
||
1093 | |||
1094 | </Ui> |