vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
2 C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
3 <Script file="MoveAnything.lua"/>
4 <Script file="MAPredefinedFrames.lua"/>
5  
6 <Button name="GameMenuButtonMoveAnything" parent = "GameMenuFrame" inherits="GameMenuButtonTemplate" text="MoveAnything!">
7 <Scripts>
8 <OnLoad>
9 GameMenu_AddButton( this );
10 </OnLoad>
11 <OnClick>
12 PlaySound("igMainMenuContinue");
13 HideUIPanel(GameMenuFrame);
14 MAOptions:Show();
15 </OnClick>
16 </Scripts>
17 </Button>
18 <Button name="ResizingButton" virtual="true">
19 <Size>
20 <AbsDimension x="8" y="8"/>
21 </Size>
22 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
23 <EdgeSize>
24 <AbsValue val="4"/>
25 </EdgeSize>
26 <TileSize>
27 <AbsValue val="8"/>
28 </TileSize>
29 <BackgroundInsets>
30 <AbsInset left="2" right="2" top="2" bottom="2"/>
31 </BackgroundInsets>
32 </Backdrop>
33 <Scripts>
34 <OnLoad>
35 local anchorto, anchor = MoveAnything_SizingAnchor( this );
36 this:SetPoint( anchor, this:GetParent():GetName(), anchorto, 0, 0 );
37 </OnLoad>
38 <OnShow>
39 this:SetFrameLevel(this:GetParent():GetFrameLevel()+2);
40 </OnShow>
41 <OnMouseDown>
42 if( arg1 == "RightButton" ) then
43 local t = getglobal( this:GetParent():GetName().."Backdrop" );
44 if( IsShiftKeyDown() ) then
45 if( t:IsVisible() ) then
46 t:Hide();
47 else
48 t:Show();
49 end
50 else
51 this:GetParent():StartMoving();
52 end
53 else
54 this:GetParent().MASizingAnchor = MoveAnything_SizingAnchor( this );
55 this:GetParent():StartSizing( MoveAnything_SizingAnchor( this ) );
56 end
57 </OnMouseDown>
58 <OnMouseUp>
59 this:GetParent():StopMovingOrSizing()
60 MoveAnything_UpdatePosition( this:GetParent() );
61 this:GetParent().MASizingAnchor = nil;
62 if( arg1 == "RightButton" and not IsShiftKeyDown() ) then
63 MoveAnything_StopMoving( this:GetParent().tagged:GetName() );
64 end
65 </OnMouseUp>
66 </Scripts>
67 </Button>
68  
69 <Frame name="MALocator" frameStrata="DIALOG" enableMouse="true" hidden="true" parent="UIParent" movable="true" resizable="true">
70 <Size>
71 <AbsDimension x="100" y="100"/>
72 </Size>
73 <ResizeBounds>
74 <minResize>
75 <AbsDimension x="8" y="8"/>
76 </minResize>
77 </ResizeBounds>
78 <Anchors>
79 <Anchor point="CENTER"/>
80 </Anchors>
81 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
82 <EdgeSize>
83 <AbsValue val="8"/>
84 </EdgeSize>
85 <TileSize>
86 <AbsValue val="16"/>
87 </TileSize>
88 <BackgroundInsets>
89 <AbsInset left="3" right="3" top="3" bottom="3"/>
90 </BackgroundInsets>
91 </Backdrop>
92 <Scripts>
93 <OnMouseDown>
94 if( arg1 == "LeftButton" ) then
95 this:StartMoving();
96 end
97 </OnMouseDown>
98 <OnMouseUp>
99 this:StopMovingOrSizing()
100 if( arg1 == "RightButton" ) then
101 if( IsShiftKeyDown() ) then
102 Print( "Locator left: "..this:GetLeft().." bottom: "..this:GetBottom()..
103 " width: "..this:GetWidth().." height: "..this:GetHeight() );
104 else
105 this:Hide();
106 end
107 end
108 </OnMouseUp>
109 </Scripts>
110 <Frames>
111 <Button name="$parentResize_TOP" inherits="ResizingButton"/>
112 <Button name="$parentResize_LEFT" inherits="ResizingButton"/>
113 <Button name="$parentResize_BOTTOM" inherits="ResizingButton"/>
114 <Button name="$parentResize_RIGHT" inherits="ResizingButton"/>
115 </Frames>
116 </Frame>
117  
118 <Frame name="MoveAnythingUpdater" parent="UIParent">
119 <Scripts>
120 <OnUpdate>
121 MoveAnythingUpdater_OnUpdate(arg1);
122 </OnUpdate>
123 </Scripts>
124 </Frame>
125 <Frame name="MoveAnythingTemplate" frameStrata="DIALOG" enableMouse="true" hidden="true" parent="UIParent" movable="true" resizable="true" virtual="true" setAllPoints="true">
126 <Size>
127 <AbsDimension x="100" y="100"/>
128 </Size>
129 <ResizeBounds>
130 <minResize>
131 <AbsDimension x="8" y="8"/>
132 </minResize>
133 </ResizeBounds>
134 <Anchors>
135 <Anchor point="BOTTOMLEFT"/>
136 </Anchors>
137 <Scripts>
138 <OnLoad>
139 getglobal( this:GetName().."Backdrop" ):SetBackdropColor(1,1,1,0.5);
140 getglobal( this:GetName().."Backdrop" ):SetBackdropBorderColor(1,1,1,0.5);
141 </OnLoad>
142 <OnMouseDown>
143 this:StartMoving();
144 </OnMouseDown>
145 <OnMouseUp>
146 this:StopMovingOrSizing()
147 MoveAnything_UpdatePosition( this );
148 if( arg1 == "RightButton" and this.tagged ) then
149 local t = getglobal( this:GetName().."Backdrop" );
150 if( IsShiftKeyDown() ) then
151 if( t:IsVisible() ) then
152 t:Hide();
153 else
154 t:Show();
155 end
156 else
157 MoveAnything_StopMoving( this.tagged:GetName() );
158 end
159 end
160 </OnMouseUp>
161 <OnSizeChanged>
162 MoveAnything_OnSizeChanged( this );
163 </OnSizeChanged>
164 <OnShow>
165 MA_MoverOnShow();
166 getglobal( this:GetName().."Backdrop" ):Show();
167 getglobal( this:GetName().."BackdropMovingFrameName" ):SetText( "Moving\n"..this.helpfulName );
168 if( MoveAnything_NoScale[ this.tagged:GetName() ] ) then
169 getglobal( this:GetName().."Resize_TOP" ):Hide();
170 getglobal( this:GetName().."Resize_LEFT" ):Hide();
171 getglobal( this:GetName().."Resize_BOTTOM" ):Hide();
172 getglobal( this:GetName().."Resize_RIGHT" ):Hide();
173 else
174 getglobal( this:GetName().."Resize_TOP" ):Show();
175 getglobal( this:GetName().."Resize_LEFT" ):Show();
176 getglobal( this:GetName().."Resize_BOTTOM" ):Show();
177 getglobal( this:GetName().."Resize_RIGHT" ):Show();
178 end
179 </OnShow>
180 <OnHide>
181 MA_MoverOnHide();
182 </OnHide>
183 </Scripts>
184 <Frames>
185 <Frame name="$parentBackdrop" setAllPoints="true" enableMouse="false">
186 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
187 <EdgeSize>
188 <AbsValue val="8"/>
189 </EdgeSize>
190 <TileSize>
191 <AbsValue val="16"/>
192 </TileSize>
193 <BackgroundInsets>
194 <AbsInset left="3" right="3" top="3" bottom="3"/>
195 </BackgroundInsets>
196 </Backdrop>
197 <Layers>
198 <Layer level="ARTWORK">
199 <FontString name="$parentMovingFrameName" inherits="GameFontNormal">
200 <Anchors>
201 <Anchor point="CENTER" />
202 </Anchors>
203 </FontString>
204 </Layer>
205 </Layers>
206 </Frame>
207 <Button name="$parentResize_TOP" inherits="ResizingButton"/>
208 <Button name="$parentResize_LEFT" inherits="ResizingButton"/>
209 <Button name="$parentResize_BOTTOM" inherits="ResizingButton"/>
210 <Button name="$parentResize_RIGHT" inherits="ResizingButton"/>
211 </Frames>
212 </Frame>
213 <Frame name="MoveAnything1" inherits="MoveAnythingTemplate" parent="UIParent" id="1"/>
214 <Frame name="MoveAnything2" inherits="MoveAnythingTemplate" parent="UIParent" id="2"/>
215 <Frame name="MoveAnything3" inherits="MoveAnythingTemplate" parent="UIParent" id="3"/>
216 <Frame name="MoveAnything4" inherits="MoveAnythingTemplate" parent="UIParent" id="4"/>
217 <Frame name="MoveAnything5" inherits="MoveAnythingTemplate" parent="UIParent" id="5"/>
218 <Frame name="MoveAnything6" inherits="MoveAnythingTemplate" parent="UIParent" id="6"/>
219 <Frame name="MoveAnything7" inherits="MoveAnythingTemplate" parent="UIParent" id="7"/>
220 <Frame name="MoveAnything8" inherits="MoveAnythingTemplate" parent="UIParent" id="8"/>
221 <Frame name="MoveAnything9" inherits="MoveAnythingTemplate" parent="UIParent" id="9"/>
222 <Frame name="MoveAnything10" inherits="MoveAnythingTemplate" parent="UIParent" id="10"/>
223 <Frame name="MoveAnything11" inherits="MoveAnythingTemplate" parent="UIParent" id="11"/>
224 <Frame name="MoveAnything12" inherits="MoveAnythingTemplate" parent="UIParent" id="12"/>
225 <Frame name="MoveAnything13" inherits="MoveAnythingTemplate" parent="UIParent" id="13"/>
226 <Frame name="MoveAnything14" inherits="MoveAnythingTemplate" parent="UIParent" id="14"/>
227 <Frame name="MoveAnything15" inherits="MoveAnythingTemplate" parent="UIParent" id="15"/>
228 <Frame name="MoveAnything16" inherits="MoveAnythingTemplate" parent="UIParent" id="16"/>
229 <Frame name="MoveAnything17" inherits="MoveAnythingTemplate" parent="UIParent" id="17"/>
230 <Frame name="MoveAnything18" inherits="MoveAnythingTemplate" parent="UIParent" id="18"/>
231 <Frame name="MoveAnything19" inherits="MoveAnythingTemplate" parent="UIParent" id="19"/>
232 <Frame name="MoveAnything20" inherits="MoveAnythingTemplate" parent="UIParent" id="20"/>
233  
234 <!-- Some frames to hook things that don't really exist, but that we want to be able to move, such as bag frames -->
235 <Frame name="MovableBagFrame" virtual="true" enableMouse="false">
236 <Size>
237 <AbsDimension x="1" y="1"/>
238 </Size>
239 <Scripts>
240 <OnLoad>
241 local CONTAINER_FRAME_TABLE = {
242 [0] = {"Interface\\ContainerFrame\\UI-BackpackBackground", 256, 256, 239},
243 [1] = {"Interface\\ContainerFrame\\UI-Bag-1x4", 256, 128, 96},
244 [2] = {"Interface\\ContainerFrame\\UI-Bag-1x4", 256, 128, 96},
245 [3] = {"Interface\\ContainerFrame\\UI-Bag-1x4", 256, 128, 96},
246 [4] = {"Interface\\ContainerFrame\\UI-Bag-1x4", 256, 128, 96},
247 [5] = {"Interface\\ContainerFrame\\UI-Bag-1x4+2", 256, 128, 116},
248 [6] = {"Interface\\ContainerFrame\\UI-Bag-1x4+2", 256, 128, 116},
249 [7] = {"Interface\\ContainerFrame\\UI-Bag-1x4+2", 256, 128, 116},
250 [8] = {"Interface\\ContainerFrame\\UI-Bag-2x4", 256, 256, 137},
251 [9] = {"Interface\\ContainerFrame\\UI-Bag-2x4+2", 256, 256, 157},
252 [10] = {"Interface\\ContainerFrame\\UI-Bag-2x4+2", 256, 256, 157},
253 [11] = {"Interface\\ContainerFrame\\UI-Bag-2x4+2", 256, 256, 157},
254 [12] = {"Interface\\ContainerFrame\\UI-Bag-3x4", 256, 256, 178},
255 [13] = {"Interface\\ContainerFrame\\UI-Bag-3x4+2", 256, 256, 198},
256 [14] = {"Interface\\ContainerFrame\\UI-Bag-3x4+2", 256, 256, 198},
257 [15] = {"Interface\\ContainerFrame\\UI-Bag-3x4+2", 256, 256, 198},
258 [16] = {"Interface\\ContainerFrame\\UI-Bag-4x4", 256, 256, 219},
259 [18] = {"Interface\\ContainerFrame\\UI-Bag-4x4+2", 256, 256, 239},
260 [20] = {"Interface\\ContainerFrame\\UI-Bag-5x4", 256, 256, 259},
261 };
262 MoveAnything_BagFrames[ this:GetID() ] = this;
263 this.OnBeginMove = function( this )
264 this.size = GetContainerNumSlots( this:GetID() );
265 if( this.size ~= 0 ) then
266 local frameSettings = CONTAINER_FRAME_TABLE[this.size];
267 if ( this:GetID() == 0 ) then
268 frameSettings = CONTAINER_FRAME_TABLE[0];
269 end
270 this:SetWidth(CONTAINER_WIDTH);
271 this:SetHeight(frameSettings[4]);
272 local container = MoveAnything_FindContainerFrame( this:GetID() );
273 if( container ) then
274 MoveAnything_RemoveContainerFromList( container );
275 MoveAnything_GrabContainerFrame( container, MoveAnything_BagFrames[ this:GetID() ] );
276 container:HiddenClearAllPoints();
277 container:HiddenSetPoint( "BOTTOMLEFT", this:GetName(), "BOTTOMLEFT", 0, 0 );
278 end
279 return true;
280 else
281 Print( "You must be at the bank to move bank bags", 1.0, 0.2, 0.2 );
282 return false;
283 end
284 end
285 this.OnMoveAnythingPreReset = function( this )
286 if( this.attachedChildren ) then
287 for i, v in this.attachedChildren do
288 v:ClearAllPoints();
289 v:Hide();
290 end
291 end
292 end
293  
294 --this:OnBeginMove();
295 this:ClearAllPoints();
296 local x,y;
297 x = -50 - (this:GetID() * 50);
298 y = 50 + (this:GetID() * 50);
299 this:SetPoint( "BOTTOMRIGHT", "UIParent", "BOTTOMRIGHT", x, y );
300 this:SetScale( UIParent:GetScale() );
301 </OnLoad>
302 </Scripts>
303 </Frame>
304 <Frame name="BagFrame1" inherits="MovableBagFrame" parent="UIParent" hidden="false" id="0"/>
305 <Frame name="BagFrame2" inherits="MovableBagFrame" parent="UIParent" hidden="false" id="1"/>
306 <Frame name="BagFrame3" inherits="MovableBagFrame" parent="UIParent" hidden="false" id="2"/>
307 <Frame name="BagFrame4" inherits="MovableBagFrame" parent="UIParent" hidden="false" id="3"/>
308 <Frame name="BagFrame5" inherits="MovableBagFrame" parent="UIParent" hidden="false" id="4"/>
309 <Frame name="BankBagFrame1" inherits="MovableBagFrame" parent="UIParent" hidden="false" id="5"/>
310 <Frame name="BankBagFrame2" inherits="MovableBagFrame" parent="UIParent" hidden="false" id="6"/>
311 <Frame name="BankBagFrame3" inherits="MovableBagFrame" parent="UIParent" hidden="false" id="7"/>
312 <Frame name="BankBagFrame4" inherits="MovableBagFrame" parent="UIParent" hidden="false" id="8"/>
313 <Frame name="BankBagFrame5" inherits="MovableBagFrame" parent="UIParent" hidden="false" id="9"/>
314 <Frame name="BankBagFrame6" inherits="MovableBagFrame" parent="UIParent" hidden="false" id="10"/>
315  
316 <Frame name="UIPanelMover1" parent="UIParent" hidden="false" enableMouse="false">
317 <Size>
318 <AbsDimension x="384" y="512"/>
319 </Size>
320 <Anchors>
321 <Anchor point="TOPLEFT">
322 <Offset>
323 <AbsDimension x="0" y="-104"/>
324 </Offset>
325 </Anchor>
326 </Anchors>
327 </Frame>
328  
329 <Frame name="UIPanelMover2" parent="UIParent" hidden="false" enableMouse="false">
330 <Size>
331 <AbsDimension x="384" y="512"/>
332 </Size>
333 <Anchors>
334 <Anchor point="TOPLEFT">
335 <Offset>
336 <AbsDimension x="384" y="-104"/>
337 </Offset>
338 </Anchor>
339 </Anchors>
340 </Frame>
341  
342 <Frame name="TooltipMover" parent="UIParent" hidden="false" enableMouse="false">
343 <Size>
344 <AbsDimension x="150" y="80"/>
345 </Size>
346 <Anchors>
347 <Anchor point="TOP"/>
348 </Anchors>
349 <Scripts>
350 <OnShow>
351 this:SetFrameLevel( GameTooltip:GetFrameLevel() + 1 );
352 </OnShow>
353 </Scripts>
354 </Frame>
355  
356 <Frame name="BagButtonsMover" parent="UIParent" hidden="true" enableMouse="false">
357 <Size>
358 <AbsDimension x="208" y="32"/>
359 </Size>
360 <Anchors>
361 <Anchor point="BOTTOMRIGHT" relativeTo = "MainMenuBarArtFrame">
362 <Offset>
363 <AbsDimension x="-6" y="2"/>
364 </Offset>
365 </Anchor>
366 </Anchors>
367 <Scripts>
368 <OnLoad>
369 this.OnMoveAnythingHook = function( this )
370 if( MoveAnything_IsFrameHooked( "BagButtonsVerticalMover" ) ) then
371 MoveAnything_ResetFrameOptions( "BagButtonsVerticalMover" );
372 end
373 MainMenuBarBackpackButton:ClearAllPoints();
374 MainMenuBarBackpackButton:SetPoint( "RIGHT", this:GetName(), "RIGHT", 0, 0 );
375 CharacterBag0Slot:ClearAllPoints();
376 CharacterBag0Slot:SetPoint( "RIGHT", "MainMenuBarBackpackButton", "LEFT", -2, 0 );
377 CharacterBag1Slot:ClearAllPoints();
378 CharacterBag1Slot:SetPoint( "RIGHT", "CharacterBag0Slot", "LEFT", -2, 0 );
379 CharacterBag2Slot:ClearAllPoints();
380 CharacterBag2Slot:SetPoint( "RIGHT", "CharacterBag1Slot", "LEFT", -2, 0 );
381 CharacterBag3Slot:ClearAllPoints();
382 CharacterBag3Slot:SetPoint( "RIGHT", "CharacterBag2Slot", "LEFT", -2, 0 );
383 this.attachedChildren = {};
384 table.insert( this.attachedChildren, getglobal( "MainMenuBarBackpackButton" ) );
385 for i = 0, 3, 1 do
386 table.insert( this.attachedChildren, getglobal( "CharacterBag"..i.."Slot" ) );
387 end
388 this:Show();
389 end
390 this.OnMoveAnythingPostReset = function( this )
391 MainMenuBarBackpackButton:ClearAllPoints();
392 MainMenuBarBackpackButton:SetPoint( "BOTTOMRIGHT", "MainMenuBarArtFrame", "BOTTOMRIGHT", -6, 2 );
393 CharacterBag0Slot:ClearAllPoints();
394 CharacterBag0Slot:SetPoint( "RIGHT", "MainMenuBarBackpackButton", "LEFT", -5, 0 );
395 CharacterBag1Slot:ClearAllPoints();
396 CharacterBag1Slot:SetPoint( "RIGHT", "CharacterBag0Slot", "LEFT", -5, 0 );
397 CharacterBag2Slot:ClearAllPoints();
398 CharacterBag2Slot:SetPoint( "RIGHT", "CharacterBag1Slot", "LEFT", -5, 0 );
399 CharacterBag3Slot:ClearAllPoints();
400 CharacterBag3Slot:SetPoint( "RIGHT", "CharacterBag2Slot", "LEFT", -5, 0 );
401 this:Hide();
402 end
403 </OnLoad>
404 </Scripts>
405 </Frame>
406 <Frame name="BagButtonsVerticalMover" parent="UIParent" hidden="true" enableMouse="false">
407 <Size>
408 <AbsDimension x="32" y="208"/>
409 </Size>
410 <Anchors>
411 <Anchor point="BOTTOMRIGHT" relativeTo = "MainMenuBarArtFrame">
412 <Offset>
413 <AbsDimension x="-6" y="2"/>
414 </Offset>
415 </Anchor>
416 </Anchors>
417 <Scripts>
418 <OnLoad>
419 this.OnMoveAnythingHook = function( this )
420 if( MoveAnything_IsFrameHooked( "BagButtonsMover" ) ) then
421 MoveAnything_ResetFrameOptions( "BagButtonsMover" );
422 end
423 MainMenuBarBackpackButton:ClearAllPoints();
424 MainMenuBarBackpackButton:SetPoint( "BOTTOM", this:GetName(), "BOTTOM", 0, 0 );
425 CharacterBag0Slot:ClearAllPoints();
426 CharacterBag0Slot:SetPoint( "BOTTOM", "MainMenuBarBackpackButton", "TOP", 0, 3 );
427 CharacterBag1Slot:ClearAllPoints();
428 CharacterBag1Slot:SetPoint( "BOTTOM", "CharacterBag0Slot", "TOP", 0, 3 );
429 CharacterBag2Slot:ClearAllPoints();
430 CharacterBag2Slot:SetPoint( "BOTTOM", "CharacterBag1Slot", "TOP", 0, 3 );
431 CharacterBag3Slot:ClearAllPoints();
432 CharacterBag3Slot:SetPoint( "BOTTOM", "CharacterBag2Slot", "TOP", 0, 3 );
433 this.attachedChildren = {};
434 table.insert( this.attachedChildren, getglobal( "MainMenuBarBackpackButton" ) );
435 for i = 0, 3, 1 do
436 table.insert( this.attachedChildren, getglobal( "CharacterBag"..i.."Slot" ) );
437 end
438 this:Show();
439 end
440 this.OnMoveAnythingPostReset = function( this )
441 MainMenuBarBackpackButton:ClearAllPoints();
442 MainMenuBarBackpackButton:SetPoint( "BOTTOMRIGHT", "MainMenuBarArtFrame", "BOTTOMRIGHT", -6, 2 );
443 CharacterBag0Slot:ClearAllPoints();
444 CharacterBag0Slot:SetPoint( "RIGHT", "MainMenuBarBackpackButton", "LEFT", -5, 0 );
445 CharacterBag1Slot:ClearAllPoints();
446 CharacterBag1Slot:SetPoint( "RIGHT", "CharacterBag0Slot", "LEFT", -5, 0 );
447 CharacterBag2Slot:ClearAllPoints();
448 CharacterBag2Slot:SetPoint( "RIGHT", "CharacterBag1Slot", "LEFT", -5, 0 );
449 CharacterBag3Slot:ClearAllPoints();
450 CharacterBag3Slot:SetPoint( "RIGHT", "CharacterBag2Slot", "LEFT", -5, 0 );
451 this:Hide();
452 end
453 </OnLoad>
454 </Scripts>
455 </Frame>
456  
457 <Frame name="MicroButtonsMover" parent="UIParent" hidden="true" enableMouse="false">
458 <Size>
459 <AbsDimension x="216" y="32"/>
460 </Size>
461 <Anchors>
462 <Anchor point="BOTTOMLEFT" relativeTo = "MainMenuBarArtFrame">
463 <Offset>
464 <AbsDimension x="546" y="2"/>
465 </Offset>
466 </Anchor>
467 </Anchors>
468 <Scripts>
469 <OnLoad>
470 this.OnMoveAnythingHook = function( this )
471 if( MoveAnything_IsFrameHooked( "MicroButtonsVerticalMover" ) ) then
472 MoveAnything_ResetFrameOptions( "MicroButtonsVerticalMover" );
473 end
474 local grab = { CharacterMicroButton, SpellbookMicroButton,
475 TalentMicroButton, QuestLogMicroButton,
476 SocialsMicroButton, WorldMapMicroButton,
477 MainMenuMicroButton, HelpMicroButton };
478 this.attachedChildren = {};
479 for i in grab do
480 local b, pb;
481 b = grab[i];
482 if( i == 1 ) then
483 b:ClearAllPoints();
484 b:SetPoint( "BOTTOMLEFT", this:GetName(), "BOTTOMLEFT" );
485 pb = nil;
486 else
487 pb = grab[i-1];
488 end
489 table.insert( this.attachedChildren, b );
490 end
491 this:Show();
492 end
493 this.OnMoveAnythingPostReset = function( this )
494 CharacterMicroButton:ClearAllPoints();
495 CharacterMicroButton:SetPoint( "BOTTOMLEFT", "MainMenuBarArtFrame", "BOTTOMLEFT", 546, 2 );
496 this:Hide();
497 end
498 </OnLoad>
499 </Scripts>
500 </Frame>
501 <Frame name="MicroButtonsVerticalMover" parent="UIParent" hidden="true" enableMouse="false">
502 <Size>
503 <AbsDimension x="32" y="275"/>
504 </Size>
505 <Anchors>
506 <Anchor point="BOTTOMLEFT" relativeTo = "MainMenuBarArtFrame">
507 <Offset>
508 <AbsDimension x="546" y="2"/>
509 </Offset>
510 </Anchor>
511 </Anchors>
512 <Scripts>
513 <OnLoad>
514 this.OnMoveAnythingHook = function( this )
515 if( MoveAnything_IsFrameHooked( "MicroButtonsMover" ) ) then
516 MoveAnything_ResetFrameOptions( "MicroButtonsMover" );
517 end
518 local grab = { CharacterMicroButton, SpellbookMicroButton,
519 TalentMicroButton, QuestLogMicroButton,
520 SocialsMicroButton, WorldMapMicroButton,
521 MainMenuMicroButton, HelpMicroButton };
522 this.attachedChildren = {};
523 for i in grab do
524 local b, pb;
525 b = grab[i];
526 grab[i]:ClearAllPoints();
527 if( i == 1 ) then
528 grab[i]:SetPoint( "TOPLEFT", this:GetName(), "TOPLEFT", 0, 24 );
529 else
530 grab[i]:SetPoint( "TOPLEFT", grab[i-1]:GetName(), "BOTTOMLEFT", 0, 24 );
531 end
532 table.insert( this.attachedChildren, b );
533 end
534 this:Show();
535 end
536 this.OnMoveAnythingPostReset = function( this )
537 CharacterMicroButton:ClearAllPoints();
538 CharacterMicroButton:SetPoint( "BOTTOMLEFT", "MainMenuBarArtFrame", "BOTTOMLEFT", 546, 2 );
539 local grab = { CharacterMicroButton, SpellbookMicroButton,
540 TalentMicroButton, QuestLogMicroButton,
541 SocialsMicroButton, WorldMapMicroButton,
542 MainMenuMicroButton, HelpMicroButton };
543 for i in grab do
544 local b, pb;
545 if( i > 1 ) then
546 grab[i]:ClearAllPoints();
547 grab[i]:SetPoint( "BOTTOMLEFT", grab[i-1]:GetName(), "BOTTOMRIGHT", -2, 0 );
548 end
549 end
550 this:Hide();
551 UpdateTalentButton();
552 end
553 this.OnMoveAnythingPostAttach = function( this )
554 UpdateTalentButton();
555 end
556 </OnLoad>
557 </Scripts>
558 </Frame>
559  
560 <Frame name="BasicActionButtonsMover" parent="UIParent" hidden="true" enableMouse="false">
561 <Size>
562 <AbsDimension x="496" y="32"/>
563 </Size>
564 <Anchors>
565 <Anchor point="BOTTOMLEFT" relativeTo = "MainMenuBarArtFrame">
566 <Offset>
567 <AbsDimension x="8" y="4"/>
568 </Offset>
569 </Anchor>
570 </Anchors>
571 <Scripts>
572 <OnLoad>
573 this.OnMoveAnythingHook = function( this )
574 local b, pb;
575 if( MoveAnything_IsFrameHooked( "BasicActionButtonsVerticalMover" ) ) then
576 MoveAnything_ResetFrameOptions( "BasicActionButtonsVerticalMover" );
577 end
578 ActionButton1:ClearAllPoints();
579 ActionButton1:SetPoint( "LEFT", this:GetName(), "LEFT", 0, 0 );
580 ActionBarUpButton:ClearAllPoints( );
581 ActionBarUpButton:SetPoint( "TOPLEFT", "ActionButton12", "TOPRIGHT", -6, 4 );
582 ActionBarDownButton:ClearAllPoints();
583 ActionBarDownButton:SetPoint( "BOTTOMLEFT", "ActionButton12", "BOTTOMRIGHT", -6, -8 );
584 this.attachedChildren = {};
585 for i = 1, 12, 1 do
586 b = getglobal( "ActionButton"..i );
587 table.insert( this.attachedChildren, getglobal( "ActionButton"..i ) );
588 table.insert( this.attachedChildren, getglobal( "BonusActionButton"..i ) );
589 if( i > 1 ) then
590 pb = getglobal( "ActionButton"..(i-1) );
591 b:ClearAllPoints();
592 b:SetPoint( "LEFT", pb:GetName(), "RIGHT", 2, 0 );
593 end
594 getglobal( "BonusActionButton"..i ):ClearAllPoints();
595 getglobal( "BonusActionButton"..i ):SetPoint( "CENTER", b:GetName(), "CENTER" );
596 end
597 table.insert( this.attachedChildren, ActionBarUpButton );
598 table.insert( this.attachedChildren, ActionBarDownButton );
599 this:Show();
600 end
601 this.OnMoveAnythingPostReset = function( this )
602 local b, pb;
603 ActionButton1:ClearAllPoints();
604 ActionButton1:SetPoint( "BOTTOMLEFT", "MainMenuBarArtFrame", "BOTTOMLEFT", 8, 4 );
605 ActionBarUpButton:ClearAllPoints();
606 ActionBarUpButton:SetPoint( "CENTER", "MainMenuBarArtFrame", "TOPLEFT", 522, -22 );
607 ActionBarDownButton:ClearAllPoints();
608 ActionBarDownButton:SetPoint( "CENTER", "MainMenuBarArtFrame", "TOPLEFT", 522, -42 );
609 for i = 1, 12, 1 do
610 b = getglobal( "ActionButton"..i );
611 if( i > 1 ) then
612 pb = getglobal( "ActionButton"..(i-1) );
613 b:ClearAllPoints();
614 b:SetPoint( "LEFT", pb:GetName(), "RIGHT", 6, 0 );
615 end
616 getglobal( "BonusActionButton"..i ):ClearAllPoints();
617 getglobal( "BonusActionButton"..i ):SetPoint( "CENTER", b:GetName(), "CENTER" );
618 end
619 this:Hide();
620 end
621 </OnLoad>
622 </Scripts>
623 </Frame>
624 <Frame name="BasicActionButtonsVerticalMover" parent="UIParent" hidden="true" enableMouse="false">
625 <Size>
626 <AbsDimension x="32" y="475"/>
627 </Size>
628 <Anchors>
629 <Anchor point="BOTTOMLEFT" relativeTo = "MainMenuBarArtFrame">
630 <Offset>
631 <AbsDimension x="8" y="4"/>
632 </Offset>
633 </Anchor>
634 </Anchors>
635 <Scripts>
636 <OnLoad>
637 this.OnMoveAnythingHook = function( this )
638 local b, pb;
639 if( MoveAnything_IsFrameHooked( "BasicActionButtonsMover" ) ) then
640 MoveAnything_ResetFrameOptions( "BasicActionButtonsMover" );
641 end
642 ActionButton1:ClearAllPoints();
643 ActionButton1:SetPoint( "TOP", this:GetName(), "TOP", 0, 0 );
644 this.attachedChildren = {};
645 for i = 1, 12, 1 do
646 b = getglobal( "ActionButton"..i );
647 table.insert( this.attachedChildren, getglobal( "ActionButton"..i ) );
648 table.insert( this.attachedChildren, getglobal( "BonusActionButton"..i ) );
649 if( i > 1 ) then
650 pb = getglobal( "ActionButton"..(i-1) );
651 b:ClearAllPoints();
652 b:SetPoint( "TOP", pb:GetName(), "BOTTOM", 0, -2 );
653 end
654 getglobal( "BonusActionButton"..i ):ClearAllPoints();
655 getglobal( "BonusActionButton"..i ):SetPoint( "CENTER", b:GetName(), "CENTER" );
656 end
657 table.insert( this.attachedChildren, ActionBarUpButton );
658 table.insert( this.attachedChildren, ActionBarDownButton );
659 ActionBarUpButton:ClearAllPoints( );
660 ActionBarUpButton:SetPoint( "TOPLEFT", "ActionButton12", "BOTTOMLEFT", -8, 4 );
661 ActionBarDownButton:ClearAllPoints();
662 ActionBarDownButton:SetPoint( "TOPRIGHT", "ActionButton12", "BOTTOMRIGHT", 8, 4 );
663 this:Show();
664 end
665 this.OnMoveAnythingPostReset = function( this )
666 local b, pb;
667 ActionButton1:ClearAllPoints();
668 ActionButton1:SetPoint( "BOTTOMLEFT", "MainMenuBarArtFrame", "BOTTOMLEFT", 8, 4 );
669 ActionBarUpButton:ClearAllPoints();
670 ActionBarUpButton:SetPoint( "CENTER", "MainMenuBarArtFrame", "TOPLEFT", 522, -22 );
671 ActionBarDownButton:ClearAllPoints();
672 ActionBarDownButton:SetPoint( "CENTER", "MainMenuBarArtFrame", "TOPLEFT", 522, -42 );
673 for i = 1, 12, 1 do
674 b = getglobal( "ActionButton"..i );
675 if( i > 1 ) then
676 pb = getglobal( "ActionButton"..(i-1) );
677 b:ClearAllPoints();
678 b:SetPoint( "LEFT", pb:GetName(), "RIGHT", 6, 0 );
679 end
680 getglobal( "BonusActionButton"..i ):ClearAllPoints();
681 getglobal( "BonusActionButton"..i ):SetPoint( "CENTER", b:GetName(), "CENTER" );
682 end
683 this:Hide();
684 end
685 </OnLoad>
686 </Scripts>
687 </Frame>
688  
689 <Frame name="PetActionButtonsMover" parent="UIParent" hidden="true" enableMouse="false">
690 <Size>
691 <AbsDimension x="370" y="32"/>
692 </Size>
693 <Anchors>
694 <Anchor point="BOTTOMLEFT" relativeTo = "PetActionBarFrame">
695 <Offset>
696 <AbsDimension x="36" y="1"/>
697 </Offset>
698 </Anchor>
699 </Anchors>
700 <Scripts>
701 <OnLoad>
702 this.OnMoveAnythingHook = function( this )
703 if( MoveAnything_IsFrameHooked( "PetActionButtonsVerticalMover" ) ) then
704 MoveAnything_ResetFrameOptions( "PetActionButtonsVerticalMover" );
705 end
706 PetActionButton1:ClearAllPoints();
707 PetActionButton1:SetPoint( "LEFT", this:GetName(), "LEFT", 0, 0 );
708 this:SetFrameLevel( PetActionButton1:GetFrameLevel() + 1 );
709 this.attachedChildren = {};
710 for i = 1, 10, 1 do
711 table.insert( this.attachedChildren, getglobal( "PetActionButton"..i ) );
712 if i > 1 then
713 b = getglobal( "PetActionButton"..i );
714 pb = getglobal( "PetActionButton"..(i-1) );
715 b:ClearAllPoints();
716 b:SetPoint( "LEFT", pb:GetName(), "RIGHT", 3, 0 );
717 end
718 end
719 this:Show();
720 end
721 this.OnMoveAnythingPostReset = function( this )
722 PetActionButton1:ClearAllPoints();
723 PetActionButton1:SetPoint( "BOTTOMLEFT", "PetActionBarFrame", "BOTTOMLEFT", 36, 1 );
724 for i = 2, 10, 1 do
725 b = getglobal( "PetActionButton"..i );
726 pb = getglobal( "PetActionButton"..(i-1) );
727 b:ClearAllPoints();
728 b:SetPoint( "LEFT", pb:GetName(), "RIGHT", 8, 0 );
729 end
730 this.attachedChildren = nil;
731 this:Hide();
732 end
733 </OnLoad>
734 </Scripts>
735 </Frame>
736 <Frame name="PetActionButtonsVerticalMover" parent="UIParent" hidden="true" enableMouse="false">
737 <Size>
738 <AbsDimension x="32" y="370"/>
739 </Size>
740 <Anchors>
741 <Anchor point="BOTTOMLEFT" relativeTo = "PetActionBarFrame">
742 <Offset>
743 <AbsDimension x="36" y="1"/>
744 </Offset>
745 </Anchor>
746 </Anchors>
747 <Scripts>
748 <OnLoad>
749 this.OnMoveAnythingHook = function( this )
750 if( MoveAnything_IsFrameHooked( "PetActionButtonsMover" ) ) then
751 MoveAnything_ResetFrameOptions( "PetActionButtonsMover" );
752 end
753 local b, pb;
754 PetActionButton1:ClearAllPoints();
755 PetActionButton1:SetPoint( "TOP", this:GetName(), "TOP", 0, 0 );
756 this:SetFrameLevel( PetActionButton1:GetFrameLevel() + 1 );
757 this.attachedChildren = {};
758 for i = 1, 10, 1 do
759 table.insert( this.attachedChildren, getglobal( "PetActionButton"..i ) );
760 if i > 1 then
761 b = getglobal( "PetActionButton"..i );
762 pb = getglobal( "PetActionButton"..(i-1) );
763 b:ClearAllPoints();
764 b:SetPoint( "TOP", pb:GetName(), "BOTTOM", 0, -3 );
765 end
766 end
767 this:Show();
768 end
769 this.OnMoveAnythingPostReset = function( this )
770 local b, pb;
771 PetActionButton1:ClearAllPoints();
772 PetActionButton1:SetPoint( "BOTTOMLEFT", "PetActionBarFrame", "BOTTOMLEFT", 36, 1 );
773 for i = 2, 10, 1 do
774 b = getglobal( "PetActionButton"..i );
775 pb = getglobal( "PetActionButton"..(i-1) );
776 b:ClearAllPoints();
777 b:SetPoint( "LEFT", pb:GetName(), "RIGHT", 8, 0 );
778 end
779 this.attachedChildren = nil;
780 this:Hide();
781 end
782 </OnLoad>
783 </Scripts>
784 </Frame>
785  
786 <Frame name="ShapeshiftButtonsMover" parent="UIParent" hidden="true" enableMouse="false">
787 <Size>
788 <AbsDimension x="225" y="32"/>
789 </Size>
790 <Anchors>
791 <Anchor point="BOTTOMLEFT" relativeTo = "ShapeshiftBarFrame">
792 <Offset>
793 <AbsDimension x="11" y="3"/>
794 </Offset>
795 </Anchor>
796 </Anchors>
797 <Scripts>
798 <OnLoad>
799 this.OnMoveAnythingHook = function( this )
800 if( MoveAnything_IsFrameHooked( "ShapeshiftButtonsVerticalMover" ) ) then
801 MoveAnything_ResetFrameOptions( "ShapeshiftButtonsVerticalMover" );
802 end
803 ShapeshiftButton1:ClearAllPoints();
804 ShapeshiftButton1:SetPoint( "LEFT", this:GetName(), "LEFT", 7, 0 );
805 this:SetFrameLevel( ShapeshiftButton1:GetFrameLevel() + 1 );
806 this.attachedChildren = {};
807 for i = 1, 10, 1 do
808 table.insert( this.attachedChildren, getglobal( "ShapeshiftButton"..i ) );
809 end
810 this:Show();
811 end
812 this.OnMoveAnythingPostReset = function( this )
813 ShapeshiftButton1:ClearAllPoints();
814 ShapeshiftButton1:SetPoint( "BOTTOMLEFT", "ShapeshiftBarFrame", "BOTTOMLEFT", 11, 3 );
815 this.attachedChildren = nil;
816 this:Hide();
817 end
818 </OnLoad>
819 </Scripts>
820 </Frame>
821 <Frame name="ShapeshiftButtonsVerticalMover" parent="UIParent" hidden="true" enableMouse="false">
822 <Size>
823 <AbsDimension x="32" y="225"/>
824 </Size>
825 <Anchors>
826 <Anchor point="BOTTOMLEFT" relativeTo = "ShapeshiftBarFrame">
827 <Offset>
828 <AbsDimension x="11" y="3"/>
829 </Offset>
830 </Anchor>
831 </Anchors>
832 <Scripts>
833 <OnLoad>
834 this.OnMoveAnythingHook = function( this )
835 if( MoveAnything_IsFrameHooked( "ShapeshiftButtonsMover" ) ) then
836 MoveAnything_ResetFrameOptions( "ShapeshiftButtonsMover" );
837 end
838 local b, pb;
839 ShapeshiftButton1:ClearAllPoints();
840 ShapeshiftButton1:SetPoint( "TOP", this:GetName(), "TOP", 0, -7 );
841 this:SetFrameLevel( ShapeshiftButton1:GetFrameLevel() + 1 );
842 this.attachedChildren = {};
843 for i = 1, 10, 1 do
844 table.insert( this.attachedChildren, getglobal( "ShapeshiftButton"..i ) );
845 if i > 1 then
846 b = getglobal( "ShapeshiftButton"..i );
847 pb = getglobal( "ShapeshiftButton"..(i-1) );
848 b:ClearAllPoints();
849 b:SetPoint( "TOP", pb:GetName(), "BOTTOM", 0, -7 );
850 end
851 end
852 this:Show();
853 end
854 this.OnMoveAnythingPostReset = function( this )
855 local b, pb;
856 ShapeshiftButton1:ClearAllPoints();
857 ShapeshiftButton1:SetPoint( "BOTTOMLEFT", "ShapeshiftBarFrame", "BOTTOMLEFT", 11, 3 );
858 for i = 2, 10, 1 do
859 b = getglobal( "ShapeshiftButton"..i );
860 pb = getglobal( "ShapeshiftButton"..(i-1) );
861 b:ClearAllPoints();
862 b:SetPoint( "LEFT", pb:GetName(), "RIGHT", 7, 0 );
863 end
864 this.attachedChildren = nil;
865 this:Hide();
866 end
867 </OnLoad>
868 </Scripts>
869 </Frame>
870  
871 <Frame name="FramerateMover" parent="UIParent" hidden="false" enableMouse="false">
872 <Size>
873 <AbsDimension x="90" y="32"/>
874 </Size>
875 <Anchors>
876 <Anchor point="BOTTOM" relativeTo = "WorldFrame">
877 <Offset>
878 <AbsDimension x="0" y="64"/>
879 </Offset>
880 </Anchor>
881 </Anchors>
882 <Scripts>
883 <OnLoad>
884 this.OnMoveAnythingHook = function( this )
885 this.attachedChildren = {};
886 table.insert( this.attachedChildren, getglobal( "FramerateLabel" ) );
887 FramerateLabel:ClearAllPoints();
888 FramerateLabel:SetPoint( "LEFT", this:GetName(), "LEFT", 12, 0 );
889 end
890 this.OnMoveAnythingPostReset = function( this )
891 this.attachedChildren = nil;
892 FramerateLabel:ClearAllPoints();
893 FramerateLabel:SetPoint( "BOTTOM", "WorldFrame", "BOTTOM", 0, 64 );
894 end
895 </OnLoad>
896 </Scripts>
897 </Frame>
898  
899 <Button name="MAOptionsButtonTemplate" inherits="UIPanelButtonTemplate" virtual="true">
900 <Size>
901 <AbsDimension x="100" y="24"/>
902 </Size>
903 <NormalText inherits="GameFontHighlight"/>
904 <DisabledText inherits="GameFontDisable"/>
905 <HighlightText inherits="GameFontHighlight"/>
906 </Button>
907 <Frame name="MAMovableFrameTemplate" virtual="true">
908 <Size>
909 <AbsDimension x="300" y="24"/>
910 </Size>
911 <Frames>
912 <Frame name="$parentBackdrop">
913 <Size>
914 <AbsDimension x="250" y="24"/>
915 </Size>
916 <Anchors>
917 <Anchor point="LEFT"/>
918 </Anchors>
919 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
920 <EdgeSize>
921 <AbsValue val="12"/>
922 </EdgeSize>
923 <TileSize>
924 <AbsValue val="16"/>
925 </TileSize>
926 <BackgroundInsets>
927 <AbsInset left="2" right="2" top="2" bottom="2"/>
928 </BackgroundInsets>
929 </Backdrop>
930 <Scripts>
931 <OnLoad>
932 this:SetBackdropColor( 0.03, 0.03, 0.03 );
933 this:SetBackdropBorderColor( 0.4, 0.4, 0.4 );
934 </OnLoad>
935 </Scripts>
936 </Frame>
937 <Frame name="$parentFrameName">
938 <Size>
939 <AbsDimension x="250" y="24"/>
940 </Size>
941 <Anchors>
942 <Anchor point="LEFT"/>
943 </Anchors>
944 <Layers>
945 <Layer level="ARTWORK">
946 <FontString name="$parentText" inherits="GameFontNormal" text="ThisIsAReallyReallYLongFRAMENAME">
947 <Anchors>
948 <Anchor point="LEFT">
949 <Offset>
950 <AbsDimension x="6" y="0"/>
951 </Offset>
952 </Anchor>
953 </Anchors>
954 </FontString>
955 </Layer>
956 </Layers>
957 </Frame>
958 <CheckButton name="$parentMove" inherits="UICheckButtonTemplate">
959 <Anchors>
960 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentFrameName">
961 <Offset>
962 <AbsDimension x="4" y="0"/>
963 </Offset>
964 </Anchor>
965 </Anchors>
966 <Scripts>
967 <OnClick>
968 MoveAnything_OnMoveCheck( this );
969 </OnClick>
970 </Scripts>
971 </CheckButton>
972 <CheckButton name="$parentHide" inherits="UICheckButtonTemplate">
973 <Anchors>
974 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentMove">
975 <Offset>
976 <AbsDimension x="3" y="0"/>
977 </Offset>
978 </Anchor>
979 </Anchors>
980 <Scripts>
981 <OnClick>
982 MoveAnything_OnHideCheck( this );
983 </OnClick>
984 </Scripts>
985 </CheckButton>
986 <Button name="$parentReset" inherits="UIPanelButtonTemplate" text="Reset">
987 <Size>
988 <AbsDimension x="44" y="20"/>
989 </Size>
990 <Anchors>
991 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentHide">
992 <Offset>
993 <AbsDimension x="3" y="1"/>
994 </Offset>
995 </Anchor>
996 </Anchors>
997 <NormalText inherits="GameFontHighlight"/>
998 <Scripts>
999 <OnClick>
1000 MoveAnything_OnResetCheck( this );
1001 </OnClick>
1002 </Scripts>
1003 </Button>
1004 </Frames>
1005 </Frame>
1006  
1007 <Frame name="MAOptions" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="UIParent">
1008 <TitleRegion setAllPoints="true"/>
1009 <Size>
1010 <AbsDimension x="420" y="345"/>
1011 </Size>
1012 <Anchors>
1013 <Anchor point="CENTER"/>
1014 </Anchors>
1015 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
1016 <BackgroundInsets>
1017 <AbsInset left="11" right="12" top="12" bottom="11"/>
1018 </BackgroundInsets>
1019 <TileSize>
1020 <AbsValue val="32"/>
1021 </TileSize>
1022 <EdgeSize>
1023 <AbsValue val="32"/>
1024 </EdgeSize>
1025 </Backdrop>
1026 <Layers>
1027 <Layer level="ARTWORK">
1028 <Texture name="MAOptionsFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
1029 <Size>
1030 <AbsDimension x="280" y="64"/>
1031 </Size>
1032 <Anchors>
1033 <Anchor point="TOP">
1034 <Offset>
1035 <AbsDimension x="0" y="12"/>
1036 </Offset>
1037 </Anchor>
1038 </Anchors>
1039 </Texture>
1040 <FontString inherits="GameFontNormal" text="MoveAnything!">
1041 <Anchors>
1042 <Anchor point="TOP" relativeTo="MAOptionsFrameHeader">
1043 <Offset>
1044 <AbsDimension x="0" y="-14"/>
1045 </Offset>
1046 </Anchor>
1047 </Anchors>
1048 </FontString>
1049 <FontString name="MAOptionsFrameNameHeader" inherits="GameFontNormalSmall" text="Frame Name">
1050 <Anchors>
1051 <Anchor point="TOPLEFT">
1052 <Offset>
1053 <AbsDimension x="24" y="-32"/>
1054 </Offset>
1055 </Anchor>
1056 </Anchors>
1057 </FontString>
1058 <FontString name="MAOptionsMoveHeader" inherits="GameFontNormalSmall" text="Move">
1059 <Anchors>
1060 <Anchor point="LEFT" relativePoint="LEFT" relativeTo="MAOptionsFrameNameHeader">
1061 <Offset>
1062 <AbsDimension x="246" y="0"/>
1063 </Offset>
1064 </Anchor>
1065 </Anchors>
1066 </FontString>
1067 <FontString name="MAOptionsHideHeader" inherits="GameFontNormalSmall" text="Hide">
1068 <Anchors>
1069 <Anchor point="LEFT" relativePoint="LEFT" relativeTo="MAOptionsMoveHeader">
1070 <Offset>
1071 <AbsDimension x="40" y="0"/>
1072 </Offset>
1073 </Anchor>
1074 </Anchors>
1075 </FontString>
1076 </Layer>
1077 </Layers>
1078 <Frames>
1079 <CheckButton name="MAOptionsCharacterSpecific" inherits="UICheckButtonTemplate">
1080 <Anchors>
1081 <Anchor point="BOTTOMLEFT">
1082 <Offset>
1083 <AbsDimension x="24" y="10"/>
1084 </Offset>
1085 </Anchor>
1086 </Anchors>
1087 <Scripts>
1088 <OnLoad>
1089 getglobal(this:GetName().."Text"):SetText("Character Specific Settings");
1090 </OnLoad>
1091 <OnClick>
1092 MoveAnything_OnCheckCharacterSpecific( this );
1093 </OnClick>
1094 </Scripts>
1095 </CheckButton>
1096 <Button name="MAOptionsResetAll" inherits="MAOptionsButtonTemplate" text="Reset All">
1097 <Anchors>
1098 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
1099 <Offset>
1100 <AbsDimension x="-14" y="14"/>
1101 </Offset>
1102 </Anchor>
1103 </Anchors>
1104 <Scripts>
1105 <OnClick>
1106 PlaySound("igMainMenuOption");
1107 StaticPopup_Show( "MOVEANYTHING_RESET_CONFIRM" );
1108 </OnClick>
1109 </Scripts>
1110 </Button>
1111 <Button name="MAOptionsClose" inherits="MAOptionsButtonTemplate" text="Close">
1112 <Anchors>
1113 <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="MAOptionsResetAll">
1114 <Offset>
1115 <AbsDimension x="-4" y="0"/>
1116 </Offset>
1117 </Anchor>
1118 </Anchors>
1119 <Scripts>
1120 <OnClick>
1121 PlaySound("igMainMenuOption");
1122 MAOptions:Hide();
1123 </OnClick>
1124 </Scripts>
1125 </Button>
1126 <Frame name="MAMove1" inherits="MAMovableFrameTemplate">
1127 <Anchors>
1128 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="MAOptionsFrameNameHeader">
1129 <Offset>
1130 <AbsDimension x="-8" y="-4"/>
1131 </Offset>
1132 </Anchor>
1133 </Anchors>
1134 </Frame>
1135 <Frame name="MAMove2" inherits="MAMovableFrameTemplate">
1136 <Anchors>
1137 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="MAMove1">
1138 <Offset>
1139 <AbsDimension x="0" y="-2"/>
1140 </Offset>
1141 </Anchor>
1142 </Anchors>
1143 </Frame>
1144 <Frame name="MAMove3" inherits="MAMovableFrameTemplate">
1145 <Anchors>
1146 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="MAMove2">
1147 <Offset>
1148 <AbsDimension x="0" y="-2"/>
1149 </Offset>
1150 </Anchor>
1151 </Anchors>
1152 </Frame>
1153 <Frame name="MAMove4" inherits="MAMovableFrameTemplate">
1154 <Anchors>
1155 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="MAMove3">
1156 <Offset>
1157 <AbsDimension x="0" y="-2"/>
1158 </Offset>
1159 </Anchor>
1160 </Anchors>
1161 </Frame>
1162 <Frame name="MAMove5" inherits="MAMovableFrameTemplate">
1163 <Anchors>
1164 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="MAMove4">
1165 <Offset>
1166 <AbsDimension x="0" y="-2"/>
1167 </Offset>
1168 </Anchor>
1169 </Anchors>
1170 </Frame>
1171 <Frame name="MAMove6" inherits="MAMovableFrameTemplate">
1172 <Anchors>
1173 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="MAMove5">
1174 <Offset>
1175 <AbsDimension x="0" y="-2"/>
1176 </Offset>
1177 </Anchor>
1178 </Anchors>
1179 </Frame>
1180 <Frame name="MAMove7" inherits="MAMovableFrameTemplate">
1181 <Anchors>
1182 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="MAMove6">
1183 <Offset>
1184 <AbsDimension x="0" y="-2"/>
1185 </Offset>
1186 </Anchor>
1187 </Anchors>
1188 </Frame>
1189 <Frame name="MAMove8" inherits="MAMovableFrameTemplate">
1190 <Anchors>
1191 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="MAMove7">
1192 <Offset>
1193 <AbsDimension x="0" y="-2"/>
1194 </Offset>
1195 </Anchor>
1196 </Anchors>
1197 </Frame>
1198 <Frame name="MAMove9" inherits="MAMovableFrameTemplate">
1199 <Anchors>
1200 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="MAMove8">
1201 <Offset>
1202 <AbsDimension x="0" y="-2"/>
1203 </Offset>
1204 </Anchor>
1205 </Anchors>
1206 </Frame>
1207 <Frame name="MAMove10" inherits="MAMovableFrameTemplate">
1208 <Anchors>
1209 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="MAMove9">
1210 <Offset>
1211 <AbsDimension x="0" y="-2"/>
1212 </Offset>
1213 </Anchor>
1214 </Anchors>
1215 </Frame>
1216 <ScrollFrame name="MAScrollFrame" inherits="FauxScrollFrameTemplate">
1217 <Size>
1218 <AbsDimension x="20" y="251"/>
1219 </Size>
1220 <Anchors>
1221 <Anchor point="TOPRIGHT">
1222 <Offset>
1223 <AbsDimension x="-38" y="-49"/>
1224 </Offset>
1225 </Anchor>
1226 </Anchors>
1227 <Scripts>
1228 <OnVerticalScroll>
1229 FauxScrollFrame_OnVerticalScroll( MOVEANYTHING_SCROLL_HEIGHT,
1230 MoveAnythingOptions_Update );
1231 </OnVerticalScroll>
1232 </Scripts>
1233 <Frames>
1234 <Frame name="MAScrollBorder">
1235 <Size>
1236 <AbsDimension x="20" y="222"/>
1237 </Size>
1238 <Anchors>
1239 <Anchor point="TOPRIGHT">
1240 <Offset>
1241 <AbsDimension x="24" y = "-14"/>
1242 </Offset>
1243 </Anchor>
1244 </Anchors>
1245 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
1246 <EdgeSize>
1247 <AbsValue val="12"/>
1248 </EdgeSize>
1249 <TileSize>
1250 <AbsValue val="16"/>
1251 </TileSize>
1252 <BackgroundInsets>
1253 <AbsInset left="2" right="2" top="2" bottom="2"/>
1254 </BackgroundInsets>
1255 </Backdrop>
1256 <Scripts>
1257 <OnLoad>
1258 this:SetBackdropColor( 0.1, 0.1, 0.1 );
1259 this:SetBackdropBorderColor( 0.4, 0.4, 0.4 );
1260 </OnLoad>
1261 </Scripts>
1262 </Frame>
1263 </Frames>
1264 </ScrollFrame>
1265 </Frames>
1266 <Scripts>
1267 <OnLoad>
1268 this:RegisterEvent("VARIABLES_LOADED");
1269 this:RegisterEvent("ADDON_LOADED");
1270 </OnLoad>
1271 <OnShow>
1272 MoveAnythingOptions_OnShow();
1273 </OnShow>
1274 <OnHide>
1275 MoveAnythingOptions_OnHide();
1276 </OnHide>
1277 <OnEvent>
1278 MoveAnything_Init();
1279 MoveAnything_RefreshPositions();
1280 </OnEvent>
1281 </Scripts>
1282 </Frame>
1283 <Button name="MA_NudgeButton" inherits="UIPanelButtonTemplate" virtual="true" hidden="false">
1284 <Size><AbsDimension x="24" y="24"/></Size>
1285 <Scripts>
1286 <OnClick>
1287 MA_Nudge(this.dir, arg1);
1288 </OnClick>
1289 </Scripts>
1290 </Button>
1291 <Button name="MA_MoverButton" inherits="UIPanelButtonTemplate" virtual="true" hidden="false">
1292 <Size><AbsDimension x="15" y="15"/></Size>
1293 <Scripts>
1294 <OnLoad>
1295 this:RegisterForClicks("LeftButtonUp", "RightButtonUp", "MiddleButtonUp");
1296 </OnLoad>
1297 </Scripts>
1298 </Button>
1299 <Button name="ResizingNudger" hidden="true" parent="UIParent" movable="true">
1300 <Size>
1301 <AbsDimension x="200" y="175"/>
1302 </Size>
1303 <Anchors>
1304 <Anchor point="TOP" relativeTo="MAOptions" relativePoint="BOTTOM">
1305 <Offset><AbsDimension x="0" y="-20"/></Offset>
1306 </Anchor>
1307 </Anchors>
1308 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
1309 <EdgeSize>
1310 <AbsValue val="4"/>
1311 </EdgeSize>
1312 <TileSize>
1313 <AbsValue val="8"/>
1314 </TileSize>
1315 <BackgroundInsets>
1316 <AbsInset left="2" right="2" top="2" bottom="2"/>
1317 </BackgroundInsets>
1318 </Backdrop>
1319 <Layers>
1320 <Layer level="ARTWORK">
1321 <FontString name="$parentTitle" inherits="GameFontNormal">
1322 <Anchors>
1323 <Anchor point="TOP">
1324 <Offset><AbsDimension x="0" y="-6"/></Offset>
1325 </Anchor>
1326 </Anchors>
1327 </FontString>
1328 <FontString name="$parentMouseOver" inherits="GameFontNormal">
1329 <Anchors>
1330 <Anchor point="BOTTOM">
1331 <Offset><AbsDimension x="0" y="6"/></Offset>
1332 </Anchor>
1333 </Anchors>
1334 </FontString>
1335 </Layer>
1336 </Layers>
1337 <Frames>
1338 <Button name="$parent_NudgeUp" inherits="MA_NudgeButton">
1339 <Anchors>
1340 <Anchor point="CENTER">
1341 <Offset><AbsDimension x="0" y="24"/></Offset>
1342 </Anchor>
1343 </Anchors>
1344 <Scripts>
1345 <OnLoad>
1346 this:SetText("^");
1347 this.dir = 1;
1348 this:RegisterForClicks("LeftButtonUp", "RightButtonUp", "MiddleButtonUp");
1349 </OnLoad>
1350 </Scripts>
1351 </Button>
1352 <Button name="$parent_CenterMe" inherits="UIPanelButtonTemplate" hidden="false">
1353 <Size><AbsDimension x="24" y="24"/></Size>
1354 <Anchors>
1355 <Anchor point="TOP" relativeTo="$parent_NudgeUp" relativePoint="BOTTOM">
1356 <Offset><AbsDimension x="0" y="2"/></Offset>
1357 </Anchor>
1358 </Anchors>
1359 <Scripts>
1360 <OnLoad>
1361 this:SetText("C");
1362 this:RegisterForClicks("LeftButtonUp", "RightButtonUp", "MiddleButtonUp");
1363 </OnLoad>
1364 <OnClick>
1365 MA_Center(0);
1366 </OnClick>
1367 </Scripts>
1368 </Button>
1369 <Button name="$parent_NudgeDown" inherits="MA_NudgeButton">
1370 <Anchors>
1371 <Anchor point="TOP" relativeTo="$parent_CenterMe" relativePoint="BOTTOM">
1372 <Offset><AbsDimension x="0" y="2"/></Offset>
1373 </Anchor>
1374 </Anchors>
1375 <Scripts>
1376 <OnLoad>
1377 this:SetText("v");
1378 this.dir = 2;
1379 this:RegisterForClicks("LeftButtonUp", "RightButtonUp", "MiddleButtonUp");
1380 </OnLoad>
1381 </Scripts>
1382 </Button>
1383 <Button name="$parent_NudgeLeft" inherits="MA_NudgeButton">
1384 <Anchors>
1385 <Anchor point="RIGHT" relativeTo="$parent_CenterMe" relativePoint="LEFT">
1386 <Offset><AbsDimension x="0" y="0"/></Offset>
1387 </Anchor>
1388 </Anchors>
1389 <Scripts>
1390 <OnLoad>
1391 this:SetText(MA_LEFTARROW);
1392 this.dir = 3;
1393 this:RegisterForClicks("LeftButtonUp", "RightButtonUp", "MiddleButtonUp");
1394 </OnLoad>
1395 </Scripts>
1396 </Button>
1397 <Button name="$parent_NudgeRight" inherits="MA_NudgeButton">
1398 <Anchors>
1399 <Anchor point="LEFT" relativeTo="$parent_CenterMe" relativePoint="RIGHT">
1400 <Offset><AbsDimension x="0" y="0"/></Offset>
1401 </Anchor>
1402 </Anchors>
1403 <Scripts>
1404 <OnLoad>
1405 this:SetText(MA_RIGHTARROW);
1406 this.dir = 4;
1407 this:RegisterForClicks("LeftButtonUp", "RightButtonUp", "MiddleButtonUp");
1408 </OnLoad>
1409 </Scripts>
1410 </Button>
1411 <Button name="$parent_CenterH" inherits="UIPanelButtonTemplate" hidden="false">
1412 <Size><AbsDimension x="32" y="24"/></Size>
1413 <Anchors>
1414 <Anchor point="RIGHT" relativeTo="$parent_NudgeLeft" relativePoint="LEFT">
1415 <Offset><AbsDimension x="-10" y="0"/></Offset>
1416 </Anchor>
1417 </Anchors>
1418 <Scripts>
1419 <OnLoad>
1420 this:SetText("C-H");
1421 this:RegisterForClicks("LeftButtonUp", "RightButtonUp", "MiddleButtonUp");
1422 </OnLoad>
1423 <OnClick>
1424 MA_Center(1);
1425 </OnClick>
1426 </Scripts>
1427 </Button>
1428 <Button name="$parent_CenterV" inherits="UIPanelButtonTemplate" hidden="false">
1429 <Size><AbsDimension x="32" y="24"/></Size>
1430 <Anchors>
1431 <Anchor point="TOP" relativeTo="$parent_CenterH" relativePoint="BOTTOM">
1432 <Offset><AbsDimension x="0" y="2"/></Offset>
1433 </Anchor>
1434 </Anchors>
1435 <Scripts>
1436 <OnLoad>
1437 this:SetText("C-V");
1438 this:RegisterForClicks("LeftButtonUp", "RightButtonUp", "MiddleButtonUp");
1439 </OnLoad>
1440 <OnClick>
1441 MA_Center(2);
1442 </OnClick>
1443 </Scripts>
1444 </Button>
1445 <Button name="$parent_MoverPlus" inherits="MA_MoverButton" text="+">
1446 <Anchors>
1447 <Anchor point="TOPRIGHT">
1448 <Offset><AbsDimension x="-7" y="-7"/></Offset>
1449 </Anchor>
1450 </Anchors>
1451 <Scripts>
1452 <OnClick>
1453 MA_Mover(1);
1454 </OnClick>
1455 </Scripts>
1456 </Button>
1457 <Button name="$parent_MoverMinus" inherits="MA_MoverButton" text="-">
1458 <Anchors>
1459 <Anchor point="TOPLEFT">
1460 <Offset><AbsDimension x="7" y="-7"/></Offset>
1461 </Anchor>
1462 </Anchors>
1463 <Scripts>
1464 <OnClick>
1465 MA_Mover(0);
1466 </OnClick>
1467 </Scripts>
1468 </Button>
1469 </Frames>
1470 <Scripts>
1471 <OnLoad>
1472 this:RegisterForDrag("LeftButton");
1473 ResizingNudger:SetBackdropColor(0,0,0,0.75);
1474 ResizingNudger:SetBackdropBorderColor(0,0,0,0.75);
1475 </OnLoad>
1476 <OnDragStart>
1477 this:StartMoving();
1478 </OnDragStart>
1479 <OnDragStop>
1480 this:StopMovingOrSizing();
1481 </OnDragStop>
1482 <OnShow>
1483 MA_NudgerOnShow();
1484 </OnShow>
1485 <OnHide>
1486 this:StopMovingOrSizing();
1487 </OnHide>
1488 <OnUpdate>
1489 MA_NudgerOnUpdate();
1490 </OnUpdate>
1491 </Scripts>
1492 </Button>
1493 </Ui>