Class DefaultCursor
The default cursor used in an inventory pane
Inherited Members
Namespace: WeaverCore.Inventory
Assembly: WeaverCore.dll
Syntax
public class DefaultCursor : Cursor
Properties
| Edit this page View SourceCursorPosition
The current position of the cursor
Declaration
public override Vector3 CursorPosition { get; }
Property Value
Type | Description |
---|---|
Vector3 |
Overrides
Methods
| Edit this page View SourceCanMove()
Can the cursor be moved to a new element?
Declaration
public override bool CanMove()
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceOnBegin(InventoryElement)
Called when the inventory pane is opened
Declaration
protected override void OnBegin(InventoryElement beginElement)
Parameters
Type | Name | Description |
---|---|---|
InventoryElement | beginElement | The element the cursor should start on |
Overrides
| Edit this page View SourceOnEnd()
Called when the inventory pane is closed
Declaration
protected override void OnEnd()
Overrides
| Edit this page View SourceOnHide()
Called when the cursor is to become invisible
Declaration
protected override void OnHide()
Overrides
| Edit this page View SourceOnMoveTo(InventoryElement)
Called when the cursor is to move to a new InventoryElement
Declaration
protected override void OnMoveTo(InventoryElement element)
Parameters
Type | Name | Description |
---|---|---|
InventoryElement | element | The new inventory element to move to |
Overrides
| Edit this page View SourceOnShow()
Called when the cursor is to become visible
Declaration
protected override void OnShow()