Drag
This will explain how to create and use a Drag object
Last updated
This will explain how to create and use a Drag object
Last updated
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.
Parameter | Description |
---|---|
These values will be used when clicking the "Reset Draggables" button in the Gui Chat menu
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.
Function | Description |
---|---|
initialX
The initial x value for the drag
initialY
The initial y value for the drag
getX()
Gets the current x value of the Drag object
getY()
Gets the current y value of the Drag object
getWidth()
Gets the current width of the Drag object
getHeight()
Gets the current height of the Drag object
setWidth()
Sets the width of the Drag object
setHeight()
Sets the height of the Drag object