WoW:API SetCursor: Difference between revisions

Note new (1.11) possibility to pass path to graphic. Note that it is uncertain how it can be used.
(fixed formatting, added {{WoW API}})
(Note new (1.11) possibility to pass path to graphic. Note that it is uncertain how it can be used.)
Line 1: Line 1:
"cursor" can be one of these.
{{wowapi}}


* ATTACK_CURSOR
SetCursor(cursor);
* ATTACK_ERROR_CURSOR
* BUY_CURSOR
* BUY_ERROR_CURSOR
* CAST_CURSOR
* CAST_ERROR_CURSOR
* POINT_CURSOR
* POINT_ERROR_CURSOR


{{WoW API}}
== 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.
 
* The option to pass a path to a bitmap was added in 1.11. It is yet unclear if it is possible to use graphics outside Blizzard's .mpq's.
Anonymous user