Drag
Drag Widget API
A draggable widget for each datatype. Allows direct typing input but also dragging values by clicking and holding.
See Input for more details on the arguments.
Properties
DragNum
WidgetHasStateDrag.DragNum:
Iris.DragNum
A field which allows the user to click and drag their cursor to enter a number. You can ctrl + click to directly input a number, like InputNum. You can hold Shift to increase speed, and Alt to decrease speed when dragging.
hasChildren = false
hasState = true
Arguments = {
Text: string? = "DragNum",
Increment: number? = nil,
Min: number? = nil,
Max: number? = nil,
Format: string? | { string }? = [DYNAMIC] -- Iris will dynamically generate an approriate format.
}
Events = {
numberChanged: () -> boolean,
hovered: () -> boolean
}
States = {
number: State<number>?,
editingText: State<boolean>?
}
DragVector2
WidgetHasStateDrag.DragVector2:
Iris.DragVector2
A field which allows the user to click and drag their cursor to enter a Vector2. You can ctrl + click to directly input a Vector2, like InputVector2. You can hold Shift to increase speed, and Alt to decrease speed when dragging.
hasChildren = false
hasState = true
Arguments = {
Text: string? = "DragVector2",
Increment: Vector2? = nil,
Min: Vector2? = nil,
Max: Vector2? = nil,
Format: string? | { string }? = [DYNAMIC] -- Iris will dynamically generate an approriate format.
}
Events = {
numberChanged: () -> boolean,
hovered: () -> boolean
}
States = {
number: State<Vector2>?,
editingText: State<boolean>?
}
DragVector3
WidgetHasStateDrag.DragVector3:
Iris.DragVector3
A field which allows the user to click and drag their cursor to enter a Vector3. You can ctrl + click to directly input a Vector3, like InputVector3. You can hold Shift to increase speed, and Alt to decrease speed when dragging.
hasChildren = false
hasState = true
Arguments = {
Text: string? = "DragVector3",
Increment: Vector3? = nil,
Min: Vector3? = nil,
Max: Vector3? = nil,
Format: string? | { string }? = [DYNAMIC] -- Iris will dynamically generate an approriate format.
}
Events = {
numberChanged: () -> boolean,
hovered: () -> boolean
}
States = {
number: State<Vector3>?,
editingText: State<boolean>?
}
DragUDim
WidgetHasStateDrag.DragUDim:
Iris.DragUDim
A field which allows the user to click and drag their cursor to enter a UDim. You can ctrl + click to directly input a UDim, like InputUDim. You can hold Shift to increase speed, and Alt to decrease speed when dragging.
hasChildren = false
hasState = true
Arguments = {
Text: string? = "DragUDim",
Increment: UDim? = nil,
Min: UDim? = nil,
Max: UDim? = nil,
Format: string? | { string }? = [DYNAMIC] -- Iris will dynamically generate an approriate format.
}
Events = {
numberChanged: () -> boolean,
hovered: () -> boolean
}
States = {
number: State<UDim>?,
editingText: State<boolean>?
}
DragUDim2
WidgetHasStateDrag.DragUDim2:
Iris.DragUDim2
A field which allows the user to click and drag their cursor to enter a UDim2. You can ctrl + click to directly input a UDim2, like InputUDim2. You can hold Shift to increase speed, and Alt to decrease speed when dragging.
hasChildren = false
hasState = true
Arguments = {
Text: string? = "DragUDim2",
Increment: UDim2? = nil,
Min: UDim2? = nil,
Max: UDim2? = nil,
Format: string? | { string }? = [DYNAMIC] -- Iris will dynamically generate an approriate format.
}
Events = {
numberChanged: () -> boolean,
hovered: () -> boolean
}
States = {
number: State<UDim2>?,
editingText: State<boolean>?
}
DragRect
WidgetHasStateDrag.DragRect:
Iris.DragRect
A field which allows the user to click and drag their cursor to enter a Rect. You can ctrl + click to directly input a Rect, like InputRect. You can hold Shift to increase speed, and Alt to decrease speed when dragging.
hasChildren = false
hasState = true
Arguments = {
Text: string? = "DragRect",
Increment: Rect? = nil,
Min: Rect? = nil,
Max: Rect? = nil,
Format: string? | { string }? = [DYNAMIC] -- Iris will dynamically generate an approriate format.
}
Events = {
numberChanged: () -> boolean,
hovered: () -> boolean
}
States = {
number: State<Rect>?,
editingText: State<boolean>?
}