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" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ |
2 | ..\FrameXML\UI.xsd"> |
||
3 | <Script file="SuperMacro.lua"/> |
||
4 | <Script file="SM_Super.lua"/> |
||
5 | <Script file="SM_ItemLink.lua"/> |
||
6 | <Script file="SM_Slash.lua"/> |
||
7 | <Script file="SM_Tooltip.lua"/> |
||
8 | <Script file="SM_Extend.lua"/> |
||
9 | <Script file="localization.lua"/> |
||
10 | <FontString name="SuperMacroButtonFont" virtual="true" inherits="GameFontNormalLarge"> |
||
11 | <Shadow> |
||
12 | <Offset> |
||
13 | <AbsDimension x="2" y="-1"/> |
||
14 | </Offset> |
||
15 | <Color r="0" g="0" b="0"/> |
||
16 | </Shadow> |
||
17 | <Anchors> |
||
18 | <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT"> |
||
19 | <Offset> |
||
20 | <AbsDimension x="0" y="0"/> |
||
21 | </Offset> |
||
22 | </Anchor> |
||
23 | </Anchors> |
||
24 | </FontString> |
||
25 | <CheckButton name="SuperMacroFrameButtonTemplate" virtual="true"> |
||
26 | <Size> |
||
27 | <AbsDimension x="36" y="36"/> |
||
28 | </Size> |
||
29 | <Layers> |
||
30 | <Layer level="OVERLAY"> |
||
31 | <FontString name="$parentName" inherits="GameFontHighlightSmallOutline"> |
||
32 | <Size> |
||
33 | <AbsDimension x="36" y="10"/> |
||
34 | </Size> |
||
35 | <Anchors> |
||
36 | <Anchor point="BOTTOM"> |
||
37 | <Offset> |
||
38 | <AbsDimension x="0" y="2"/> |
||
39 | </Offset> |
||
40 | </Anchor> |
||
41 | </Anchors> |
||
42 | </FontString> |
||
43 | </Layer> |
||
44 | <Layer level="BACKGROUND"> |
||
45 | <Texture file="Interface\Buttons\UI-EmptySlot-Disabled"> |
||
46 | <Size> |
||
47 | <AbsDimension x="64" y="64"/> |
||
48 | </Size> |
||
49 | <Anchors> |
||
50 | <Anchor point="CENTER"> |
||
51 | <Offset> |
||
52 | <AbsDimension x="0" y="-1"/> |
||
53 | </Offset> |
||
54 | </Anchor> |
||
55 | </Anchors> |
||
56 | </Texture> |
||
57 | </Layer> |
||
58 | </Layers> |
||
59 | <NormalTexture name="$parentIcon"> |
||
60 | <Size> |
||
61 | <AbsDimension x="36" y="36"/> |
||
62 | </Size> |
||
63 | <Anchors> |
||
64 | <Anchor point="CENTER"> |
||
65 | <Offset> |
||
66 | <AbsDimension x="0" y="-1"/> |
||
67 | </Offset> |
||
68 | </Anchor> |
||
69 | </Anchors> |
||
70 | </NormalTexture> |
||
71 | <HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/> |
||
72 | <CheckedTexture alphaMode="ADD" file="Interface\Buttons\CheckButtonHilight"/> |
||
73 | </CheckButton> |
||
74 | <Checkbutton name="SuperMacroButtonTemplate" inherits="SuperMacroFrameButtonTemplate" virtual="true"> |
||
75 | <Layers> |
||
76 | <Layer level="OVERLAY"> |
||
77 | <FontString name="$parentID" inherits="SuperMacroButtonFont"> |
||
78 | </FontString> |
||
79 | </Layer> |
||
80 | </Layers> |
||
81 | <Scripts> |
||
82 | <OnLoad> |
||
83 | this:RegisterForDrag("LeftButton"); |
||
84 | this:RegisterForClicks("LeftButtonUp", "RightButtonUp", "LeftButtonDown"); |
||
85 | </OnLoad> |
||
86 | <OnClick> |
||
87 | SuperMacroButton_OnClick(arg1); |
||
88 | </OnClick> |
||
89 | <OnDragStart> |
||
90 | PickupMacro(this:GetID()); |
||
91 | </OnDragStart> |
||
92 | </Scripts> |
||
93 | </Checkbutton> |
||
94 | <Checkbutton name="SuperMacroSuperButtonTemplate" inherits="SuperMacroFrameButtonTemplate" virtual="true"> |
||
95 | <Layers> |
||
96 | <Layer level="OVERLAY"> |
||
97 | <FontString name="$parentID" inherits="SuperMacroButtonFont"> |
||
98 | </FontString> |
||
99 | </Layer> |
||
100 | </Layers> |
||
101 | <Scripts> |
||
102 | <OnLoad> |
||
103 | this:RegisterForDrag("LeftButton"); |
||
104 | this:RegisterForClicks("LeftButtonUp", "RightButtonUp", "LeftButtonDown"); |
||
105 | </OnLoad> |
||
106 | <OnClick> |
||
107 | SuperMacroSuperButton_OnClick(arg1); |
||
108 | </OnClick> |
||
109 | <OnDragStart> |
||
110 | local supername=GetOrderedSuperMacroInfo(this:GetID()); |
||
111 | PickupMacro(1,supername); |
||
112 | </OnDragStart> |
||
113 | </Scripts> |
||
114 | </Checkbutton> |
||
115 | <CheckButton name="SuperMacroPopupButtonTemplate" inherits="SuperMacroFrameButtonTemplate" virtual="true"> |
||
116 | <Scripts> |
||
117 | <OnClick> |
||
118 | SuperMacroPopupButton_OnClick(); |
||
119 | </OnClick> |
||
120 | </Scripts> |
||
121 | </CheckButton> |
||
122 | <Button name="SuperMacroFrameTabTemplate" inherits="CharacterFrameTabButtonTemplate" virtual="true"> |
||
123 | <Scripts> |
||
124 | <OnClick> |
||
125 | PanelTemplates_Tab_OnClick(SuperMacroFrame); |
||
126 | SuperMacroFrame.textChanged = 1; |
||
127 | SuperMacroFrame_OnShow(); |
||
128 | </OnClick> |
||
129 | </Scripts> |
||
130 | </Button> |
||
131 | <Frame name="SuperMacroFrame" toplevel="true" movable="true" parent="UIParent" enableMouse="true" hidden="true" strata="HIGH"> |
||
132 | <Size> |
||
133 | <AbsDimension x="590" y="512"/> |
||
134 | </Size> |
||
135 | <Anchors> |
||
136 | <Anchor point="TOPLEFT"> |
||
137 | <Offset> |
||
138 | <AbsDimension x="0" y="-104"/> |
||
139 | </Offset> |
||
140 | </Anchor> |
||
141 | </Anchors> |
||
142 | <HitRectInsets> |
||
143 | <AbsInset left="12" right="40" top="12" bottom="71"/> |
||
144 | </HitRectInsets> |
||
145 | <Layers> |
||
146 | <Layer level="BACKGROUND"> |
||
147 | <Texture name="SuperMacroFramePortrait" file="Interface\Icons\Ability_Ambush"> |
||
148 | <Size> |
||
149 | <AbsDimension x="60" y="60"/> |
||
150 | </Size> |
||
151 | <Anchors> |
||
152 | <Anchor point="TOPLEFT"> |
||
153 | <Offset> |
||
154 | <AbsDimension x="7" y="-6"/> |
||
155 | </Offset> |
||
156 | </Anchor> |
||
157 | </Anchors> |
||
158 | <Gradient orientation="HORIZONTAL"> |
||
159 | <MinColor r="0" g="0" b="0"/> |
||
160 | <MaxColor r="1" g="1" b="1"/> |
||
161 | </Gradient> |
||
162 | </Texture> |
||
163 | </Layer> |
||
164 | <Layer level="BORDER"> |
||
165 | <Texture file="Interface\PaperDollInfoFrame\UI-Character-General-TopLeft"> |
||
166 | <Size> |
||
167 | <AbsDimension x="256" y="256"/> |
||
168 | </Size> |
||
169 | <Anchors> |
||
170 | <Anchor point="TOPLEFT"/> |
||
171 | </Anchors> |
||
172 | </Texture> |
||
173 | <Texture file="Interface\PaperDollInfoFrame\UI-Character-General-TopLeft"> |
||
174 | <Size> |
||
175 | <AbsDimension x="206" y="256"/> |
||
176 | </Size> |
||
177 | <Anchors> |
||
178 | <Anchor point="TOPLEFT"> |
||
179 | <Offset> |
||
180 | <AbsDimension x="256" y="0"/> |
||
181 | </Offset> |
||
182 | </Anchor> |
||
183 | </Anchors> |
||
184 | <TexCoords left="0.30" right="1.0" top="0" bottom="1.0"/> |
||
185 | </Texture> |
||
186 | <Texture file="Interface\PaperDollInfoFrame\UI-Character-General-TopRight"> |
||
187 | <Size> |
||
188 | <AbsDimension x="128" y="256"/> |
||
189 | </Size> |
||
190 | <Anchors> |
||
191 | <Anchor point="TOPRIGHT"/> |
||
192 | </Anchors> |
||
193 | </Texture> |
||
194 | <Texture file="Interface\MacroFrame\MacroFrame-BotLeft"> |
||
195 | <Size> |
||
196 | <AbsDimension x="256" y="256"/> |
||
197 | </Size> |
||
198 | <Anchors> |
||
199 | <Anchor point="BOTTOMLEFT"/> |
||
200 | </Anchors> |
||
201 | </Texture> |
||
202 | <Texture file="Interface\MacroFrame\MacroFrame-BotLeft"> |
||
203 | <Size> |
||
204 | <AbsDimension x="206" y="256"/> |
||
205 | </Size> |
||
206 | <Anchors> |
||
207 | <Anchor point="BOTTOMLEFT"> |
||
208 | <Offset> |
||
209 | <AbsDimension x="256" y="0"/> |
||
210 | </Offset> |
||
211 | </Anchor> |
||
212 | </Anchors> |
||
213 | <TexCoords left="0.30" right="0.93" top="0" bottom="1.0"/> |
||
214 | </Texture> |
||
215 | <Texture file="Interface\MacroFrame\MacroFrame-BotRight"> |
||
216 | <Size> |
||
217 | <AbsDimension x="128" y="256"/> |
||
218 | </Size> |
||
219 | <Anchors> |
||
220 | <Anchor point="BOTTOMRIGHT"/> |
||
221 | </Anchors> |
||
222 | </Texture> |
||
223 | <FontString name="SuperMacroFrameTitle" inherits="GameFontNormal" text="SUPERMACRO_TITLE"> |
||
224 | <Anchors> |
||
225 | <Anchor point="TOP" relativeTo="SuperMacroFrame"> |
||
226 | <Offset> |
||
227 | <AbsDimension x="0" y="-17"/> |
||
228 | </Offset> |
||
229 | </Anchor> |
||
230 | </Anchors> |
||
231 | </FontString> |
||
232 | </Layer> |
||
233 | <Layer level="ARTWORK"> |
||
234 | <Texture name="SuperMacroFrameSelectedMacroBackground" file="Interface\Buttons\UI-EmptySlot"> |
||
235 | <Size> |
||
236 | <AbsDimension x="64" y="64"/> |
||
237 | </Size> |
||
238 | <Anchors> |
||
239 | <Anchor point="TOPLEFT"> |
||
240 | <Offset> |
||
241 | <AbsDimension x="16" y="-228"/> |
||
242 | </Offset> |
||
243 | </Anchor> |
||
244 | </Anchors> |
||
245 | </Texture> |
||
246 | <Texture name="SuperMacroHorizontalBarLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar"> |
||
247 | <Size> |
||
248 | <AbsDimension x="460" y="16"/> |
||
249 | </Size> |
||
250 | <Anchors> |
||
251 | <Anchor point="TOPLEFT"> |
||
252 | <Offset> |
||
253 | <AbsDimension x="15" y="-220"/> |
||
254 | </Offset> |
||
255 | </Anchor> |
||
256 | </Anchors> |
||
257 | <TexCoords left="0" right="1.0" top="0" bottom="0.25"/> |
||
258 | </Texture> |
||
259 | <Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar"> |
||
260 | <Size> |
||
261 | <AbsDimension x="75" y="16"/> |
||
262 | </Size> |
||
263 | <Anchors> |
||
264 | <Anchor point="LEFT" relativeTo="SuperMacroHorizontalBarLeft" relativePoint="RIGHT"> |
||
265 | <Offset> |
||
266 | <AbsDimension x="0" y="0"/> |
||
267 | </Offset> |
||
268 | </Anchor> |
||
269 | </Anchors> |
||
270 | <TexCoords left="0" right="0.29296875" top="0.25" bottom="0.5"/> |
||
271 | </Texture> |
||
272 | <FontString name="SuperMacroFrameSelectedMacroName" inherits="GameFontNormalLarge" justifyH="LEFT"> |
||
273 | <Size> |
||
274 | <AbsDimension x="256" y="16"/> |
||
275 | </Size> |
||
276 | <Anchors> |
||
277 | <Anchor point="TOPLEFT" relativeTo="SuperMacroFrameSelectedMacroBackground" relativePoint="TOPLEFT"> |
||
278 | <Offset> |
||
279 | <AbsDimension x="57" y="-5"/> |
||
280 | </Offset> |
||
281 | </Anchor> |
||
282 | </Anchors> |
||
283 | </FontString> |
||
284 | <FontString name="SuperMacroFrameEnterMacroText" inherits="GameFontHighlightSmall" text="ENTER_MACRO_LABEL"> |
||
285 | <Anchors> |
||
286 | <Anchor point="TOPLEFT" relativeTo="SuperMacroFrameSelectedMacroBackground" relativePoint="BOTTOMLEFT"> |
||
287 | <Offset> |
||
288 | <AbsDimension x="55" y="20"/> |
||
289 | </Offset> |
||
290 | </Anchor> |
||
291 | </Anchors> |
||
292 | </FontString> |
||
293 | <FontString name="SuperMacroFrameSelectedMacroName" inherits="SuperMacroButtonFont"> |
||
294 | <Anchors> |
||
295 | <Anchor point="TOPLEFT" relativeTo="SuperMacroFrameSelectedMacroBackground" relativePoint="TOPRIGHT"> |
||
296 | <Offset> |
||
297 | <AbsDimension x="-4" y="-13"/> |
||
298 | </Offset> |
||
299 | </Anchor> |
||
300 | </Anchors> |
||
301 | </FontString> |
||
302 | </Layer> |
||
303 | </Layers> |
||
304 | <Frames> |
||
305 | <Frame name="SuperMacroFrameRegularFrame" setAllPoints="true"> |
||
306 | <Layers> |
||
307 | <Layer level="OVERLAY"> |
||
308 | <FontString name="SuperMacroFrameGeneralMacroText" inherits="GameFontNormal" justifyH="CENTER" text="GENERAL_MACROS" letters="255"> |
||
309 | <Size> |
||
310 | <AbsDimension x="256" y="16"/> |
||
311 | </Size> |
||
312 | <Anchors> |
||
313 | <Anchor point="CENTER" relativeTo="SuperMacroFrame" relativePoint="TOPLEFT"> |
||
314 | <Offset> |
||
315 | <AbsDimension x="162" y="-66"/> |
||
316 | </Offset> |
||
317 | </Anchor> |
||
318 | </Anchors> |
||
319 | </FontString> |
||
320 | <FontString name="SuperMacroFrameCharacterMacroText" inherits="GameFontNormal" justifyH="CENTER" text="CHARACTER_SPECIFIC_MACROS" letters="255"> |
||
321 | <Size> |
||
322 | <AbsDimension x="256" y="16"/> |
||
323 | </Size> |
||
324 | <Anchors> |
||
325 | <Anchor point="CENTER" relativeTo="SuperMacroFrame" relativePoint="TOPLEFT"> |
||
326 | <Offset> |
||
327 | <AbsDimension x="420" y="-66"/> |
||
328 | </Offset> |
||
329 | </Anchor> |
||
330 | </Anchors> |
||
331 | </FontString> |
||
332 | <FontString name="SuperMacroFrameCharLimitText" inherits="GameFontHighlightSmall"> |
||
333 | <Anchors> |
||
334 | <Anchor point="BOTTOMLEFT"> |
||
335 | <Offset> |
||
336 | <AbsDimension x="25" y="105"/> |
||
337 | </Offset> |
||
338 | </Anchor> |
||
339 | </Anchors> |
||
340 | </FontString> |
||
341 | </Layer> |
||
342 | </Layers> |
||
343 | <Frames> |
||
344 | <CheckButton name="SuperMacroFrameSelectedMacroButton" inherits="SuperMacroButtonTemplate" id="0"> |
||
345 | <Anchors> |
||
346 | <Anchor point="TOPLEFT" relativeTo="SuperMacroFrameSelectedMacroBackground"> |
||
347 | <Offset> |
||
348 | <AbsDimension x="14" y="-14"/> |
||
349 | </Offset> |
||
350 | </Anchor> |
||
351 | </Anchors> |
||
352 | <Scripts> |
||
353 | <OnClick> |
||
354 | this:SetChecked(nil); |
||
355 | local id = SuperMacroFrame.selectedMacro; |
||
356 | if ( arg1=="RightButton") then |
||
357 | RunMacro(id); |
||
358 | elseif ( id ) then |
||
359 | PickupMacro(id); |
||
360 | end |
||
361 | </OnClick> |
||
362 | </Scripts> |
||
363 | </CheckButton> |
||
364 | <CheckButton name="SuperMacroButton1" inherits="SuperMacroButtonTemplate" id="1"> |
||
365 | <Anchors> |
||
366 | <Anchor point="TOPLEFT"> |
||
367 | <Offset> |
||
368 | <AbsDimension x="25" y="-83"/> |
||
369 | </Offset> |
||
370 | </Anchor> |
||
371 | </Anchors> |
||
372 | </CheckButton> |
||
373 | <CheckButton name="SuperMacroButton2" inherits="SuperMacroButtonTemplate" id="2"> |
||
374 | <Anchors> |
||
375 | <Anchor point="LEFT" relativeTo="SuperMacroButton1" relativePoint="RIGHT"> |
||
376 | <Offset> |
||
377 | <AbsDimension x="5" y="0"/> |
||
378 | </Offset> |
||
379 | </Anchor> |
||
380 | </Anchors> |
||
381 | </CheckButton> |
||
382 | <CheckButton name="SuperMacroButton3" inherits="SuperMacroButtonTemplate" id="3"> |
||
383 | <Anchors> |
||
384 | <Anchor point="LEFT" relativeTo="SuperMacroButton2" relativePoint="RIGHT"> |
||
385 | <Offset> |
||
386 | <AbsDimension x="5" y="0"/> |
||
387 | </Offset> |
||
388 | </Anchor> |
||
389 | </Anchors> |
||
390 | </CheckButton> |
||
391 | <CheckButton name="SuperMacroButton4" inherits="SuperMacroButtonTemplate" id="4"> |
||
392 | <Anchors> |
||
393 | <Anchor point="LEFT" relativeTo="SuperMacroButton3" relativePoint="RIGHT"> |
||
394 | <Offset> |
||
395 | <AbsDimension x="5" y="0"/> |
||
396 | </Offset> |
||
397 | </Anchor> |
||
398 | </Anchors> |
||
399 | </CheckButton> |
||
400 | <CheckButton name="SuperMacroButton5" inherits="SuperMacroButtonTemplate" id="5"> |
||
401 | <Anchors> |
||
402 | <Anchor point="LEFT" relativeTo="SuperMacroButton4" relativePoint="RIGHT"> |
||
403 | <Offset> |
||
404 | <AbsDimension x="5" y="0"/> |
||
405 | </Offset> |
||
406 | </Anchor> |
||
407 | </Anchors> |
||
408 | </CheckButton> |
||
409 | <CheckButton name="SuperMacroButton6" inherits="SuperMacroButtonTemplate" id="6"> |
||
410 | <Anchors> |
||
411 | <Anchor point="LEFT" relativeTo="SuperMacroButton5" relativePoint="RIGHT"> |
||
412 | <Offset> |
||
413 | <AbsDimension x="5" y="0"/> |
||
414 | </Offset> |
||
415 | </Anchor> |
||
416 | </Anchors> |
||
417 | </CheckButton> |
||
418 | <CheckButton name="SuperMacroButton7" inherits="SuperMacroButtonTemplate" id="7"> |
||
419 | <Anchors> |
||
420 | <Anchor point="TOP" relativeTo="SuperMacroButton1" relativePoint="BOTTOM"> |
||
421 | <Offset> |
||
422 | <AbsDimension x="0" y="-10"/> |
||
423 | </Offset> |
||
424 | </Anchor> |
||
425 | </Anchors> |
||
426 | </CheckButton> |
||
427 | <CheckButton name="SuperMacroButton8" inherits="SuperMacroButtonTemplate" id="8"> |
||
428 | <Anchors> |
||
429 | <Anchor point="LEFT" relativeTo="SuperMacroButton7" relativePoint="RIGHT"> |
||
430 | <Offset> |
||
431 | <AbsDimension x="5" y="0"/> |
||
432 | </Offset> |
||
433 | </Anchor> |
||
434 | </Anchors> |
||
435 | </CheckButton> |
||
436 | <CheckButton name="SuperMacroButton9" inherits="SuperMacroButtonTemplate" id="9"> |
||
437 | <Anchors> |
||
438 | <Anchor point="LEFT" relativeTo="SuperMacroButton8" relativePoint="RIGHT"> |
||
439 | <Offset> |
||
440 | <AbsDimension x="5" y="0"/> |
||
441 | </Offset> |
||
442 | </Anchor> |
||
443 | </Anchors> |
||
444 | </CheckButton> |
||
445 | <CheckButton name="SuperMacroButton10" inherits="SuperMacroButtonTemplate" id="10"> |
||
446 | <Anchors> |
||
447 | <Anchor point="LEFT" relativeTo="SuperMacroButton9" relativePoint="RIGHT"> |
||
448 | <Offset> |
||
449 | <AbsDimension x="5" y="0"/> |
||
450 | </Offset> |
||
451 | </Anchor> |
||
452 | </Anchors> |
||
453 | </CheckButton> |
||
454 | <CheckButton name="SuperMacroButton11" inherits="SuperMacroButtonTemplate" id="11"> |
||
455 | <Anchors> |
||
456 | <Anchor point="LEFT" relativeTo="SuperMacroButton10" relativePoint="RIGHT"> |
||
457 | <Offset> |
||
458 | <AbsDimension x="5" y="0"/> |
||
459 | </Offset> |
||
460 | </Anchor> |
||
461 | </Anchors> |
||
462 | </CheckButton> |
||
463 | <CheckButton name="SuperMacroButton12" inherits="SuperMacroButtonTemplate" id="12"> |
||
464 | <Anchors> |
||
465 | <Anchor point="LEFT" relativeTo="SuperMacroButton11" relativePoint="RIGHT"> |
||
466 | <Offset> |
||
467 | <AbsDimension x="5" y="0"/> |
||
468 | </Offset> |
||
469 | </Anchor> |
||
470 | </Anchors> |
||
471 | </CheckButton> |
||
472 | <CheckButton name="SuperMacroButton13" inherits="SuperMacroButtonTemplate" id="13"> |
||
473 | <Anchors> |
||
474 | <Anchor point="TOP" relativeTo="SuperMacroButton7" relativePoint="BOTTOM"> |
||
475 | <Offset> |
||
476 | <AbsDimension x="0" y="-10"/> |
||
477 | </Offset> |
||
478 | </Anchor> |
||
479 | </Anchors> |
||
480 | </CheckButton> |
||
481 | <CheckButton name="SuperMacroButton14" inherits="SuperMacroButtonTemplate" id="14"> |
||
482 | <Anchors> |
||
483 | <Anchor point="LEFT" relativeTo="SuperMacroButton13" relativePoint="RIGHT"> |
||
484 | <Offset> |
||
485 | <AbsDimension x="5" y="0"/> |
||
486 | </Offset> |
||
487 | </Anchor> |
||
488 | </Anchors> |
||
489 | </CheckButton> |
||
490 | <CheckButton name="SuperMacroButton15" inherits="SuperMacroButtonTemplate" id="15"> |
||
491 | <Anchors> |
||
492 | <Anchor point="LEFT" relativeTo="SuperMacroButton14" relativePoint="RIGHT"> |
||
493 | <Offset> |
||
494 | <AbsDimension x="5" y="0"/> |
||
495 | </Offset> |
||
496 | </Anchor> |
||
497 | </Anchors> |
||
498 | </CheckButton> |
||
499 | <CheckButton name="SuperMacroButton16" inherits="SuperMacroButtonTemplate" id="16"> |
||
500 | <Anchors> |
||
501 | <Anchor point="LEFT" relativeTo="SuperMacroButton15" relativePoint="RIGHT"> |
||
502 | <Offset> |
||
503 | <AbsDimension x="5" y="0"/> |
||
504 | </Offset> |
||
505 | </Anchor> |
||
506 | </Anchors> |
||
507 | </CheckButton> |
||
508 | <CheckButton name="SuperMacroButton17" inherits="SuperMacroButtonTemplate" id="17"> |
||
509 | <Anchors> |
||
510 | <Anchor point="LEFT" relativeTo="SuperMacroButton16" relativePoint="RIGHT"> |
||
511 | <Offset> |
||
512 | <AbsDimension x="5" y="0"/> |
||
513 | </Offset> |
||
514 | </Anchor> |
||
515 | </Anchors> |
||
516 | </CheckButton> |
||
517 | <CheckButton name="SuperMacroButton18" inherits="SuperMacroButtonTemplate" id="18"> |
||
518 | <Anchors> |
||
519 | <Anchor point="LEFT" relativeTo="SuperMacroButton17" relativePoint="RIGHT"> |
||
520 | <Offset> |
||
521 | <AbsDimension x="5" y="0"/> |
||
522 | </Offset> |
||
523 | </Anchor> |
||
524 | </Anchors> |
||
525 | </CheckButton> |
||
526 | <CheckButton name="SuperMacroButton19" inherits="SuperMacroButtonTemplate" id="19"> |
||
527 | <Anchors> |
||
528 | <Anchor point="LEFT" relativeTo="SuperMacroButton6" relativePoint="RIGHT"> |
||
529 | <Offset> |
||
530 | <AbsDimension x="35" y="0"/> |
||
531 | </Offset> |
||
532 | </Anchor> |
||
533 | </Anchors> |
||
534 | </CheckButton> |
||
535 | <CheckButton name="SuperMacroButton20" inherits="SuperMacroButtonTemplate" id="20"> |
||
536 | <Anchors> |
||
537 | <Anchor point="LEFT" relativeTo="SuperMacroButton19" relativePoint="RIGHT"> |
||
538 | <Offset> |
||
539 | <AbsDimension x="5" y="0"/> |
||
540 | </Offset> |
||
541 | </Anchor> |
||
542 | </Anchors> |
||
543 | </CheckButton> |
||
544 | <CheckButton name="SuperMacroButton21" inherits="SuperMacroButtonTemplate" id="21"> |
||
545 | <Anchors> |
||
546 | <Anchor point="LEFT" relativeTo="SuperMacroButton20" relativePoint="RIGHT"> |
||
547 | <Offset> |
||
548 | <AbsDimension x="5" y="0"/> |
||
549 | </Offset> |
||
550 | </Anchor> |
||
551 | </Anchors> |
||
552 | </CheckButton> |
||
553 | <CheckButton name="SuperMacroButton22" inherits="SuperMacroButtonTemplate" id="22"> |
||
554 | <Anchors> |
||
555 | <Anchor point="LEFT" relativeTo="SuperMacroButton21" relativePoint="RIGHT"> |
||
556 | <Offset> |
||
557 | <AbsDimension x="5" y="0"/> |
||
558 | </Offset> |
||
559 | </Anchor> |
||
560 | </Anchors> |
||
561 | </CheckButton> |
||
562 | <CheckButton name="SuperMacroButton23" inherits="SuperMacroButtonTemplate" id="23"> |
||
563 | <Anchors> |
||
564 | <Anchor point="LEFT" relativeTo="SuperMacroButton22" relativePoint="RIGHT"> |
||
565 | <Offset> |
||
566 | <AbsDimension x="5" y="0"/> |
||
567 | </Offset> |
||
568 | </Anchor> |
||
569 | </Anchors> |
||
570 | </CheckButton> |
||
571 | <CheckButton name="SuperMacroButton24" inherits="SuperMacroButtonTemplate" id="24"> |
||
572 | <Anchors> |
||
573 | <Anchor point="LEFT" relativeTo="SuperMacroButton23" relativePoint="RIGHT"> |
||
574 | <Offset> |
||
575 | <AbsDimension x="5" y="0"/> |
||
576 | </Offset> |
||
577 | </Anchor> |
||
578 | </Anchors> |
||
579 | </CheckButton> |
||
580 | <CheckButton name="SuperMacroButton25" inherits="SuperMacroButtonTemplate" id="25"> |
||
581 | <Anchors> |
||
582 | <Anchor point="TOP" relativeTo="SuperMacroButton19" relativePoint="BOTTOM"> |
||
583 | <Offset> |
||
584 | <AbsDimension x="0" y="-10"/> |
||
585 | </Offset> |
||
586 | </Anchor> |
||
587 | </Anchors> |
||
588 | </CheckButton> |
||
589 | <CheckButton name="SuperMacroButton26" inherits="SuperMacroButtonTemplate" id="26"> |
||
590 | <Anchors> |
||
591 | <Anchor point="LEFT" relativeTo="SuperMacroButton25" relativePoint="RIGHT"> |
||
592 | <Offset> |
||
593 | <AbsDimension x="5" y="0"/> |
||
594 | </Offset> |
||
595 | </Anchor> |
||
596 | </Anchors> |
||
597 | </CheckButton> |
||
598 | <CheckButton name="SuperMacroButton27" inherits="SuperMacroButtonTemplate" id="27"> |
||
599 | <Anchors> |
||
600 | <Anchor point="LEFT" relativeTo="SuperMacroButton26" relativePoint="RIGHT"> |
||
601 | <Offset> |
||
602 | <AbsDimension x="5" y="0"/> |
||
603 | </Offset> |
||
604 | </Anchor> |
||
605 | </Anchors> |
||
606 | </CheckButton> |
||
607 | <CheckButton name="SuperMacroButton28" inherits="SuperMacroButtonTemplate" id="28"> |
||
608 | <Anchors> |
||
609 | <Anchor point="LEFT" relativeTo="SuperMacroButton27" relativePoint="RIGHT"> |
||
610 | <Offset> |
||
611 | <AbsDimension x="5" y="0"/> |
||
612 | </Offset> |
||
613 | </Anchor> |
||
614 | </Anchors> |
||
615 | </CheckButton> |
||
616 | <CheckButton name="SuperMacroButton29" inherits="SuperMacroButtonTemplate" id="29"> |
||
617 | <Anchors> |
||
618 | <Anchor point="LEFT" relativeTo="SuperMacroButton28" relativePoint="RIGHT"> |
||
619 | <Offset> |
||
620 | <AbsDimension x="5" y="0"/> |
||
621 | </Offset> |
||
622 | </Anchor> |
||
623 | </Anchors> |
||
624 | </CheckButton> |
||
625 | <CheckButton name="SuperMacroButton30" inherits="SuperMacroButtonTemplate" id="30"> |
||
626 | <Anchors> |
||
627 | <Anchor point="LEFT" relativeTo="SuperMacroButton29" relativePoint="RIGHT"> |
||
628 | <Offset> |
||
629 | <AbsDimension x="5" y="0"/> |
||
630 | </Offset> |
||
631 | </Anchor> |
||
632 | </Anchors> |
||
633 | </CheckButton> |
||
634 | <CheckButton name="SuperMacroButton31" inherits="SuperMacroButtonTemplate" id="31"> |
||
635 | <Anchors> |
||
636 | <Anchor point="TOP" relativeTo="SuperMacroButton25" relativePoint="BOTTOM"> |
||
637 | <Offset> |
||
638 | <AbsDimension x="0" y="-10"/> |
||
639 | </Offset> |
||
640 | </Anchor> |
||
641 | </Anchors> |
||
642 | </CheckButton> |
||
643 | <CheckButton name="SuperMacroButton32" inherits="SuperMacroButtonTemplate" id="32"> |
||
644 | <Anchors> |
||
645 | <Anchor point="LEFT" relativeTo="SuperMacroButton31" relativePoint="RIGHT"> |
||
646 | <Offset> |
||
647 | <AbsDimension x="5" y="0"/> |
||
648 | </Offset> |
||
649 | </Anchor> |
||
650 | </Anchors> |
||
651 | </CheckButton> |
||
652 | <CheckButton name="SuperMacroButton33" inherits="SuperMacroButtonTemplate" id="33"> |
||
653 | <Anchors> |
||
654 | <Anchor point="LEFT" relativeTo="SuperMacroButton32" relativePoint="RIGHT"> |
||
655 | <Offset> |
||
656 | <AbsDimension x="5" y="0"/> |
||
657 | </Offset> |
||
658 | </Anchor> |
||
659 | </Anchors> |
||
660 | </CheckButton> |
||
661 | <CheckButton name="SuperMacroButton34" inherits="SuperMacroButtonTemplate" id="34"> |
||
662 | <Anchors> |
||
663 | <Anchor point="LEFT" relativeTo="SuperMacroButton33" relativePoint="RIGHT"> |
||
664 | <Offset> |
||
665 | <AbsDimension x="5" y="0"/> |
||
666 | </Offset> |
||
667 | </Anchor> |
||
668 | </Anchors> |
||
669 | </CheckButton> |
||
670 | <CheckButton name="SuperMacroButton35" inherits="SuperMacroButtonTemplate" id="35"> |
||
671 | <Anchors> |
||
672 | <Anchor point="LEFT" relativeTo="SuperMacroButton34" relativePoint="RIGHT"> |
||
673 | <Offset> |
||
674 | <AbsDimension x="5" y="0"/> |
||
675 | </Offset> |
||
676 | </Anchor> |
||
677 | </Anchors> |
||
678 | </CheckButton> |
||
679 | <CheckButton name="SuperMacroButton36" inherits="SuperMacroButtonTemplate" id="36"> |
||
680 | <Anchors> |
||
681 | <Anchor point="LEFT" relativeTo="SuperMacroButton35" relativePoint="RIGHT"> |
||
682 | <Offset> |
||
683 | <AbsDimension x="5" y="0"/> |
||
684 | </Offset> |
||
685 | </Anchor> |
||
686 | </Anchors> |
||
687 | </CheckButton> |
||
688 | <ScrollFrame name="SuperMacroFrameScrollFrame" inherits="UIPanelScrollFrameTemplate"> |
||
689 | <Size> |
||
690 | <AbsDimension x="248" y="100"/> |
||
691 | </Size> |
||
692 | <Anchors> |
||
693 | <Anchor point="TOPLEFT" relativeTo="SuperMacroFrameSelectedMacroBackground" relativePoint="BOTTOMLEFT"> |
||
694 | <Offset> |
||
695 | <AbsDimension x="11" y="0"/> |
||
696 | </Offset> |
||
697 | </Anchor> |
||
698 | </Anchors> |
||
699 | <ScrollChild> |
||
700 | <EditBox name="SuperMacroFrameText" multiLine="true" letters="255" autoFocus="false" nonspacewrap="true"> |
||
701 | <Size> |
||
702 | <AbsDimension x="246" y="100"/> |
||
703 | </Size> |
||
704 | <Scripts> |
||
705 | <OnTextChanged> |
||
706 | SuperMacroFrame.textChanged = 1; |
||
707 | if ( SuperMacroPopupFrame.mode == "newaccount" or SuperMacroPopupFrame.mode == "newcharacter" ) then |
||
708 | SuperMacroPopupFrame:Hide(); |
||
709 | end |
||
710 | SuperMacroFrameCharLimitText:SetText(format(TEXT(MACROFRAME_CHAR_LIMIT), strlen(SuperMacroFrameText:GetText()))); |
||
711 | |||
712 | local scrollBar = getglobal(this:GetParent():GetName().."ScrollBar") |
||
713 | this:GetParent():UpdateScrollChildRect(); |
||
714 | local min; |
||
715 | local max; |
||
716 | min, max = scrollBar:GetMinMaxValues(); |
||
717 | if ( max > 0 and (this.max ~= max) ) then |
||
718 | this.max = max; |
||
719 | scrollBar:SetValue(max); |
||
720 | end |
||
721 | </OnTextChanged> |
||
722 | <OnEscapePressed> |
||
723 | SuperMacroFrame_SaveMacro(); |
||
724 | this:ClearFocus(); |
||
725 | </OnEscapePressed> |
||
726 | </Scripts> |
||
727 | <FontString inherits="GameFontHighlightSmall"/> |
||
728 | </EditBox> |
||
729 | </ScrollChild> |
||
730 | </ScrollFrame> |
||
731 | <Button name="SuperMacroFrameTextButton"> |
||
732 | <Size> |
||
733 | <AbsDimension x="246" y="100"/> |
||
734 | </Size> |
||
735 | <Anchors> |
||
736 | <Anchor point="TOPLEFT" relativeTo="SuperMacroFrameText"/> |
||
737 | </Anchors> |
||
738 | <Scripts> |
||
739 | <OnClick> |
||
740 | SuperMacroFrameText:SetFocus(); |
||
741 | </OnClick> |
||
742 | </Scripts> |
||
743 | </Button> |
||
744 | <Frame name="SuperMacroFrameTextBackground"> |
||
745 | <Size> |
||
746 | <AbsDimension x="285" y="112"/> |
||
747 | </Size> |
||
748 | <Anchors> |
||
749 | <Anchor point="TOPLEFT" relativeTo="SuperMacroFrame"> |
||
750 | <Offset> |
||
751 | <AbsDimension x="18" y="-285"/> |
||
752 | </Offset> |
||
753 | </Anchor> |
||
754 | </Anchors> |
||
755 | <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
756 | <EdgeSize> |
||
757 | <AbsValue val="16"/> |
||
758 | </EdgeSize> |
||
759 | <TileSize> |
||
760 | <AbsValue val="16"/> |
||
761 | </TileSize> |
||
762 | <BackgroundInsets> |
||
763 | <AbsInset left="5" right="5" top="5" bottom="5"/> |
||
764 | </BackgroundInsets> |
||
765 | </Backdrop> |
||
766 | <Scripts> |
||
767 | <OnLoad> |
||
768 | this:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b); |
||
769 | this:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b); |
||
770 | </OnLoad> |
||
771 | </Scripts> |
||
772 | </Frame> |
||
773 | <Button name="SuperMacroDeleteButton" inherits="UIPanelButtonGrayTemplate" text="DELETE"> |
||
774 | <Size> |
||
775 | <AbsDimension x="80" y="22"/> |
||
776 | </Size> |
||
777 | <Anchors> |
||
778 | <Anchor point="BOTTOMLEFT" relativeTo="SuperMacroFrame"> |
||
779 | <Offset> |
||
780 | <AbsDimension x="115" y="79"/> |
||
781 | </Offset> |
||
782 | </Anchor> |
||
783 | </Anchors> |
||
784 | <Scripts> |
||
785 | <OnClick> |
||
786 | SuperMacroDeleteButton_OnClick(); |
||
787 | </OnClick> |
||
788 | </Scripts> |
||
789 | </Button> |
||
790 | <Button name="SuperMacroSaveButton" inherits="UIPanelButtonTemplate" text="SAVE_MACRO"> |
||
791 | <Size> |
||
792 | <AbsDimension x="80" y="22"/> |
||
793 | </Size> |
||
794 | <Anchors> |
||
795 | <Anchor point="BOTTOMLEFT" relativeTo="SuperMacroFrame"> |
||
796 | <Offset> |
||
797 | <AbsDimension x="195" y="79"/> |
||
798 | </Offset> |
||
799 | </Anchor> |
||
800 | </Anchors> |
||
801 | <Scripts> |
||
802 | <OnClick> |
||
803 | SuperMacroFrame_SaveMacro(); |
||
804 | </OnClick> |
||
805 | </Scripts> |
||
806 | </Button> |
||
807 | <Button name="SuperMacroSaveExtendButton" inherits="UIPanelButtonTemplate" text="SAVE_EXTEND"> |
||
808 | <Size> |
||
809 | <AbsDimension x="100" y="22"/> |
||
810 | </Size> |
||
811 | <Anchors> |
||
812 | <Anchor point="CENTER" relativeTo="SuperMacroFrame" relativePoint="TOPRIGHT"> |
||
813 | <Offset> |
||
814 | <AbsDimension x="-170" y="-422"/> |
||
815 | </Offset> |
||
816 | </Anchor> |
||
817 | </Anchors> |
||
818 | <Scripts> |
||
819 | <OnClick> |
||
820 | SuperMacroSaveExtendButton_OnClick(); |
||
821 | </OnClick> |
||
822 | </Scripts> |
||
823 | </Button> |
||
824 | <Button name="SuperMacroDeleteExtendButton" inherits="UIPanelButtonGrayTemplate" text="DELETE_EXTEND"> |
||
825 | <Size> |
||
826 | <AbsDimension x="100" y="22"/> |
||
827 | </Size> |
||
828 | <Anchors> |
||
829 | <Anchor point="CENTER" relativeTo="SuperMacroFrame" relativePoint="TOPRIGHT"> |
||
830 | <Offset> |
||
831 | <AbsDimension x="-267" y="-422"/> |
||
832 | </Offset> |
||
833 | </Anchor> |
||
834 | </Anchors> |
||
835 | <Scripts> |
||
836 | <OnClick> |
||
837 | SuperMacroDeleteExtendButton_OnClick(); |
||
838 | </OnClick> |
||
839 | </Scripts> |
||
840 | </Button> |
||
841 | <Button name="SuperMacroNewAccountButton" inherits="UIPanelButtonTemplate" text="SUPERMACRO_NEW_ACCOUNT"> |
||
842 | <Size> |
||
843 | <AbsDimension x="160" y="22"/> |
||
844 | </Size> |
||
845 | <Anchors> |
||
846 | <Anchor point="TOPLEFT" relativeTo="SuperMacroFrame"> |
||
847 | <Offset> |
||
848 | <AbsDimension x="82" y="-37"/> |
||
849 | </Offset> |
||
850 | </Anchor> |
||
851 | </Anchors> |
||
852 | <Scripts> |
||
853 | <OnClick> |
||
854 | SuperMacroNewAccountButton_OnClick(); |
||
855 | </OnClick> |
||
856 | </Scripts> |
||
857 | </Button> |
||
858 | <Button name="SuperMacroNewCharacterButton" inherits="UIPanelButtonTemplate" text="SUPERMACRO_NEW_CHARACTER"> |
||
859 | <Size> |
||
860 | <AbsDimension x="160" y="22"/> |
||
861 | </Size> |
||
862 | <Anchors> |
||
863 | <Anchor point="TOPLEFT" relativeTo="SuperMacroFrame"> |
||
864 | <Offset> |
||
865 | <AbsDimension x="342" y="-37"/> |
||
866 | </Offset> |
||
867 | </Anchor> |
||
868 | </Anchors> |
||
869 | <Scripts> |
||
870 | <OnClick> |
||
871 | SuperMacroNewCharacterButton_OnClick(); |
||
872 | </OnClick> |
||
873 | </Scripts> |
||
874 | </Button> |
||
875 | <ScrollFrame name="SuperMacroFrameExtendScrollFrame" inherits="UIPanelScrollFrameTemplate"> |
||
876 | <Size> |
||
877 | <AbsDimension x="209" y="138"/> |
||
878 | </Size> |
||
879 | <Anchors> |
||
880 | <Anchor point="TOPLEFT" relativeTo="SuperMacroFrame"> |
||
881 | <Offset> |
||
882 | <AbsDimension x="308" y="-252"/> |
||
883 | </Offset> |
||
884 | </Anchor> |
||
885 | </Anchors> |
||
886 | <ScrollChild> |
||
887 | <EditBox name="SuperMacroFrameExtendText" multiLine="true" autoFocus="false" nonspacewrap="true"> |
||
888 | <Size> |
||
889 | <AbsDimension x="205" y="138"/> |
||
890 | </Size> |
||
891 | <Scripts> |
||
892 | <OnTextChanged> |
||
893 | SuperMacroFrame.extendChanged=1; |
||
894 | SuperMacroFrameExtendCharLimitText:SetText(format(TEXT(SUPERMACROFRAME_EXTEND_CHAR_LIMIT), strlen(SuperMacroFrameExtendText:GetText()))); |
||
895 | local scrollBar = getglobal(this:GetParent():GetName().."ScrollBar") |
||
896 | this:GetParent():UpdateScrollChildRect(); |
||
897 | local min; |
||
898 | local max; |
||
899 | min, max = scrollBar:GetMinMaxValues(); |
||
900 | if ( max > 0 and (this.max ~= max) ) then |
||
901 | this.max = max; |
||
902 | scrollBar:SetValue(max); |
||
903 | end |
||
904 | </OnTextChanged> |
||
905 | <OnEscapePressed> |
||
906 | this:ClearFocus(); |
||
907 | </OnEscapePressed> |
||
908 | <OnEditFocusGained> |
||
909 | |||
910 | </OnEditFocusGained> |
||
911 | <OnEditFocusLost> |
||
912 | |||
913 | </OnEditFocusLost> |
||
914 | </Scripts> |
||
915 | <FontString inherits="GameFontHighlightSmall"/> |
||
916 | </EditBox> |
||
917 | </ScrollChild> |
||
918 | </ScrollFrame> |
||
919 | <Button name="SuperMacroFrameExtendTextButton"> |
||
920 | <Size> |
||
921 | <AbsDimension x="226" y="138"/> |
||
922 | </Size> |
||
923 | <Anchors> |
||
924 | <Anchor point="TOPLEFT" relativeTo="SuperMacroFrameExtendText"/> |
||
925 | </Anchors> |
||
926 | <Scripts> |
||
927 | <OnClick> |
||
928 | SuperMacroFrameExtendText:SetFocus(); |
||
929 | </OnClick> |
||
930 | </Scripts> |
||
931 | </Button> |
||
932 | <Frame name="SuperMacroFrameExtendTextBackground"> |
||
933 | <Size> |
||
934 | <AbsDimension x="245" y="150"/> |
||
935 | </Size> |
||
936 | <Anchors> |
||
937 | <Anchor point="TOPLEFT" relativeTo="SuperMacroFrame"> |
||
938 | <Offset> |
||
939 | <AbsDimension x="300" y="-247"/> |
||
940 | </Offset> |
||
941 | </Anchor> |
||
942 | </Anchors> |
||
943 | <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
944 | <EdgeSize> |
||
945 | <AbsValue val="16"/> |
||
946 | </EdgeSize> |
||
947 | <TileSize> |
||
948 | <AbsValue val="16"/> |
||
949 | </TileSize> |
||
950 | <BackgroundInsets> |
||
951 | <AbsInset left="5" right="5" top="5" bottom="5"/> |
||
952 | </BackgroundInsets> |
||
953 | </Backdrop> |
||
954 | <Layers> |
||
955 | <Layer level="ARTWORK"> |
||
956 | <FontString name="SuperMacroFrameEnterExtendText" inherits="GameFontHighlightSmall" text="ENTER_EXTEND_LABEL"> |
||
957 | <Anchors> |
||
958 | <Anchor point="TOPLEFT"> |
||
959 | <Offset> |
||
960 | <AbsDimension x="8" y="13"/> |
||
961 | </Offset> |
||
962 | </Anchor> |
||
963 | </Anchors> |
||
964 | </FontString> |
||
965 | <FontString name="SuperMacroFrameExtendCharLimitText" inherits="GameFontHighlightSmall"> |
||
966 | <Anchors> |
||
967 | <Anchor point="BOTTOMLEFT"> |
||
968 | <Offset> |
||
969 | <AbsDimension x="8" y="-10"/> |
||
970 | </Offset> |
||
971 | </Anchor> |
||
972 | </Anchors> |
||
973 | </FontString> |
||
974 | </Layer> |
||
975 | </Layers> |
||
976 | <Scripts> |
||
977 | <OnLoad> |
||
978 | this:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b); |
||
979 | this:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b); |
||
980 | </OnLoad> |
||
981 | </Scripts> |
||
982 | </Frame> |
||
983 | </Frames> |
||
984 | </Frame> |
||
985 | <Frame name="SuperMacroFrameSuperFrame" setAllPoints="true"> |
||
986 | <Layers> |
||
987 | <Layer level="ARTWORK"> |
||
988 | <FontString name="SuperMacroFrameSuperCharLimitText" inherits="GameFontHighlightSmall"> |
||
989 | <Anchors> |
||
990 | <Anchor point="BOTTOMLEFT"> |
||
991 | <Offset> |
||
992 | <AbsDimension x="25" y="105"/> |
||
993 | </Offset> |
||
994 | </Anchor> |
||
995 | </Anchors> |
||
996 | </FontString> |
||
997 | </Layer> |
||
998 | </Layers> |
||
999 | <Frames> |
||
1000 | <CheckButton name="SuperMacroFrameSelectedMacroSuperButton" inherits="SuperMacroSuperButtonTemplate" id="0"> |
||
1001 | <Anchors> |
||
1002 | <Anchor point="TOPLEFT" relativeTo="SuperMacroFrameSelectedMacroBackground"> |
||
1003 | <Offset> |
||
1004 | <AbsDimension x="14" y="-14"/> |
||
1005 | </Offset> |
||
1006 | </Anchor> |
||
1007 | </Anchors> |
||
1008 | <Scripts> |
||
1009 | <OnClick> |
||
1010 | this:SetChecked(nil); |
||
1011 | local id = SuperMacroFrame.selectedSuper; |
||
1012 | if ( arg1=="RightButton") then |
||
1013 | RunSuperMacro(id); |
||
1014 | elseif ( id ) then |
||
1015 | local supername=GetOrderedSuperMacroInfo(id); |
||
1016 | PickupMacro(1,supername); |
||
1017 | end |
||
1018 | </OnClick> |
||
1019 | <OnDragStart> |
||
1020 | local supername=GetOrderedSuperMacroInfo(SuperMacroFrame.selectedSuper); |
||
1021 | if ( supername ) then |
||
1022 | PickupMacro(1,supername); |
||
1023 | end |
||
1024 | </OnDragStart> |
||
1025 | </Scripts> |
||
1026 | </CheckButton> |
||
1027 | <CheckButton name="SuperMacroSuperButton1" inherits="SuperMacroSuperButtonTemplate" id="1"> |
||
1028 | <Anchors> |
||
1029 | <Anchor point="TOPLEFT"> |
||
1030 | <Offset> |
||
1031 | <AbsDimension x="35" y="-83"/> |
||
1032 | </Offset> |
||
1033 | </Anchor> |
||
1034 | </Anchors> |
||
1035 | </CheckButton> |
||
1036 | <CheckButton name="SuperMacroSuperButton2" inherits="SuperMacroSuperButtonTemplate" id="2"> |
||
1037 | <Anchors> |
||
1038 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton1" relativePoint="RIGHT"> |
||
1039 | <Offset> |
||
1040 | <AbsDimension x="13" y="0"/> |
||
1041 | </Offset> |
||
1042 | </Anchor> |
||
1043 | </Anchors> |
||
1044 | </CheckButton> |
||
1045 | <CheckButton name="SuperMacroSuperButton3" inherits="SuperMacroSuperButtonTemplate" id="3"> |
||
1046 | <Anchors> |
||
1047 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton2" relativePoint="RIGHT"> |
||
1048 | <Offset> |
||
1049 | <AbsDimension x="13" y="0"/> |
||
1050 | </Offset> |
||
1051 | </Anchor> |
||
1052 | </Anchors> |
||
1053 | </CheckButton> |
||
1054 | <CheckButton name="SuperMacroSuperButton4" inherits="SuperMacroSuperButtonTemplate" id="4"> |
||
1055 | <Anchors> |
||
1056 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton3" relativePoint="RIGHT"> |
||
1057 | <Offset> |
||
1058 | <AbsDimension x="13" y="0"/> |
||
1059 | </Offset> |
||
1060 | </Anchor> |
||
1061 | </Anchors> |
||
1062 | </CheckButton> |
||
1063 | <CheckButton name="SuperMacroSuperButton5" inherits="SuperMacroSuperButtonTemplate" id="5"> |
||
1064 | <Anchors> |
||
1065 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton4" relativePoint="RIGHT"> |
||
1066 | <Offset> |
||
1067 | <AbsDimension x="13" y="0"/> |
||
1068 | </Offset> |
||
1069 | </Anchor> |
||
1070 | </Anchors> |
||
1071 | </CheckButton> |
||
1072 | <CheckButton name="SuperMacroSuperButton6" inherits="SuperMacroSuperButtonTemplate" id="6"> |
||
1073 | <Anchors> |
||
1074 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton5" relativePoint="RIGHT"> |
||
1075 | <Offset> |
||
1076 | <AbsDimension x="13" y="0"/> |
||
1077 | </Offset> |
||
1078 | </Anchor> |
||
1079 | </Anchors> |
||
1080 | </CheckButton> |
||
1081 | <CheckButton name="SuperMacroSuperButton7" inherits="SuperMacroSuperButtonTemplate" id="7"> |
||
1082 | <Anchors> |
||
1083 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton6" relativePoint="RIGHT"> |
||
1084 | <Offset> |
||
1085 | <AbsDimension x="13" y="0"/> |
||
1086 | </Offset> |
||
1087 | </Anchor> |
||
1088 | </Anchors> |
||
1089 | </CheckButton> |
||
1090 | <CheckButton name="SuperMacroSuperButton8" inherits="SuperMacroSuperButtonTemplate" id="8"> |
||
1091 | <Anchors> |
||
1092 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton7" relativePoint="RIGHT"> |
||
1093 | <Offset> |
||
1094 | <AbsDimension x="13" y="0"/> |
||
1095 | </Offset> |
||
1096 | </Anchor> |
||
1097 | </Anchors> |
||
1098 | </CheckButton> |
||
1099 | <CheckButton name="SuperMacroSuperButton9" inherits="SuperMacroSuperButtonTemplate" id="9"> |
||
1100 | <Anchors> |
||
1101 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton8" relativePoint="RIGHT"> |
||
1102 | <Offset> |
||
1103 | <AbsDimension x="13" y="0"/> |
||
1104 | </Offset> |
||
1105 | </Anchor> |
||
1106 | </Anchors> |
||
1107 | </CheckButton> |
||
1108 | <CheckButton name="SuperMacroSuperButton10" inherits="SuperMacroSuperButtonTemplate" id="10"> |
||
1109 | <Anchors> |
||
1110 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton9" relativePoint="RIGHT"> |
||
1111 | <Offset> |
||
1112 | <AbsDimension x="13" y="0"/> |
||
1113 | </Offset> |
||
1114 | </Anchor> |
||
1115 | </Anchors> |
||
1116 | </CheckButton> |
||
1117 | <CheckButton name="SuperMacroSuperButton11" inherits="SuperMacroSuperButtonTemplate" id="11"> |
||
1118 | <Anchors> |
||
1119 | <Anchor point="TOP" relativeTo="SuperMacroSuperButton1" relativePoint="BOTTOM"> |
||
1120 | <Offset> |
||
1121 | <AbsDimension x="0" y="-10"/> |
||
1122 | </Offset> |
||
1123 | </Anchor> |
||
1124 | </Anchors> |
||
1125 | </CheckButton> |
||
1126 | <CheckButton name="SuperMacroSuperButton12" inherits="SuperMacroSuperButtonTemplate" id="12"> |
||
1127 | <Anchors> |
||
1128 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton11" relativePoint="RIGHT"> |
||
1129 | <Offset> |
||
1130 | <AbsDimension x="13" y="0"/> |
||
1131 | </Offset> |
||
1132 | </Anchor> |
||
1133 | </Anchors> |
||
1134 | </CheckButton> |
||
1135 | <CheckButton name="SuperMacroSuperButton13" inherits="SuperMacroSuperButtonTemplate" id="13"> |
||
1136 | <Anchors> |
||
1137 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton12" relativePoint="RIGHT"> |
||
1138 | <Offset> |
||
1139 | <AbsDimension x="13" y="0"/> |
||
1140 | </Offset> |
||
1141 | </Anchor> |
||
1142 | </Anchors> |
||
1143 | </CheckButton> |
||
1144 | <CheckButton name="SuperMacroSuperButton14" inherits="SuperMacroSuperButtonTemplate" id="14"> |
||
1145 | <Anchors> |
||
1146 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton13" relativePoint="RIGHT"> |
||
1147 | <Offset> |
||
1148 | <AbsDimension x="13" y="0"/> |
||
1149 | </Offset> |
||
1150 | </Anchor> |
||
1151 | </Anchors> |
||
1152 | </CheckButton> |
||
1153 | <CheckButton name="SuperMacroSuperButton15" inherits="SuperMacroSuperButtonTemplate" id="15"> |
||
1154 | <Anchors> |
||
1155 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton14" relativePoint="RIGHT"> |
||
1156 | <Offset> |
||
1157 | <AbsDimension x="13" y="0"/> |
||
1158 | </Offset> |
||
1159 | </Anchor> |
||
1160 | </Anchors> |
||
1161 | </CheckButton> |
||
1162 | <CheckButton name="SuperMacroSuperButton16" inherits="SuperMacroSuperButtonTemplate" id="16"> |
||
1163 | <Anchors> |
||
1164 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton15" relativePoint="RIGHT"> |
||
1165 | <Offset> |
||
1166 | <AbsDimension x="13" y="0"/> |
||
1167 | </Offset> |
||
1168 | </Anchor> |
||
1169 | </Anchors> |
||
1170 | </CheckButton> |
||
1171 | <CheckButton name="SuperMacroSuperButton17" inherits="SuperMacroSuperButtonTemplate" id="17"> |
||
1172 | <Anchors> |
||
1173 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton16" relativePoint="RIGHT"> |
||
1174 | <Offset> |
||
1175 | <AbsDimension x="13" y="0"/> |
||
1176 | </Offset> |
||
1177 | </Anchor> |
||
1178 | </Anchors> |
||
1179 | </CheckButton> |
||
1180 | <CheckButton name="SuperMacroSuperButton18" inherits="SuperMacroSuperButtonTemplate" id="18"> |
||
1181 | <Anchors> |
||
1182 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton17" relativePoint="RIGHT"> |
||
1183 | <Offset> |
||
1184 | <AbsDimension x="13" y="0"/> |
||
1185 | </Offset> |
||
1186 | </Anchor> |
||
1187 | </Anchors> |
||
1188 | </CheckButton> |
||
1189 | <CheckButton name="SuperMacroSuperButton19" inherits="SuperMacroSuperButtonTemplate" id="19"> |
||
1190 | <Anchors> |
||
1191 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton18" relativePoint="RIGHT"> |
||
1192 | <Offset> |
||
1193 | <AbsDimension x="13" y="0"/> |
||
1194 | </Offset> |
||
1195 | </Anchor> |
||
1196 | </Anchors> |
||
1197 | </CheckButton> |
||
1198 | <CheckButton name="SuperMacroSuperButton20" inherits="SuperMacroSuperButtonTemplate" id="20"> |
||
1199 | <Anchors> |
||
1200 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton19" relativePoint="RIGHT"> |
||
1201 | <Offset> |
||
1202 | <AbsDimension x="13" y="0"/> |
||
1203 | </Offset> |
||
1204 | </Anchor> |
||
1205 | </Anchors> |
||
1206 | </CheckButton> |
||
1207 | <CheckButton name="SuperMacroSuperButton21" inherits="SuperMacroSuperButtonTemplate" id="21"> |
||
1208 | <Anchors> |
||
1209 | <Anchor point="TOP" relativeTo="SuperMacroSuperButton11" relativePoint="BOTTOM"> |
||
1210 | <Offset> |
||
1211 | <AbsDimension x="0" y="-10"/> |
||
1212 | </Offset> |
||
1213 | </Anchor> |
||
1214 | </Anchors> |
||
1215 | </CheckButton> |
||
1216 | <CheckButton name="SuperMacroSuperButton22" inherits="SuperMacroSuperButtonTemplate" id="22"> |
||
1217 | <Anchors> |
||
1218 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton21" relativePoint="RIGHT"> |
||
1219 | <Offset> |
||
1220 | <AbsDimension x="13" y="0"/> |
||
1221 | </Offset> |
||
1222 | </Anchor> |
||
1223 | </Anchors> |
||
1224 | </CheckButton> |
||
1225 | <CheckButton name="SuperMacroSuperButton23" inherits="SuperMacroSuperButtonTemplate" id="23"> |
||
1226 | <Anchors> |
||
1227 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton22" relativePoint="RIGHT"> |
||
1228 | <Offset> |
||
1229 | <AbsDimension x="13" y="0"/> |
||
1230 | </Offset> |
||
1231 | </Anchor> |
||
1232 | </Anchors> |
||
1233 | </CheckButton> |
||
1234 | <CheckButton name="SuperMacroSuperButton24" inherits="SuperMacroSuperButtonTemplate" id="24"> |
||
1235 | <Anchors> |
||
1236 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton23" relativePoint="RIGHT"> |
||
1237 | <Offset> |
||
1238 | <AbsDimension x="13" y="0"/> |
||
1239 | </Offset> |
||
1240 | </Anchor> |
||
1241 | </Anchors> |
||
1242 | </CheckButton> |
||
1243 | <CheckButton name="SuperMacroSuperButton25" inherits="SuperMacroSuperButtonTemplate" id="25"> |
||
1244 | <Anchors> |
||
1245 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton24" relativePoint="RIGHT"> |
||
1246 | <Offset> |
||
1247 | <AbsDimension x="13" y="0"/> |
||
1248 | </Offset> |
||
1249 | </Anchor> |
||
1250 | </Anchors> |
||
1251 | </CheckButton> |
||
1252 | <CheckButton name="SuperMacroSuperButton26" inherits="SuperMacroSuperButtonTemplate" id="26"> |
||
1253 | <Anchors> |
||
1254 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton25" relativePoint="RIGHT"> |
||
1255 | <Offset> |
||
1256 | <AbsDimension x="13" y="0"/> |
||
1257 | </Offset> |
||
1258 | </Anchor> |
||
1259 | </Anchors> |
||
1260 | </CheckButton> |
||
1261 | <CheckButton name="SuperMacroSuperButton27" inherits="SuperMacroSuperButtonTemplate" id="27"> |
||
1262 | <Anchors> |
||
1263 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton26" relativePoint="RIGHT"> |
||
1264 | <Offset> |
||
1265 | <AbsDimension x="13" y="0"/> |
||
1266 | </Offset> |
||
1267 | </Anchor> |
||
1268 | </Anchors> |
||
1269 | </CheckButton> |
||
1270 | <CheckButton name="SuperMacroSuperButton28" inherits="SuperMacroSuperButtonTemplate" id="28"> |
||
1271 | <Anchors> |
||
1272 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton27" relativePoint="RIGHT"> |
||
1273 | <Offset> |
||
1274 | <AbsDimension x="13" y="0"/> |
||
1275 | </Offset> |
||
1276 | </Anchor> |
||
1277 | </Anchors> |
||
1278 | </CheckButton> |
||
1279 | <CheckButton name="SuperMacroSuperButton29" inherits="SuperMacroSuperButtonTemplate" id="29"> |
||
1280 | <Anchors> |
||
1281 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton28" relativePoint="RIGHT"> |
||
1282 | <Offset> |
||
1283 | <AbsDimension x="13" y="0"/> |
||
1284 | </Offset> |
||
1285 | </Anchor> |
||
1286 | </Anchors> |
||
1287 | </CheckButton> |
||
1288 | <CheckButton name="SuperMacroSuperButton30" inherits="SuperMacroSuperButtonTemplate" id="30"> |
||
1289 | <Anchors> |
||
1290 | <Anchor point="LEFT" relativeTo="SuperMacroSuperButton29" relativePoint="RIGHT"> |
||
1291 | <Offset> |
||
1292 | <AbsDimension x="13" y="0"/> |
||
1293 | </Offset> |
||
1294 | </Anchor> |
||
1295 | </Anchors> |
||
1296 | </CheckButton> |
||
1297 | <ScrollFrame name="SuperMacroFrameSuperScrollFrame" inherits="FauxScrollFrameTemplate"> |
||
1298 | <Size> |
||
1299 | <AbsDimension x="500" y="150"/> |
||
1300 | </Size> |
||
1301 | <Anchors> |
||
1302 | <Anchor point="TOPRIGHT" relativeTo="SuperMacroFrame" relativePoint="TOPRIGHT"> |
||
1303 | <Offset> |
||
1304 | <AbsDimension x="-70" y="-74"/> |
||
1305 | </Offset> |
||
1306 | </Anchor> |
||
1307 | </Anchors> |
||
1308 | <Scripts> |
||
1309 | <OnVerticalScroll> |
||
1310 | FauxScrollFrame_OnVerticalScroll(MACRO_ROW_HEIGHT, SuperMacroFrame_Update); |
||
1311 | </OnVerticalScroll> |
||
1312 | <OnMouseWheel> |
||
1313 | ScrollFrameTemplate_OnMouseWheel(arg1); |
||
1314 | </OnMouseWheel> |
||
1315 | </Scripts> |
||
1316 | </ScrollFrame> |
||
1317 | <ScrollFrame name="SuperMacroFrameSuperEditScrollFrame" inherits="UIPanelScrollFrameTemplate"> |
||
1318 | <Size> |
||
1319 | <AbsDimension x="494" y="100"/> |
||
1320 | </Size> |
||
1321 | <Anchors> |
||
1322 | <Anchor point="TOPLEFT" relativeTo="SuperMacroFrameSelectedMacroBackground" relativePoint="BOTTOMLEFT"> |
||
1323 | <Offset> |
||
1324 | <AbsDimension x="11" y="0"/> |
||
1325 | </Offset> |
||
1326 | </Anchor> |
||
1327 | </Anchors> |
||
1328 | <ScrollChild> |
||
1329 | <EditBox name="SuperMacroFrameSuperText" multiLine="true" letters="7000" autoFocus="false" nonspacewrap="true"> |
||
1330 | <Size> |
||
1331 | <AbsDimension x="493" y="100"/> |
||
1332 | </Size> |
||
1333 | <Scripts> |
||
1334 | <OnTextChanged> |
||
1335 | SuperMacroFrame.textChanged = 1; |
||
1336 | if ( SuperMacroPopupFrame.mode == "newaccount" or SuperMacroPopupFrame.mode == "newcharacter" ) then |
||
1337 | SuperMacroPopupFrame:Hide(); |
||
1338 | end |
||
1339 | SuperMacroFrameSuperCharLimitText:SetText(format(TEXT(SUPERMACROFRAME_SUPER_CHAR_LIMIT), strlen(SuperMacroFrameSuperText:GetText()))); |
||
1340 | local scrollBar = getglobal(this:GetParent():GetName().."ScrollBar") |
||
1341 | this:GetParent():UpdateScrollChildRect(); |
||
1342 | local min; |
||
1343 | local max; |
||
1344 | min, max = scrollBar:GetMinMaxValues(); |
||
1345 | if ( max > 0 and (this.max ~= max) ) then |
||
1346 | this.max = max; |
||
1347 | scrollBar:SetValue(max); |
||
1348 | end |
||
1349 | SuperMacroFrame_SaveSuperMacro(); |
||
1350 | </OnTextChanged> |
||
1351 | <OnEscapePressed> |
||
1352 | SuperMacroFrame_SaveSuperMacro(); |
||
1353 | this:ClearFocus(); |
||
1354 | </OnEscapePressed> |
||
1355 | </Scripts> |
||
1356 | <FontString inherits="GameFontHighlightSmall"/> |
||
1357 | </EditBox> |
||
1358 | </ScrollChild> |
||
1359 | </ScrollFrame> |
||
1360 | <Frame name="SuperMacroFrameSuperTextBackground"> |
||
1361 | <Size> |
||
1362 | <AbsDimension x="530" y="112"/> |
||
1363 | </Size> |
||
1364 | <Anchors> |
||
1365 | <Anchor point="TOPLEFT" relativeTo="SuperMacroFrame"> |
||
1366 | <Offset> |
||
1367 | <AbsDimension x="18" y="-285"/> |
||
1368 | </Offset> |
||
1369 | </Anchor> |
||
1370 | </Anchors> |
||
1371 | <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
1372 | <EdgeSize> |
||
1373 | <AbsValue val="16"/> |
||
1374 | </EdgeSize> |
||
1375 | <TileSize> |
||
1376 | <AbsValue val="16"/> |
||
1377 | </TileSize> |
||
1378 | <BackgroundInsets> |
||
1379 | <AbsInset left="5" right="5" top="5" bottom="5"/> |
||
1380 | </BackgroundInsets> |
||
1381 | </Backdrop> |
||
1382 | <Scripts> |
||
1383 | <OnLoad> |
||
1384 | this:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b); |
||
1385 | this:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b); |
||
1386 | </OnLoad> |
||
1387 | </Scripts> |
||
1388 | </Frame> |
||
1389 | <Button name="SuperMacroSaveSuperButton" inherits="UIPanelButtonTemplate" text="SAVE_SUPERMACRO"> |
||
1390 | <Size> |
||
1391 | <AbsDimension x="100" y="22"/> |
||
1392 | </Size> |
||
1393 | <Anchors> |
||
1394 | <Anchor point="CENTER" relativeTo="SuperMacroFrame" relativePoint="TOPRIGHT"> |
||
1395 | <Offset> |
||
1396 | <AbsDimension x="-270" y="-422"/> |
||
1397 | </Offset> |
||
1398 | </Anchor> |
||
1399 | </Anchors> |
||
1400 | <Scripts> |
||
1401 | <OnClick> |
||
1402 | SuperMacroFrame_SaveSuperMacro(); |
||
1403 | </OnClick> |
||
1404 | </Scripts> |
||
1405 | </Button> |
||
1406 | <Button name="SuperMacroDeleteSuperButton" inherits="UIPanelButtonGrayTemplate" text="DELETE_SUPERMACRO"> |
||
1407 | <Size> |
||
1408 | <AbsDimension x="100" y="22"/> |
||
1409 | </Size> |
||
1410 | <Anchors> |
||
1411 | <Anchor point="CENTER" relativeTo="SuperMacroFrame" relativePoint="TOPRIGHT"> |
||
1412 | <Offset> |
||
1413 | <AbsDimension x="-370" y="-422"/> |
||
1414 | </Offset> |
||
1415 | </Anchor> |
||
1416 | </Anchors> |
||
1417 | <Scripts> |
||
1418 | <OnClick> |
||
1419 | SuperMacroDeleteSuperButton_OnClick(); |
||
1420 | </OnClick> |
||
1421 | </Scripts> |
||
1422 | </Button> |
||
1423 | <Button name="SuperMacroNewSuperButton" inherits="UIPanelButtonTemplate" text="NEW_SUPERMACRO"> |
||
1424 | <Size> |
||
1425 | <AbsDimension x="100" y="22"/> |
||
1426 | </Size> |
||
1427 | <Anchors> |
||
1428 | <Anchor point="CENTER" relativeTo="SuperMacroFrame" relativePoint="TOPRIGHT"> |
||
1429 | <Offset> |
||
1430 | <AbsDimension x="-170" y="-422"/> |
||
1431 | </Offset> |
||
1432 | </Anchor> |
||
1433 | </Anchors> |
||
1434 | <Scripts> |
||
1435 | <OnClick> |
||
1436 | SuperMacroNewSuperButton_OnClick(); |
||
1437 | </OnClick> |
||
1438 | </Scripts> |
||
1439 | </Button> |
||
1440 | </Frames> |
||
1441 | </Frame> |
||
1442 | <Button name="SuperMacroEditButton" inherits="UIPanelButtonTemplate" text="CHANGE_MACRO_NAME_ICON"> |
||
1443 | <Size> |
||
1444 | <AbsDimension x="170" y="22"/> |
||
1445 | </Size> |
||
1446 | <Anchors> |
||
1447 | <Anchor point="TOPLEFT" relativeTo="SuperMacroFrameSelectedMacroBackground"> |
||
1448 | <Offset> |
||
1449 | <AbsDimension x="51" y="-21"/> |
||
1450 | </Offset> |
||
1451 | </Anchor> |
||
1452 | </Anchors> |
||
1453 | <Scripts> |
||
1454 | <OnClick> |
||
1455 | SuperMacroEditButton_OnClick(); |
||
1456 | </OnClick> |
||
1457 | </Scripts> |
||
1458 | </Button> |
||
1459 | <Button name="SuperMacroOptionsButton" inherits="UIPanelButtonTemplate" text="SUPERMACRO_OPTIONS"> |
||
1460 | <Size> |
||
1461 | <AbsDimension x="100" y="22"/> |
||
1462 | </Size> |
||
1463 | <Anchors> |
||
1464 | <Anchor point="BOTTOMLEFT" relativeTo="SuperMacroFrame"> |
||
1465 | <Offset> |
||
1466 | <AbsDimension x="15" y="79"/> |
||
1467 | </Offset> |
||
1468 | </Anchor> |
||
1469 | </Anchors> |
||
1470 | <Scripts> |
||
1471 | <OnClick> |
||
1472 | SuperMacroOptionsButton_OnClick(); |
||
1473 | </OnClick> |
||
1474 | </Scripts> |
||
1475 | </Button> |
||
1476 | <Button name="SuperMacroExitButton" inherits="UIPanelButtonTemplate" text="EXIT"> |
||
1477 | <Size> |
||
1478 | <AbsDimension x="80" y="22"/> |
||
1479 | </Size> |
||
1480 | <Anchors> |
||
1481 | <Anchor point="CENTER" relativeTo="SuperMacroFrame" relativePoint="TOPRIGHT"> |
||
1482 | <Offset> |
||
1483 | <AbsDimension x="-80" y="-422"/> |
||
1484 | </Offset> |
||
1485 | </Anchor> |
||
1486 | </Anchors> |
||
1487 | <Scripts> |
||
1488 | <OnClick> |
||
1489 | HideUIPanel(this:GetParent()); |
||
1490 | </OnClick> |
||
1491 | </Scripts> |
||
1492 | </Button> |
||
1493 | <Button name="SuperMacroFrameCloseButton" inherits="UIPanelCloseButton"> |
||
1494 | <Anchors> |
||
1495 | <Anchor point="TOPRIGHT" relativeTo="SuperMacroFrame" relativePoint="TOPRIGHT"> |
||
1496 | <Offset> |
||
1497 | <AbsDimension x="-29" y="-8"/> |
||
1498 | </Offset> |
||
1499 | </Anchor> |
||
1500 | </Anchors> |
||
1501 | </Button> |
||
1502 | <Button name="SuperMacroFrameTab1" inherits="SuperMacroFrameTabTemplate" id="1" text="REGULAR"> |
||
1503 | <Anchors> |
||
1504 | <Anchor point="BOTTOMLEFT"> |
||
1505 | <Offset> |
||
1506 | <AbsDimension x="11" y="45"/> |
||
1507 | </Offset> |
||
1508 | </Anchor> |
||
1509 | </Anchors> |
||
1510 | <Scripts> |
||
1511 | <OnClick> |
||
1512 | PanelTemplates_Tab_OnClick(SuperMacroFrame); |
||
1513 | PanelTemplates_SetTab(SuperMacroFrame, 1); |
||
1514 | SM_VARS.tabShown="regular"; |
||
1515 | SuperMacroFrame_Update(); |
||
1516 | </OnClick> |
||
1517 | </Scripts> |
||
1518 | </Button> |
||
1519 | <Button name="SuperMacroFrameTab2" inherits="SuperMacroFrameTabTemplate" id="2" text="SUPER"> |
||
1520 | <Anchors> |
||
1521 | <Anchor point="LEFT" relativeTo="SuperMacroFrameTab1" relativePoint="RIGHT"> |
||
1522 | <Offset> |
||
1523 | <AbsDimension x="-14" y="0"/> |
||
1524 | </Offset> |
||
1525 | </Anchor> |
||
1526 | </Anchors> |
||
1527 | <Scripts> |
||
1528 | <OnClick> |
||
1529 | PanelTemplates_Tab_OnClick(SuperMacroFrame); |
||
1530 | PanelTemplates_SetTab(SuperMacroFrame, 2); |
||
1531 | SM_VARS.tabShown="super"; |
||
1532 | SuperMacroFrame_Update(); |
||
1533 | </OnClick> |
||
1534 | </Scripts> |
||
1535 | </Button> |
||
1536 | </Frames> |
||
1537 | <Scripts> |
||
1538 | <OnLoad> |
||
1539 | SuperMacroFrame_OnLoad(); |
||
1540 | </OnLoad> |
||
1541 | <OnShow> |
||
1542 | SuperMacroFrame_OnShow(); |
||
1543 | </OnShow> |
||
1544 | <OnHide> |
||
1545 | SuperMacroFrame_OnHide(); |
||
1546 | </OnHide> |
||
1547 | <OnEvent> |
||
1548 | SuperMacroFrame_OnEvent(event); |
||
1549 | </OnEvent> |
||
1550 | <OnMouseWheel> |
||
1551 | return; |
||
1552 | </OnMouseWheel> |
||
1553 | </Scripts> |
||
1554 | </Frame> |
||
1555 | <Frame name="SuperMacroPopupFrame" toplevel="true" parent="UIParent" movable="true" enableMouse="true" hidden="true"> |
||
1556 | <Size> |
||
1557 | <AbsDimension x="297" y="378"/> |
||
1558 | </Size> |
||
1559 | <Anchors> |
||
1560 | <Anchor point="TOPLEFT" relativeTo="SuperMacroFrame" relativePoint="TOPRIGHT"> |
||
1561 | <Offset> |
||
1562 | <AbsDimension x="-40" y="-40"/> |
||
1563 | </Offset> |
||
1564 | </Anchor> |
||
1565 | </Anchors> |
||
1566 | <Layers> |
||
1567 | <Layer level="BACKGROUND"> |
||
1568 | <Texture file="Interface\MacroFrame\MacroPopup-TopLeft"> |
||
1569 | <Size> |
||
1570 | <AbsDimension x="256" y="256"/> |
||
1571 | </Size> |
||
1572 | <Anchors> |
||
1573 | <Anchor point="TOPLEFT"/> |
||
1574 | </Anchors> |
||
1575 | </Texture> |
||
1576 | <Texture file="Interface\MacroFrame\MacroPopup-TopRight"> |
||
1577 | <Size> |
||
1578 | <AbsDimension x="64" y="256"/> |
||
1579 | </Size> |
||
1580 | <Anchors> |
||
1581 | <Anchor point="TOPLEFT"> |
||
1582 | <Offset> |
||
1583 | <AbsDimension x="256" y="0"/> |
||
1584 | </Offset> |
||
1585 | </Anchor> |
||
1586 | </Anchors> |
||
1587 | </Texture> |
||
1588 | <Texture file="Interface\MacroFrame\MacroPopup-TopLeft"> |
||
1589 | <Size> |
||
1590 | <AbsDimension x="256" y="100"/> |
||
1591 | </Size> |
||
1592 | <Anchors> |
||
1593 | <Anchor point="TOPLEFT"> |
||
1594 | <Offset> |
||
1595 | <AbsDimension x="0" y="-256"/> |
||
1596 | </Offset> |
||
1597 | </Anchor> |
||
1598 | </Anchors> |
||
1599 | <TexCoords left="0" right="1.0" top="0.5" bottom="0.6"/> |
||
1600 | </Texture> |
||
1601 | <Texture file="Interface\MacroFrame\MacroPopup-TopRight"> |
||
1602 | <Size> |
||
1603 | <AbsDimension x="64" y="100"/> |
||
1604 | </Size> |
||
1605 | <Anchors> |
||
1606 | <Anchor point="TOPLEFT"> |
||
1607 | <Offset> |
||
1608 | <AbsDimension x="256" y="-256"/> |
||
1609 | </Offset> |
||
1610 | </Anchor> |
||
1611 | </Anchors> |
||
1612 | <TexCoords left="0" right="1.0" top="0.5" bottom="0.6"/> |
||
1613 | </Texture> |
||
1614 | <Texture file="Interface\MacroFrame\MacroPopup-BotLeft"> |
||
1615 | <Size> |
||
1616 | <AbsDimension x="256" y="64"/> |
||
1617 | </Size> |
||
1618 | <Anchors> |
||
1619 | <Anchor point="BOTTOMLEFT"> |
||
1620 | <Offset> |
||
1621 | <AbsDimension x="0" y="-36"/> |
||
1622 | </Offset> |
||
1623 | </Anchor> |
||
1624 | </Anchors> |
||
1625 | </Texture> |
||
1626 | <Texture file="Interface\MacroFrame\MacroPopup-BotRight"> |
||
1627 | <Size> |
||
1628 | <AbsDimension x="64" y="64"/> |
||
1629 | </Size> |
||
1630 | <Anchors> |
||
1631 | <Anchor point="BOTTOMRIGHT"> |
||
1632 | <Offset> |
||
1633 | <AbsDimension x="23" y="-36"/> |
||
1634 | </Offset> |
||
1635 | </Anchor> |
||
1636 | </Anchors> |
||
1637 | </Texture> |
||
1638 | <FontString inherits="GameFontHighlightSmall" text="MACRO_POPUP_TEXT"> |
||
1639 | <Anchors> |
||
1640 | <Anchor point="TOPLEFT"> |
||
1641 | <Offset> |
||
1642 | <AbsDimension x="24" y="-21"/> |
||
1643 | </Offset> |
||
1644 | </Anchor> |
||
1645 | </Anchors> |
||
1646 | </FontString> |
||
1647 | <FontString inherits="GameFontHighlightSmall" text="MACRO_POPUP_CHOOSE_ICON"> |
||
1648 | <Anchors> |
||
1649 | <Anchor point="TOPLEFT"> |
||
1650 | <Offset> |
||
1651 | <AbsDimension x="24" y="-69"/> |
||
1652 | </Offset> |
||
1653 | </Anchor> |
||
1654 | </Anchors> |
||
1655 | </FontString> |
||
1656 | </Layer> |
||
1657 | </Layers> |
||
1658 | <Frames> |
||
1659 | <EditBox name="SuperMacroPopupEditBox" letters="16" historyLines="0"> |
||
1660 | <Size> |
||
1661 | <AbsDimension x="200" y="20"/> |
||
1662 | </Size> |
||
1663 | <Anchors> |
||
1664 | <Anchor point="TOPLEFT"> |
||
1665 | <Offset> |
||
1666 | <AbsDimension x="29" y="-35"/> |
||
1667 | </Offset> |
||
1668 | </Anchor> |
||
1669 | </Anchors> |
||
1670 | <Layers> |
||
1671 | <Layer level="BACKGROUND"> |
||
1672 | <Texture name="SuperMacroPopupNameLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder"> |
||
1673 | <Size> |
||
1674 | <AbsDimension x="12" y="29"/> |
||
1675 | </Size> |
||
1676 | <Anchors> |
||
1677 | <Anchor point="TOPLEFT"> |
||
1678 | <Offset> |
||
1679 | <AbsDimension x="-11" y="0"/> |
||
1680 | </Offset> |
||
1681 | </Anchor> |
||
1682 | </Anchors> |
||
1683 | <TexCoords left="0" right="0.09375" top="0" bottom="1.0"/> |
||
1684 | </Texture> |
||
1685 | <Texture name="SuperMacroPopupNameMiddle" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder"> |
||
1686 | <Size> |
||
1687 | <AbsDimension x="175" y="29"/> |
||
1688 | </Size> |
||
1689 | <Anchors> |
||
1690 | <Anchor point="LEFT" relativeTo="SuperMacroPopupNameLeft" relativePoint="RIGHT"/> |
||
1691 | </Anchors> |
||
1692 | <TexCoords left="0.09375" right="0.90625" top="0" bottom="1.0"/> |
||
1693 | </Texture> |
||
1694 | <Texture name="SuperMacroPopupNameRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder"> |
||
1695 | <Size> |
||
1696 | <AbsDimension x="12" y="29"/> |
||
1697 | </Size> |
||
1698 | <Anchors> |
||
1699 | <Anchor point="LEFT" relativeTo="SuperMacroPopupNameMiddle" relativePoint="RIGHT"/> |
||
1700 | </Anchors> |
||
1701 | <TexCoords left="0.90625" right="1.0" top="0" bottom="1.0"/> |
||
1702 | </Texture> |
||
1703 | </Layer> |
||
1704 | </Layers> |
||
1705 | <Scripts> |
||
1706 | <OnTextChanged> |
||
1707 | SuperMacroPopupOkayButton_Update(); |
||
1708 | SuperMacroFrameSelectedMacroName:SetText(this:GetText()); |
||
1709 | </OnTextChanged> |
||
1710 | <OnEscapePressed> |
||
1711 | SuperMacroPopupFrame:Hide(); |
||
1712 | </OnEscapePressed> |
||
1713 | <OnEnterPressed> |
||
1714 | if ( SuperMacroPopupOkayButton:IsEnabled() ~= 0 ) then |
||
1715 | SuperMacroPopupOkayButton_OnClick(); |
||
1716 | end |
||
1717 | </OnEnterPressed> |
||
1718 | </Scripts> |
||
1719 | <FontString inherits="ChatFontNormal"/> |
||
1720 | </EditBox> |
||
1721 | <ScrollFrame name="SuperMacroPopupScrollFrame" inherits="FauxScrollFrameTemplate"> |
||
1722 | <Size> |
||
1723 | <AbsDimension x="266" y="275"/> |
||
1724 | </Size> |
||
1725 | <Anchors> |
||
1726 | <Anchor point="TOPRIGHT" relativeTo="SuperMacroPopupFrame" relativePoint="TOPRIGHT"> |
||
1727 | <Offset> |
||
1728 | <AbsDimension x="-39" y="-67"/> |
||
1729 | </Offset> |
||
1730 | </Anchor> |
||
1731 | </Anchors> |
||
1732 | <Layers> |
||
1733 | <Layer level="BACKGROUND"> |
||
1734 | <Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-ScrollBar"> |
||
1735 | <Size> |
||
1736 | <AbsDimension x="30" y="120"/> |
||
1737 | </Size> |
||
1738 | <Anchors> |
||
1739 | <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> |
||
1740 | <Offset> |
||
1741 | <AbsDimension x="-3" y="2"/> |
||
1742 | </Offset> |
||
1743 | </Anchor> |
||
1744 | </Anchors> |
||
1745 | <TexCoords left="0" right="0.46875" top="0.0234375" bottom="0.9609375"/> |
||
1746 | </Texture> |
||
1747 | <Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-ScrollBar"> |
||
1748 | <Size> |
||
1749 | <AbsDimension x="30" y="37"/> |
||
1750 | </Size> |
||
1751 | <Anchors> |
||
1752 | <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> |
||
1753 | <Offset> |
||
1754 | <AbsDimension x="-3" y="-117"/> |
||
1755 | </Offset> |
||
1756 | </Anchor> |
||
1757 | </Anchors> |
||
1758 | <TexCoords left="0" right="0.46875" top="0.5" bottom="0.9"/> |
||
1759 | </Texture> |
||
1760 | <Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-ScrollBar"> |
||
1761 | <Size> |
||
1762 | <AbsDimension x="30" y="123"/> |
||
1763 | </Size> |
||
1764 | <Anchors> |
||
1765 | <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT"> |
||
1766 | <Offset> |
||
1767 | <AbsDimension x="-3" y="-2"/> |
||
1768 | </Offset> |
||
1769 | </Anchor> |
||
1770 | </Anchors> |
||
1771 | <TexCoords left="0.53125" right="1.0" top="0.03125" bottom="1.0"/> |
||
1772 | </Texture> |
||
1773 | </Layer> |
||
1774 | </Layers> |
||
1775 | <Scripts> |
||
1776 | <OnVerticalScroll> |
||
1777 | FauxScrollFrame_OnVerticalScroll(MACRO_ICON_ROW_HEIGHT, SuperMacroPopupFrame_Update); |
||
1778 | </OnVerticalScroll> |
||
1779 | </Scripts> |
||
1780 | </ScrollFrame> |
||
1781 | <CheckButton name="SuperMacroPopupButton1" inherits="SuperMacroPopupButtonTemplate" id="1"> |
||
1782 | <Anchors> |
||
1783 | <Anchor point="TOPLEFT"> |
||
1784 | <Offset> |
||
1785 | <AbsDimension x="24" y="-85"/> |
||
1786 | </Offset> |
||
1787 | </Anchor> |
||
1788 | </Anchors> |
||
1789 | </CheckButton> |
||
1790 | <CheckButton name="SuperMacroPopupButton2" inherits="SuperMacroPopupButtonTemplate" id="2"> |
||
1791 | <Anchors> |
||
1792 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton1" relativePoint="RIGHT"> |
||
1793 | <Offset> |
||
1794 | <AbsDimension x="10" y="0"/> |
||
1795 | </Offset> |
||
1796 | </Anchor> |
||
1797 | </Anchors> |
||
1798 | </CheckButton> |
||
1799 | <CheckButton name="SuperMacroPopupButton3" inherits="SuperMacroPopupButtonTemplate" id="3"> |
||
1800 | <Anchors> |
||
1801 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton2" relativePoint="RIGHT"> |
||
1802 | <Offset> |
||
1803 | <AbsDimension x="10" y="0"/> |
||
1804 | </Offset> |
||
1805 | </Anchor> |
||
1806 | </Anchors> |
||
1807 | </CheckButton> |
||
1808 | <CheckButton name="SuperMacroPopupButton4" inherits="SuperMacroPopupButtonTemplate" id="4"> |
||
1809 | <Anchors> |
||
1810 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton3" relativePoint="RIGHT"> |
||
1811 | <Offset> |
||
1812 | <AbsDimension x="10" y="0"/> |
||
1813 | </Offset> |
||
1814 | </Anchor> |
||
1815 | </Anchors> |
||
1816 | </CheckButton> |
||
1817 | <CheckButton name="SuperMacroPopupButton5" inherits="SuperMacroPopupButtonTemplate" id="5"> |
||
1818 | <Anchors> |
||
1819 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton4" relativePoint="RIGHT"> |
||
1820 | <Offset> |
||
1821 | <AbsDimension x="10" y="0"/> |
||
1822 | </Offset> |
||
1823 | </Anchor> |
||
1824 | </Anchors> |
||
1825 | </CheckButton> |
||
1826 | <CheckButton name="SuperMacroPopupButton6" inherits="SuperMacroPopupButtonTemplate" id="6"> |
||
1827 | <Anchors> |
||
1828 | <Anchor point="TOPLEFT" relativeTo="SuperMacroPopupButton1" relativePoint="BOTTOMLEFT"> |
||
1829 | <Offset> |
||
1830 | <AbsDimension x="0" y="-8"/> |
||
1831 | </Offset> |
||
1832 | </Anchor> |
||
1833 | </Anchors> |
||
1834 | </CheckButton> |
||
1835 | <CheckButton name="SuperMacroPopupButton7" inherits="SuperMacroPopupButtonTemplate" id="7"> |
||
1836 | <Anchors> |
||
1837 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton6" relativePoint="RIGHT"> |
||
1838 | <Offset> |
||
1839 | <AbsDimension x="10" y="0"/> |
||
1840 | </Offset> |
||
1841 | </Anchor> |
||
1842 | </Anchors> |
||
1843 | </CheckButton> |
||
1844 | <CheckButton name="SuperMacroPopupButton8" inherits="SuperMacroPopupButtonTemplate" id="8"> |
||
1845 | <Anchors> |
||
1846 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton7" relativePoint="RIGHT"> |
||
1847 | <Offset> |
||
1848 | <AbsDimension x="10" y="0"/> |
||
1849 | </Offset> |
||
1850 | </Anchor> |
||
1851 | </Anchors> |
||
1852 | </CheckButton> |
||
1853 | <CheckButton name="SuperMacroPopupButton9" inherits="SuperMacroPopupButtonTemplate" id="9"> |
||
1854 | <Anchors> |
||
1855 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton8" relativePoint="RIGHT"> |
||
1856 | <Offset> |
||
1857 | <AbsDimension x="10" y="0"/> |
||
1858 | </Offset> |
||
1859 | </Anchor> |
||
1860 | </Anchors> |
||
1861 | </CheckButton> |
||
1862 | <CheckButton name="SuperMacroPopupButton10" inherits="SuperMacroPopupButtonTemplate" id="10"> |
||
1863 | <Anchors> |
||
1864 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton9" relativePoint="RIGHT"> |
||
1865 | <Offset> |
||
1866 | <AbsDimension x="10" y="0"/> |
||
1867 | </Offset> |
||
1868 | </Anchor> |
||
1869 | </Anchors> |
||
1870 | </CheckButton> |
||
1871 | <CheckButton name="SuperMacroPopupButton11" inherits="SuperMacroPopupButtonTemplate" id="11"> |
||
1872 | <Anchors> |
||
1873 | <Anchor point="TOPLEFT" relativeTo="SuperMacroPopupButton6" relativePoint="BOTTOMLEFT"> |
||
1874 | <Offset> |
||
1875 | <AbsDimension x="0" y="-8"/> |
||
1876 | </Offset> |
||
1877 | </Anchor> |
||
1878 | </Anchors> |
||
1879 | </CheckButton> |
||
1880 | <CheckButton name="SuperMacroPopupButton12" inherits="SuperMacroPopupButtonTemplate" id="12"> |
||
1881 | <Anchors> |
||
1882 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton11" relativePoint="RIGHT"> |
||
1883 | <Offset> |
||
1884 | <AbsDimension x="10" y="0"/> |
||
1885 | </Offset> |
||
1886 | </Anchor> |
||
1887 | </Anchors> |
||
1888 | </CheckButton> |
||
1889 | <CheckButton name="SuperMacroPopupButton13" inherits="SuperMacroPopupButtonTemplate" id="13"> |
||
1890 | <Anchors> |
||
1891 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton12" relativePoint="RIGHT"> |
||
1892 | <Offset> |
||
1893 | <AbsDimension x="10" y="0"/> |
||
1894 | </Offset> |
||
1895 | </Anchor> |
||
1896 | </Anchors> |
||
1897 | </CheckButton> |
||
1898 | <CheckButton name="SuperMacroPopupButton14" inherits="SuperMacroPopupButtonTemplate" id="14"> |
||
1899 | <Anchors> |
||
1900 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton13" relativePoint="RIGHT"> |
||
1901 | <Offset> |
||
1902 | <AbsDimension x="10" y="0"/> |
||
1903 | </Offset> |
||
1904 | </Anchor> |
||
1905 | </Anchors> |
||
1906 | </CheckButton> |
||
1907 | <CheckButton name="SuperMacroPopupButton15" inherits="SuperMacroPopupButtonTemplate" id="15"> |
||
1908 | <Anchors> |
||
1909 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton14" relativePoint="RIGHT"> |
||
1910 | <Offset> |
||
1911 | <AbsDimension x="10" y="0"/> |
||
1912 | </Offset> |
||
1913 | </Anchor> |
||
1914 | </Anchors> |
||
1915 | </CheckButton> |
||
1916 | <CheckButton name="SuperMacroPopupButton16" inherits="SuperMacroPopupButtonTemplate" id="16"> |
||
1917 | <Anchors> |
||
1918 | <Anchor point="TOPLEFT" relativeTo="SuperMacroPopupButton11" relativePoint="BOTTOMLEFT"> |
||
1919 | <Offset> |
||
1920 | <AbsDimension x="0" y="-8"/> |
||
1921 | </Offset> |
||
1922 | </Anchor> |
||
1923 | </Anchors> |
||
1924 | </CheckButton> |
||
1925 | <CheckButton name="SuperMacroPopupButton17" inherits="SuperMacroPopupButtonTemplate" id="17"> |
||
1926 | <Anchors> |
||
1927 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton16" relativePoint="RIGHT"> |
||
1928 | <Offset> |
||
1929 | <AbsDimension x="10" y="0"/> |
||
1930 | </Offset> |
||
1931 | </Anchor> |
||
1932 | </Anchors> |
||
1933 | </CheckButton> |
||
1934 | <CheckButton name="SuperMacroPopupButton18" inherits="SuperMacroPopupButtonTemplate" id="18"> |
||
1935 | <Anchors> |
||
1936 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton17" relativePoint="RIGHT"> |
||
1937 | <Offset> |
||
1938 | <AbsDimension x="10" y="0"/> |
||
1939 | </Offset> |
||
1940 | </Anchor> |
||
1941 | </Anchors> |
||
1942 | </CheckButton> |
||
1943 | <CheckButton name="SuperMacroPopupButton19" inherits="SuperMacroPopupButtonTemplate" id="19"> |
||
1944 | <Anchors> |
||
1945 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton18" relativePoint="RIGHT"> |
||
1946 | <Offset> |
||
1947 | <AbsDimension x="10" y="0"/> |
||
1948 | </Offset> |
||
1949 | </Anchor> |
||
1950 | </Anchors> |
||
1951 | </CheckButton> |
||
1952 | <CheckButton name="SuperMacroPopupButton20" inherits="SuperMacroPopupButtonTemplate" id="20"> |
||
1953 | <Anchors> |
||
1954 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton19" relativePoint="RIGHT"> |
||
1955 | <Offset> |
||
1956 | <AbsDimension x="10" y="0"/> |
||
1957 | </Offset> |
||
1958 | </Anchor> |
||
1959 | </Anchors> |
||
1960 | </CheckButton> |
||
1961 | <CheckButton name="SuperMacroPopupButton20" inherits="SuperMacroPopupButtonTemplate" id="20"> |
||
1962 | <Anchors> |
||
1963 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton19" relativePoint="RIGHT"> |
||
1964 | <Offset> |
||
1965 | <AbsDimension x="10" y="0"/> |
||
1966 | </Offset> |
||
1967 | </Anchor> |
||
1968 | </Anchors> |
||
1969 | </CheckButton> |
||
1970 | <CheckButton name="SuperMacroPopupButton21" inherits="SuperMacroPopupButtonTemplate" id="21"> |
||
1971 | <Anchors> |
||
1972 | <Anchor point="TOPLEFT" relativeTo="SuperMacroPopupButton16" relativePoint="BOTTOMLEFT"> |
||
1973 | <Offset> |
||
1974 | <AbsDimension x="0" y="-8"/> |
||
1975 | </Offset> |
||
1976 | </Anchor> |
||
1977 | </Anchors> |
||
1978 | </CheckButton> |
||
1979 | <CheckButton name="SuperMacroPopupButton22" inherits="SuperMacroPopupButtonTemplate" id="22"> |
||
1980 | <Anchors> |
||
1981 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton21" relativePoint="RIGHT"> |
||
1982 | <Offset> |
||
1983 | <AbsDimension x="10" y="0"/> |
||
1984 | </Offset> |
||
1985 | </Anchor> |
||
1986 | </Anchors> |
||
1987 | </CheckButton> |
||
1988 | <CheckButton name="SuperMacroPopupButton23" inherits="SuperMacroPopupButtonTemplate" id="23"> |
||
1989 | <Anchors> |
||
1990 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton22" relativePoint="RIGHT"> |
||
1991 | <Offset> |
||
1992 | <AbsDimension x="10" y="0"/> |
||
1993 | </Offset> |
||
1994 | </Anchor> |
||
1995 | </Anchors> |
||
1996 | </CheckButton> |
||
1997 | <CheckButton name="SuperMacroPopupButton24" inherits="SuperMacroPopupButtonTemplate" id="24"> |
||
1998 | <Anchors> |
||
1999 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton23" relativePoint="RIGHT"> |
||
2000 | <Offset> |
||
2001 | <AbsDimension x="10" y="0"/> |
||
2002 | </Offset> |
||
2003 | </Anchor> |
||
2004 | </Anchors> |
||
2005 | </CheckButton> |
||
2006 | <CheckButton name="SuperMacroPopupButton25" inherits="SuperMacroPopupButtonTemplate" id="25"> |
||
2007 | <Anchors> |
||
2008 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton24" relativePoint="RIGHT"> |
||
2009 | <Offset> |
||
2010 | <AbsDimension x="10" y="0"/> |
||
2011 | </Offset> |
||
2012 | </Anchor> |
||
2013 | </Anchors> |
||
2014 | </CheckButton> |
||
2015 | <CheckButton name="SuperMacroPopupButton26" inherits="SuperMacroPopupButtonTemplate" id="26"> |
||
2016 | <Anchors> |
||
2017 | <Anchor point="TOPLEFT" relativeTo="SuperMacroPopupButton21" relativePoint="BOTTOMLEFT"> |
||
2018 | <Offset> |
||
2019 | <AbsDimension x="0" y="-8"/> |
||
2020 | </Offset> |
||
2021 | </Anchor> |
||
2022 | </Anchors> |
||
2023 | </CheckButton> |
||
2024 | <CheckButton name="SuperMacroPopupButton27" inherits="SuperMacroPopupButtonTemplate" id="27"> |
||
2025 | <Anchors> |
||
2026 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton26" relativePoint="RIGHT"> |
||
2027 | <Offset> |
||
2028 | <AbsDimension x="10" y="0"/> |
||
2029 | </Offset> |
||
2030 | </Anchor> |
||
2031 | </Anchors> |
||
2032 | </CheckButton> |
||
2033 | <CheckButton name="SuperMacroPopupButton28" inherits="SuperMacroPopupButtonTemplate" id="28"> |
||
2034 | <Anchors> |
||
2035 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton27" relativePoint="RIGHT"> |
||
2036 | <Offset> |
||
2037 | <AbsDimension x="10" y="0"/> |
||
2038 | </Offset> |
||
2039 | </Anchor> |
||
2040 | </Anchors> |
||
2041 | </CheckButton> |
||
2042 | <CheckButton name="SuperMacroPopupButton29" inherits="SuperMacroPopupButtonTemplate" id="29"> |
||
2043 | <Anchors> |
||
2044 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton28" relativePoint="RIGHT"> |
||
2045 | <Offset> |
||
2046 | <AbsDimension x="10" y="0"/> |
||
2047 | </Offset> |
||
2048 | </Anchor> |
||
2049 | </Anchors> |
||
2050 | </CheckButton> |
||
2051 | <CheckButton name="SuperMacroPopupButton30" inherits="SuperMacroPopupButtonTemplate" id="30"> |
||
2052 | <Anchors> |
||
2053 | <Anchor point="LEFT" relativeTo="SuperMacroPopupButton29" relativePoint="RIGHT"> |
||
2054 | <Offset> |
||
2055 | <AbsDimension x="10" y="0"/> |
||
2056 | </Offset> |
||
2057 | </Anchor> |
||
2058 | </Anchors> |
||
2059 | </CheckButton> |
||
2060 | <Button name="SuperMacroPopupCancelButton" inherits="UIPanelButtonTemplate" text="CANCEL"> |
||
2061 | <Size> |
||
2062 | <AbsDimension x="78" y="22"/> |
||
2063 | </Size> |
||
2064 | <Anchors> |
||
2065 | <Anchor point="BOTTOMRIGHT" relativeTo="SuperMacroPopupFrame"> |
||
2066 | <Offset> |
||
2067 | <AbsDimension x="-11" y="-1"/> |
||
2068 | </Offset> |
||
2069 | </Anchor> |
||
2070 | </Anchors> |
||
2071 | <Scripts> |
||
2072 | <OnClick> |
||
2073 | this:GetParent():Hide(); |
||
2074 | SuperMacroFrame_Update(); |
||
2075 | PlaySound("gsTitleOptionOK"); |
||
2076 | </OnClick> |
||
2077 | </Scripts> |
||
2078 | </Button> |
||
2079 | <Button name="SuperMacroPopupOkayButton" inherits="UIPanelButtonTemplate" text="OKAY"> |
||
2080 | <Size> |
||
2081 | <AbsDimension x="78" y="22"/> |
||
2082 | </Size> |
||
2083 | <Anchors> |
||
2084 | <Anchor point="RIGHT" relativeTo="SuperMacroPopupCancelButton" relativePoint="LEFT"> |
||
2085 | <Offset> |
||
2086 | <AbsDimension x="-2" y="0"/> |
||
2087 | </Offset> |
||
2088 | </Anchor> |
||
2089 | </Anchors> |
||
2090 | <Scripts> |
||
2091 | <OnClick> |
||
2092 | SuperMacroPopupOkayButton_OnClick(); |
||
2093 | PlaySound("gsTitleOptionOK"); |
||
2094 | </OnClick> |
||
2095 | </Scripts> |
||
2096 | </Button> |
||
2097 | </Frames> |
||
2098 | <Scripts> |
||
2099 | <OnShow> |
||
2100 | SuperMacroPopupFrame_OnShow(); |
||
2101 | </OnShow> |
||
2102 | <OnHide> |
||
2103 | SuperMacroPopupFrame_OnHide(); |
||
2104 | </OnHide> |
||
2105 | <OnMouseWheel> |
||
2106 | return; |
||
2107 | </OnMouseWheel> |
||
2108 | </Scripts> |
||
2109 | </Frame> |
||
2110 | <!-- |
||
2111 | <Button name="GameMenuButtonSuperMacro" inherits="GameMenuButtonTemplate" text="SUPERMACRO_TITLE" parent="GameMenuFrame"> |
||
2112 | <Anchors> |
||
2113 | <Anchor point="TOP" relativeTo="GameMenuButtonKeybindings" relativePoint="BOTTOM"> |
||
2114 | <Offset> |
||
2115 | <AbsDimension x="0" y="-1"/> |
||
2116 | </Offset> |
||
2117 | </Anchor> |
||
2118 | </Anchors> |
||
2119 | <Scripts> |
||
2120 | <OnLoad> |
||
2121 | GameMenuButtonMacros:ClearAllPoints(); |
||
2122 | GameMenuButtonMacros:SetPoint("TOP", this:GetName(), "BOTTOM", 0, -1); |
||
2123 | GameMenuFrame:SetHeight( GameMenuFrame:GetHeight() + button:GetHeight() + 2 ); |
||
2124 | </OnLoad> |
||
2125 | <OnClick> |
||
2126 | PlaySound("igMainMenuOption"); |
||
2127 | HideUIPanel(GameMenuFrame); |
||
2128 | ShowUIPanel(SuperMacroFrame); |
||
2129 | </OnClick> |
||
2130 | </Scripts> |
||
2131 | </Button> |
||
2132 | --> |
||
2133 | <Button name="GameMenuButtonSuperMacro" inherits="GameMenuButtonTemplate" text="SUPERMACRO_BUTTON" parent="GameMenuFrame"> |
||
2134 | <Size> |
||
2135 | <AbsDimension x="25" y="190"/> |
||
2136 | </Size> |
||
2137 | <Anchors> |
||
2138 | <Anchor point="TOPLEFT" relativeTo="GameMenuButtonOptions" relativePoint="TOPRIGHT"> |
||
2139 | <Offset> |
||
2140 | <AbsDimension x="0" y="0"/> |
||
2141 | </Offset> |
||
2142 | </Anchor> |
||
2143 | </Anchors> |
||
2144 | <Scripts> |
||
2145 | <OnClick> |
||
2146 | PlaySound("igMainMenuOption"); |
||
2147 | HideUIPanel(GameMenuFrame); |
||
2148 | ShowUIPanel(SuperMacroFrame); |
||
2149 | </OnClick> |
||
2150 | </Scripts> |
||
2151 | </Button> |
||
2152 | <Button name="SuperMacroMinimapButton" parent="Minimap" enableMouse="true" hidden="true" movable="true" toplevel="true"> |
||
2153 | <Size> |
||
2154 | <AbsDimension x="33" y="33"/> |
||
2155 | </Size> |
||
2156 | <Anchors> |
||
2157 | <Anchor point="BOTTOM" relativeTo="Minimap"> |
||
2158 | <Offset> |
||
2159 | <AbsDimension x="0" y="-30"/> |
||
2160 | </Offset> |
||
2161 | </Anchor> |
||
2162 | </Anchors> |
||
2163 | <Layers> |
||
2164 | <Layer level="ARTWORK"> |
||
2165 | <Texture name="SuperMacroMinimapButtonIcon" file="Interface\Icons\INV_Misc_Note_01.blp"> |
||
2166 | <Size> |
||
2167 | <AbsDimension x="18" y="18"/> |
||
2168 | </Size> |
||
2169 | <Anchors> |
||
2170 | <Anchor point="TOPLEFT"> |
||
2171 | <Offset> |
||
2172 | <AbsDimension x="7" y="-6"/> |
||
2173 | </Offset> |
||
2174 | </Anchor> |
||
2175 | </Anchors> |
||
2176 | </Texture> |
||
2177 | </Layer> |
||
2178 | <Layer level="OVERLAY"> |
||
2179 | <Texture name="SuperMacroMinimapButtonBorder" file="Interface\Minimap\MiniMap-TrackingBorder"> |
||
2180 | <Size> |
||
2181 | <AbsDimension x="52" y="52"/> |
||
2182 | </Size> |
||
2183 | <Anchors> |
||
2184 | <Anchor point="TOPLEFT"/> |
||
2185 | </Anchors> |
||
2186 | </Texture> |
||
2187 | </Layer> |
||
2188 | </Layers> |
||
2189 | <Scripts> |
||
2190 | <OnLoad> |
||
2191 | this:RegisterForDrag("LeftButton"); |
||
2192 | </OnLoad> |
||
2193 | <OnClick> |
||
2194 | if ( SuperMacroFrame:IsVisible() ) then |
||
2195 | HideUIPanel(SuperMacroFrame); |
||
2196 | else |
||
2197 | ShowUIPanel(SuperMacroFrame); |
||
2198 | end |
||
2199 | </OnClick> |
||
2200 | <OnEnter> |
||
2201 | GameTooltip:SetOwner(this, "ANCHOR_BOTTOMLEFT"); |
||
2202 | GameTooltip:SetText(SUPERMACRO_MINIMAP); |
||
2203 | </OnEnter> |
||
2204 | <OnLeave> |
||
2205 | GameTooltip:Hide(); |
||
2206 | </OnLeave> |
||
2207 | <OnDragStart> |
||
2208 | this:StartMoving(); |
||
2209 | this.isMoving = true; |
||
2210 | </OnDragStart> |
||
2211 | <OnDragStop> |
||
2212 | this:StopMovingOrSizing(); |
||
2213 | this.isMoving = false; |
||
2214 | </OnDragStop> |
||
2215 | </Scripts> |
||
2216 | <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/> |
||
2217 | </Button> |
||
2218 | <GameTooltip name="SM_Tooltip" frameStrata="TOOLTIP" hidden="true" parent="UIParent" inherits="GameTooltipTemplate"> |
||
2219 | <Scripts> |
||
2220 | <OnLoad> |
||
2221 | this:SetOwner(WorldFrame, "ANCHOR_NONE"); |
||
2222 | </OnLoad> |
||
2223 | </Scripts> |
||
2224 | </GameTooltip> |
||
2225 | <Frame name="SM_INFRAME"> |
||
2226 | <Scripts> |
||
2227 | <OnLoad> |
||
2228 | this.events={}; |
||
2229 | this.events.n=0; |
||
2230 | </OnLoad> |
||
2231 | <OnUpdate> |
||
2232 | SM_INFRAME_OnUpdate(); |
||
2233 | </OnUpdate> |
||
2234 | </Scripts> |
||
2235 | </Frame> |
||
2236 | </Ui> |