Show / Hide Table of Contents

Class Cursor

Class representing the cursor of the local player

Inheritance
Object
Cursor
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Client.IO
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
Type Description
Int32
| 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
Type Description
Vector2
| 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
Type Description
Vector2
| Improve this Doc View Source

Type

Get the type of the current cursor image.

Declaration
public static string Type { get; }
Property Value
Type Description
String
| Improve this Doc View Source

Visible

Get the visibility of the cursor

Declaration
public static bool Visible { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

WorldPosition

Get the world position of the cursor

Declaration
public static Vector3 WorldPosition { get; }
Property Value
Type Description
Vector3

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
Type Name Description
Boolean visible
Boolean toggleControls
Returns
Type Description
Boolean

Events

| Improve this Doc View Source

OnClick

Declaration
public static event Cursor.OnClickHandler OnClick
Event Type
Type Description
Cursor.OnClickHandler
| Improve this Doc View Source

OnDoubleClick

Declaration
public static event Cursor.OnDoubleClickHandler OnDoubleClick
Event Type
Type Description
Cursor.OnDoubleClickHandler
| Improve this Doc View Source

OnMove

Declaration
public static event Cursor.OnMoveHandler OnMove
Event Type
Type Description
Cursor.OnMoveHandler
  • Improve this Doc
  • View Source
Back to top Generated by DocFX