Drag
This will explain how to create and use a Drag object
A "drag" is an object that allows for dragging on the gui screen with objects and adaptively changes the x and y values.
These x and y values save and load in when you enable and disable a script.
How to create a Drag object
Parameters
Parameter | Description |
---|---|
initialX | The initial x value for the drag |
initialY | The initial y value for the drag |
These values will be used when clicking the "Reset Draggables" button in the Gui Chat menu
How to use the Drag object
First off you will want to create the Drag object and then in an event you must set the width and height of the drag, this allows for you to adaptively change the width and height of the Drag.
Functions
Function | Description |
---|---|
| Gets the current x value of the Drag object |
| Gets the current y value of the Drag object |
| Gets the current width of the Drag object |
| Gets the current height of the Drag object |
| Sets the width of the Drag object |
| Sets the height of the Drag object |
Last updated