using javascript for new cursors?

For AI and campaign script related discussions and questions
Post Reply
Originway
Trained
Trained
Posts: 412
Joined: 08 Aug 2012, 06:22

using javascript for new cursors?

Post 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?
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

Re: using javascript for new cursors?

Post 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
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Originway
Trained
Trained
Posts: 412
Joined: 08 Aug 2012, 06:22

Re: using javascript for new cursors?

Post 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.
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: using javascript for new cursors?

Post by Per »

Cursors are hard-coded in the SDL backend. So that is not so easy to add.
Post Reply