Class AMovableElementUI
Base class for any UI element that can be dragged
Inheritance
Focusable
AMovableElementUI
Assembly: Xareus.Scenarios.Unity.Edition.dll
Syntax
public abstract class AMovableElementUI : AClickableElementUI
Constructors
AMovableElementUI(CanvasUI)
Declaration
protected AMovableElementUI(CanvasUI canvas)
Parameters
Fields
isMoving
Declaration
Field Value
moved
Declaration
Field Value
Properties
Id
Id.
NOTE : Cannot be modified after initialization
Declaration
public abstract string Id { get; }
Property Value
Methods
OnEndMove(Vector2)
Declaration
protected virtual void OnEndMove(Vector2 delta)
Parameters
Type |
Name |
Description |
Vector2 |
delta |
|
OnMouseDown(MouseDownEvent)
Declaration
protected override void OnMouseDown(MouseDownEvent evt)
Parameters
Overrides
OnMouseMove(MouseMoveEvent)
Declaration
protected virtual void OnMouseMove(MouseMoveEvent evt)
Parameters
OnMouseUp(MouseUpEvent)
Declaration
protected override void OnMouseUp(MouseUpEvent evt)
Parameters
Overrides
OnMoved(Vector2)
Declaration
protected virtual void OnMoved(Vector2 delta)
Parameters
Type |
Name |
Description |
Vector2 |
delta |
|
OnStartMove(Vector2)
Declaration
protected virtual void OnStartMove(Vector2 delta)
Parameters
Type |
Name |
Description |
Vector2 |
delta |
|
Events
EndMove
Declaration
public event EventHandler<AMovableElementUI.MovableElementUIMoved> EndMove
Event Type
Moved
Declaration
public event EventHandler<AMovableElementUI.MovableElementUIMoved> Moved
Event Type
StartMove
Declaration
public event EventHandler<AMovableElementUI.MovableElementUIMoved> StartMove
Event Type