WoW API: SetCursor

From AddOn Studio
Jump to navigation Jump to search

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.