using javascript for new cursors?
-
Originway
- Trained

- Posts: 412
- Joined: 08 Aug 2012, 06:22
using javascript for new cursors?
last request for today
, can you make it so we have custom mouse cursor objects with color that we can change with javascript?
-
aubergine
- Professional

- Posts: 3462
- Joined: 10 Oct 2010, 00:58
Re: using javascript for new cursors?
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
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
-- https://warzone.atlassian.net/wiki/display/GO
-
Originway
- Trained

- Posts: 412
- Joined: 08 Aug 2012, 06:22
Re: using javascript for new cursors?
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.
-
Per
- Warzone 2100 Team Member

- Posts: 3780
- Joined: 03 Aug 2006, 19:39
Re: using javascript for new cursors?
Cursors are hard-coded in the SDL backend. So that is not so easy to add.