WoW:API SetCursor: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
Line 19: Line 19:
:* nil - resets cursor  
:* nil - resets cursor  


:* A path to a 32x32 cursor graphic  
:* A path to a 32x32 cursor graphic


=== Returns ===
:* 1 - if succesful, otherwise nil


== Details ==
== Details ==

Revision as of 09:34, 5 October 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


Returns

  • 1 - if succesful, otherwise nil

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.