Class BasicInventoryElement
A basic implementation of an inventory element
Inherited Members
Namespace: WeaverCore.Inventory
Assembly: WeaverCore.dll
Syntax
public class BasicInventoryElement : InventoryElement
Properties
| Edit this page View SourceHighlightable
Can this inventory element be highlighted by the cursor?
Declaration
public override bool Highlightable { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceSelectable
Can the player click on this inventory element?
Declaration
public override bool Selectable { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
| Edit this page View SourceNavigateTo(MoveDirection)
Called when the player wants to move to a nearby element. For example, if the player wants to move up in the UI, this function specifies which element the player will go to next
Declaration
public override InventoryElement NavigateTo(InventoryElement.MoveDirection move)
Parameters
Type | Name | Description |
---|---|---|
InventoryElement.MoveDirection | move | The movement direction the player is going in |
Returns
Type | Description |
---|---|
InventoryElement | The next element to move to, or null if there is no element to move to |
Overrides
| Edit this page View SourceOnClick()
Called when the player clicks on this element. Selectable must be set to true for this to trigger
Declaration
public override void OnClick()