Poster: Tem at 5/1/2006 1:19:51 AM PDT Subject: API Request: SetCusorFile(file) |
| |
I've often wanted to change the cursor to a custom cursor to indicate to the user what kind of action they can perform with the mouse (such as a 'double arrow' cursor to indicate that clicking and dragging will resize the frame). We *can* change the cursor, but we are very limited in the choices (only the standard cursors). This is somewhat handy, but has a major drawback: people are used to those built-in cursors indicating other things like casting a spell or looting a corpse and using them for something else can easily confuse the user. Also, there are addons out there that skin the interface art including the cursor. At the moment they must use a file override to acheive this. So, I'm requesting a way to set the cursor to a custom texture without having to override one of the defaults to achieve it.
Something like SetCursorFile(file) that accepts a path to a cursor file and sets the cursor to that file would be perfect :).[ post edited by Tem ]
What more work?
I don't wanna do that.
Yes m'Lord.
|
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=370657&p=#post370657 |
| |
Poster: slouken at 5/1/2006 11:11:28 AM PDT Subject: Re: API Request: SetCusorFile(file) |
| |
Added for 1.11:
* SetCursor() can now be passed a 32x32 texture filename, as well as a cursor mode, or nil to reset the cursor.
|
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=370657&p=#post370897 |
Poster: slouken at 5/1/2006 11:20:03 AM PDT Subject: Re: API Request: SetCusorFile(file) |
| |
It's pretty expensive. The texture needs to be loaded from disk each time.
|
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=370657&p=#post370906 |
Poster: slouken at 5/1/2006 12:32:23 PM PDT Subject: Re: API Request: SetCusorFile(file) |
| |
Q u o t e:
I long for the day that when I am casting a spell instead of the hand it's a fireball or a curse it's a jabbering skull....do you have any idea how much fun you can have using stuff like this??
This will pretty much only work for the UI, e.g.
OnEnter: SetCursor("cool 32x32 texture")
OnLeave: SetCursor(nil)
|
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=370657&p=#post370983 |