Cursor: contains functions and data for manipulating the mouse cursor - Interface to QuestCursor.
Eg:
Cursor.Hide();
Cursor.AnimationOverride = "SillyCursor";
if ( Cursor.NoneCursorActive == false )
E.ProcessClick(...);
|
bool | Visible [get, set] |
| Shows or hides the mouse cursor.
|
|
string | AnimationOverride [get, set] |
| Gets/Sets a cursor animation that overrides any other. (ones set in the prop, etc)
|
|
string | AnimationClickable [get, set] |
| Gets/Sets the default animation that plays when mouse is over a clickable object.
|
|
string | AnimationNonClickable [get, set] |
| Gets/Sets the default animation that plays when mouse is NOT over a clickable object.
|
|
string | AnimationUseInv [get, set] |
| Gets/Sets the default animation that plays when there's an active inventory item (if not using inventory items)
|
|
string | AnimationOverGui [get, set] |
| Gets/Sets the default animation that plays when the mosue is over gui.
|
|
bool | HideWhenBlocking [get, set] |
| Gets/Sets whether the mouse should be hidden when there's a blocking script.
|
|
bool | NoneCursorActive [get] |
| Returns true if cursor is hovering over something with a cursor set to "None".
|
|
bool | InventoryCursorOverridden [get] |
| Returns true if cursor is hovering over something with a cursor set as one of the "Inventory Override Anims" set in the inspector. Used for "exit" hotspot arrow cursors, etc.
|
|
Vector2 | PositionOverride [get, set] |
| Gets/Sets the mouse cursor position, overiding the actual position of the mouse. Reset with "ClearPositionOverride()".
|
|
bool | HasPositionOverride [get] |
| True if SetPositionOverride() was called or PositionOverride was set.
|
|
Color | InventoryOutlineColor [get, set] |
| Outline colour used to highlight inventory (pixel art only)
|
|
|
void | ResetAnimationOverride () |
| Disables any AnimationOverride, returning to default behaviour.
|
|
void | PlayAnimation (string anim) |
| Plays an animation on the cursor, returning to default once the animation ends.
|
|
void | StopAnimation () |
| Stops any playing animation, returning to default behaviour.
|
|
void | SetPositionOverride (Vector2 position) |
| Sets the mouse cursor position, overiding the actual position of the mouse. Reset with "ClearPositionOverride()".
|
|
void | ClearPositionOverride () |
| Removes any position override from the cursor, returning it to normal mouse position.
|
|
QuestCursorComponent | GetInstance () |
| Gets the QuestCursorComponent of the cursor's game object.
|
|