WoW:API SetCursor: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
Line 25: Line 25:


* The option to pass ''nil'' was added in 1.11.
* The option to pass ''nil'' was added in 1.11.
* For custom textures: Appears to only work with blp files
* For custom textures: The graphic must be an UNCOMPRESSED BLP file
* For custom textures: Appears to only work outside of hardware cursor mode (there may be more details)
* For custom textures: Compressed BLP files will work for software, but not hardware cursors.

Revision as of 17:21, 6 July 2006

WoW API < SetCursor

SetCursor(cursor);

Parameters

Arguments

cursor
String - Can be one of these:
  • "ATTACK_CURSOR"
  • "ATTACK_ERROR_CURSOR"
  • "BUY_CURSOR"
  • "BUY_ERROR_CURSOR"
  • "CAST_CURSOR"
  • "CAST_ERROR_CURSOR"
  • "POINT_CURSOR"
  • "POINT_ERROR_CURSOR"
  • nil - resets cursor
  • A path to a 32x32 cursor graphic


Details

  • The option to pass nil was added in 1.11.
  • For custom textures: The graphic must be an UNCOMPRESSED BLP file
  • For custom textures: Compressed BLP files will work for software, but not hardware cursors.