Draggable
A draggable is a renderless component that can be dragged around, moving its children components with it.
Example
var draggable = new Draggable(0, 0, 100, 100);
var dragged_button = new UiButton(0, 0, 100, 100, draggable);
with (dragged_button.state) {
    text = "Drag me!";
}
State reference
| Variable | Description | Type | Default | 
|---|---|---|---|
| status | Current status of the draggable | Real | ui_enum_draggable_status.idle | 
| axis | Axis the draggable can move along | Real | ui_enum_draggable_axis.both | 
| bounds | By default, the component will be draggable within the parent, otherwise you can specify a Struct containing the "left", "right", "up" and "down" variables, that indicates the drag area limits | Struct | |
| click_button | Which button to check for the click | Real | mb_left | 
Enums
| Enum | Values | 
|---|---|
| ui_enum_draggable_status | idle/hover/dragging | 
| ui_enum_draggable_axis | both/x/y |