WoW:API SetCursor: Difference between revisions

(revision)
Line 6: Line 6:
;cursor: String - one of the following graphic descriptors:
;cursor: String - one of the following graphic descriptors:
:* Path to a cursor graphic.
:* Path to a cursor graphic.
:* "XX_CURSOR", where XX is a capitalized version of a filename in the Interface\CURSORS folder.
:* "xx.blp", where xx is a filename in the Interface\CURSORS folder. For example, if you are trying to set the cursor to taxi.blp: SetCursor("taxi.blp"). You can also use a capitalized version of the filename: SetCursor("TAXI.BLP").
:* Non-existent path; cursor is hidden.
:* Non-existent path; cursor is hidden.
:* nil; cursor is reset to default.
:* nil; cursor is reset to default.
Line 12: Line 12:
== Returns ==
== Returns ==
;changed : 1 if cursor graphic is changed, nil otherwise.
;changed : 1 if cursor graphic is changed, nil otherwise.
NOTE: after 3.1, this returns true every time regardless of what the graphic was previously and what you tried to change it to.


== Details ==
== Details ==
Anonymous user