AtavismCursor Class

Namespace
Atavism
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["AtavismCursor"] class Type type-node

Syntax

public class AtavismCursor : MonoBehaviour

Fields

Properties

Name Value Summary
ActivateButton int
Instance AtavismCursor
static
PickupButton int
UguiIconBeingDragged bool

Methods

Name Value Summary
CheckCursorFrameState() void
ClearItemClickedOverride(ItemClickedOverride) void
ClearMouseOverObject(AtavismNode) void
ClearUGUIActivatableClickedOverride(UGUIActivatableClickedOverride) void
ClickableObjectHandler(object, object) void
CursorHasAbility() bool
CursorHasBag() bool
CursorHasItem() bool
DeleteCursorItem() void
Sends a message to the server telling it to delete the whole item stack that the cursor currently holds.
FrameEntered(string) void
FrameLeft(string) void
GetCursorAbility() AtavismAbility
GetCursorItem() AtavismInventoryItem
HandleItemUseOverride(AtavismInventoryItem) bool
HandleUGUIActivatableUseOverride(UGUIAtavismActivatable) bool
IsMouseOverUI() bool
MerchantItemEntered() void
MerchantItemLeft() void
OnEvent(AtavismEventData) void
OnLeftClick(bool, AtavismNode) void
OnRightClick(bool, AtavismNode) void
PickupOrPlaceBagItem(int, int, AtavismInventoryItem) void
Pick up (or drop) an item from a given container and slot. This will set the cursor to the item.
PickupOrPlaceEquippedItem(string, AtavismInventoryItem) void
Try to pickup an item that is equipped, or place an item that can be equipped if the cursor is currently holding an item.
PlaceCursorBag(int) void
Places the cursor bag in a new slot. Used to move a bag from one slot to another.
PlaceCursorBagAsItem(int, int) void
Places the Bag the Cursor currently holds into the players Inventory in the specified bag at the specified slot.
PlaceCursorItemAsBag(int) void
Places the cursor item in the specified bag slot. If the item is not a bag, nothing will happen
PlaceCursorItemInInventory(int, int) void
Sends a message to the server to place the item the cursor currently holds into the specified Bag at the specified slot.
ResetCursor() void
Reset the cursor to its initial state (point)
SetBag(Bag) void
Sets the cursor bag to the specified bag. This will result in the bags icon replacing the cursor and allow it to be placed.
SetCursor(CursorState) void
SetCursorAbility(AtavismAbility) void
Sets the cursor item to the specified item. This will result in the items icon replacing the cursor and allow it to be placed.
SetCursorItem(AtavismInventoryItem) void
Sets the cursor item to the specified item. This will result in the items icon replacing the cursor and allow it to be placed.
SetItemClickedOverride(ItemClickedOverride) void
SetMouseOverObject(AtavismNode, Texture2D, float) void
SetUGUIActivatableClickedOverride(UGUIActivatableClickedOverride) void
StartItemThrowaway() void
Send an event out to show a confirm delete item dialogue.