Class Cursor
Class representing the cursor of the local player
Assembly: SlipeClient.dll
Syntax
public static class Cursor
Properties
|
Improve this Doc
View Source
Alpha
Get and set the opacity of the cursor (0-255)
Declaration
public static int Alpha { get; set; }
Property Value
|
Improve this Doc
View Source
Position
Get the absolute screen position of the cursor in pixel coordinates
Declaration
public static Vector2 Position { get; set; }
Property Value
|
Improve this Doc
View Source
RelativePosition
Get and set the screen position of the cursor as a relative float between 0 and 1
Declaration
public static Vector2 RelativePosition { get; }
Property Value
|
Improve this Doc
View Source
Type
Get the type of the current cursor image.
Declaration
public static string Type { get; }
Property Value
|
Improve this Doc
View Source
Visible
Get the visibility of the cursor
Declaration
public static bool Visible { get; }
Property Value
|
Improve this Doc
View Source
WorldPosition
Get the world position of the cursor
Declaration
public static Vector3 WorldPosition { get; }
Property Value
Methods
|
Improve this Doc
View Source
SetVisible(Boolean, Boolean)
Set the visibility and whether or not controls should be disabled
Declaration
public static bool SetVisible(bool visible, bool toggleControls = true)
Parameters
Returns
Events
|
Improve this Doc
View Source
OnClick
Declaration
public static event Cursor.OnClickHandler OnClick
Event Type
|
Improve this Doc
View Source
OnDoubleClick
Declaration
public static event Cursor.OnDoubleClickHandler OnDoubleClick
Event Type
|
Improve this Doc
View Source
OnMove
Declaration
public static event Cursor.OnMoveHandler OnMove
Event Type