(Formerly known as GetCursorMode, which is now obsolete)
(Formerly known as SetCursorMode, which is now obsolete)
int Mouse.Mode;
Gets/sets the current mode of the mouse cursor. This is one of the cursor modes
from your Cursors tab (but with eMode prepended). For example, a cursor mode called "Walk to"
on your cursors tab would be eModeWalkto.
Setting this changes both the appearance of the cursor and the Cursor Mode
used if the player clicks on a hotspot.
Example:
if (mouse.Mode == eModeWalkto)
{
// code here
}
will execute the code only if the current cursor mode is MODE 0 (WALK).
See Also: Mouse.SaveCursorUntilItLeaves,
Mouse.UseModeGraphic, Mouse.SelectNextMode
|