Defines a draggable UI button element.
Namespace: Esper.Inventool.UI Access: public Type: class Inherits: Button Attributes: [UxmlElement]
Esper.Inventool.UI
public
class
Button
[UxmlElement]
protected
pointerDown
bool
True while pointer is held down.
dragStarted
True once dragging has begun.
dragAllowedGetter
Func<bool>
Determines if dragging is allowed.
onDragStarted
Action
Callback when drag begins.
onDrag
Callback during dragging.
onDropped
Callback when drag ends (dropped).
pointerMovePosition
Vector2
Latest pointer position.
pointerDownPosition
Pointer position at drag start.
isPointerInside
True if pointer is over this element.
DraggableElement()
β
Constructor wiring pointer event callbacks.
ForceStopDrag()
void
Cancels any ongoing drag.
WaitForDrag(PointerDownEvent downEvent)
Begin drag check on left-button down.
Drag(PointerMoveEvent moveEvent)
Handle pointer movement during drag.
Drop(PointerUpEvent upEvent)
Complete drag on left-button release.
Last updated 4 months ago