Page 1 of 1
using javascript for new cursors?
Posted: 15 Nov 2012, 22:46
by Originway
last request for today

, can you make it so we have custom mouse cursor objects with color that we can change with javascript?
Re: using javascript for new cursors?
Posted: 15 Nov 2012, 23:02
by aubergine
How would you know when to change them? Or would there be something like an array that lists all the different states then you could specify which cursor to use? BTW, there are already some coloured cursors in base.wz/images/intfac/image_cursor*.png
Re: using javascript for new cursors?
Posted: 15 Nov 2012, 23:09
by Originway
it would be used as a new action the micro-AI will do. In this case we want to change the icon to a eyeball to show it is in infiltrate mode.
Re: using javascript for new cursors?
Posted: 15 Nov 2012, 23:37
by Per
Cursors are hard-coded in the SDL backend. So that is not so easy to add.