Quantcast

Add sideFrame drag

Petr Grabovoy [06-12-16 - 08:47]
Add sideFrame drag
Filename
ViragDevTool.xml
diff --git a/ViragDevTool.xml b/ViragDevTool.xml
index bd08b42..b52bebe 100644
--- a/ViragDevTool.xml
+++ b/ViragDevTool.xml
@@ -488,6 +488,18 @@
                     <Anchor point="BOTTOM"/>
                     <Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT"/>
                 </Anchors>
+                <Scripts>
+                    <OnLoad>
+                        self:RegisterForDrag("LeftButton");
+                    </OnLoad>
+                    <OnDragStart>
+                        self:GetParent():StopMovingOrSizing();
+                        self:GetParent():StartMoving()
+                    </OnDragStart>
+                    <OnDragStop>
+                        self:GetParent():StopMovingOrSizing();
+                    </OnDragStop>
+                </Scripts>
                 <Frames>
                     <!--HISTORY TAB BUTTON-->
                     <CheckButton text="/vdt history" name="$parentHistoryButton" inherits="ViragDevToolButtonTemplate"