SetCursor (Kernel)

SetCursor(resourceNumber [visible x y])

Important

SCI0 only (See below for the SCI1.1 functions)

Changes the mouse cursor, or shows and hides it.

Parameters:
  • resourceNumber (number) – Number of the cursor resource to use.
  • visible (boolean) – If TRUE or unspecifed, the cursor is shown. Otherwise, it is hidden.
  • x (number) – The x position at which to place the cursor.
  • y (number) – The y position at which to place the cursor.
SetCursor(command)

Important

SCI1.1 only

Parameters:command (number) – A command indicating what do do.

Cursor commands:

Command Description
0 Hide cursor.
-1 Clear zoom zone.
-2 Reset zoom zone.
any other Show cursor.
SetCursor(x y)

Important

SCI1.1 only

Sets the position of the cursor.

Parameters:
  • x (number) – The x position at which to place the cursor.
  • y (number) – The y position at which to place the cursor.
SetCursor(left top right bottom)

Sets the move zone of the cursor.

Important

SCI1.1

Parameters:
  • left (number) – The left side of the move zone.
  • top (number) – The top of the move zone.
  • right (number) – The right side of the move zone.
  • bottom (number) – The bottom of the move zone.

Changes the mouse cursor, or shows and hides it.

SetCursor(view loop cel [hotX hotY])

Sets the view, loop and cel of the cursor, and optionally the hot spot.

Important

SCI1.1

Parameters:
  • view (number) – View number.
  • loop (number) – Loop number.
  • cel (number) – Cel number.
  • hotX (number) – The hotspot x coordinate.
  • hotY (number) – The hotspot y coordinate.