Cursors
Moderators: MR.D, Moderators
Cursors
I see a lot of people still using the cursors I made a while ago, and since I'm currently on a mac, and can't map or mod really, I thought I would make some more cursors, so modders would have a few options. So first question - it's been a while and I haven't been following everything... anything new I should know about re:cursors? Second question- I'm working on a psuedo-military set, adapted from the APP-6a NATO map symbols (which was hard, since most of the symbols are for types of things, or places, and not for types of actions). Once I get done with that, any specific things people would like to see?
1. New Animated Cursor Format:
http://spring.clan-sy.com/phpbb/viewtopic.php?t=8025
https://taspring.clan-sy.com/svn/spring ... ent/anims/
2. Cursor Image Types
Cursors can now use PNG or TGA instead of BMP. PNG and TGA are
the preferred formats as they can use real translucency instead of the
hardcoded color value for BMP transparency.
3. There are several new default cursors, and some can now be used as
backups. Here's the full list from SVN code:
http://spring.clan-sy.com/phpbb/viewtopic.php?t=8025
https://taspring.clan-sy.com/svn/spring ... ent/anims/
2. Cursor Image Types
Cursors can now use PNG or TGA instead of BMP. PNG and TGA are
the preferred formats as they can use real translucency instead of the
hardcoded color value for BMP transparency.
3. There are several new default cursors, and some can now be used as
backups. Here's the full list from SVN code:
Code: Select all
AddMouseCursor("", "cursornormal", mTopLeft, false);
AddMouseCursor("Area attack", "cursorareaattack", mCenter, false);
AddMouseCursor("Area attack", "cursorattack", mCenter, false); // backup
AddMouseCursor("Attack", "cursorattack", mCenter, false);
AddMouseCursor("BuildBad", "cursorbuildbad", mCenter, false);
AddMouseCursor("BuildGood", "cursorbuildgood", mCenter, false);
AddMouseCursor("Capture", "cursorcapture", mCenter, false);
AddMouseCursor("Centroid", "cursorcentroid", mCenter, false);
AddMouseCursor("DeathWait", "cursordwatch", mCenter, false);
AddMouseCursor("DeathWait", "cursorwait", mCenter, false); // backup
AddMouseCursor("DGun", "cursordgun", mCenter, false);
AddMouseCursor("DGun", "cursorattack", mCenter, false); // backup
AddMouseCursor("Fight", "cursorfight", mCenter, false);
AddMouseCursor("Fight", "cursorattack", mCenter, false); // backup
AddMouseCursor("GatherWait", "cursorgather", mCenter, false);
AddMouseCursor("GatherWait", "cursorwait", mCenter, false); // backup
AddMouseCursor("Guard", "cursordefend", mCenter, false);
AddMouseCursor("Load units", "cursorpickup", mCenter, false);
AddMouseCursor("Move", "cursormove", mCenter, false);
AddMouseCursor("Patrol", "cursorpatrol", mCenter, false);
AddMouseCursor("Reclaim", "cursorreclamate", mCenter, false);
AddMouseCursor("Repair", "cursorrepair", mCenter, false);
AddMouseCursor("Resurrect", "cursorrevive", mCenter, false);
AddMouseCursor("Resurrect", "cursorrepair", mCenter, false); // backup
AddMouseCursor("Restore", "cursorrestore", mCenter, false);
AddMouseCursor("Restore", "cursorrepair", mCenter, false); // backup
AddMouseCursor("SelfD", "cursorselfd", mCenter, false);
AddMouseCursor("SquadWait", "cursornumber", mCenter, false);
AddMouseCursor("SquadWait", "cursorwait", mCenter, false); // backup
AddMouseCursor("TimeWait", "cursortime", mCenter, false);
AddMouseCursor("TimeWait", "cursorwait", mCenter, false); // backup
AddMouseCursor("Unload units", "cursorunload", mCenter, false);
AddMouseCursor("Wait", "cursorwait", mCenter, false);
Last edited by trepan on 17 Apr 2007, 03:14, edited 1 time in total.
So the complete list is:
cursorareaattack
cursorattack
cursorbuildbad (used in the minimap)
cursorbuildgood (used in the minimap)
cursorcapture
cursorcentroid (used during formation moves)
cursordefend
cursordgun
cursordwatch
cursorfight
cursorgather
cursormove
cursornormal (default cursor)
cursornumber
cursorpatrol
cursorpickup
cursorreclamate
cursorrepair
cursorrestore
cursorrevive
cursorselfd
cursortime
cursorunload
cursorwait
cursorareaattack
cursorattack
cursorbuildbad (used in the minimap)
cursorbuildgood (used in the minimap)
cursorcapture
cursorcentroid (used during formation moves)
cursordefend
cursordgun
cursordwatch
cursorfight
cursorgather
cursormove
cursornormal (default cursor)
cursornumber
cursorpatrol
cursorpickup
cursorreclamate
cursorrepair
cursorrestore
cursorrevive
cursorselfd
cursortime
cursorunload
cursorwait
I've just added the "hotspot" control word to the *.txt animated cursor format.
If it isn't specified, then the Spring defaults are used. The only valid values are
"topleft" and "center".
ex: hotspot topleft
P.S. Lua can add and change cursors in-game (including the hotspot)
... that was the lame quip in the previous post.
If it isn't specified, then the Spring defaults are used. The only valid values are
"topleft" and "center".
ex: hotspot topleft
P.S. Lua can add and change cursors in-game (including the hotspot)
... that was the lame quip in the previous post.
Something I forgot to mention, the new spec file format (using a *.txt file),
avoids the problem of having mixed numbered images from different sources.
This could happen if the mod provides cursornormal_[0 - 10].png and the
default archive provides cursornormal[0 - 20].png. The mod images will override
the default ones, so you'll end up with a mixed bag.
avoids the problem of having mixed numbered images from different sources.
This could happen if the mod provides cursornormal_[0 - 10].png and the
default archive provides cursornormal[0 - 20].png. The mod images will override
the default ones, so you'll end up with a mixed bag.
Wow, lots of fun new stuff. One question- to use the hotspot command, would it look something like this (as a random example):
Code: Select all
frame anims/cursordwatch_0.png 0.100
frame anims/cursordwatch_1.png 0.100 hotspot topleft
frame anims/cursordwatch_2.png 0.100
Would it be difficult to include a hotspot map? The map is a 2 bit black/white image with the same measurements as the cursor images. It's entirely black and you determine where the hot spot is with a single white pixel.trepan wrote:I've just added the "hotspot" control word to the *.txt animated cursor format.
If it isn't specified, then the Spring defaults are used. The only valid values are
"topleft" and "center".
ex: hotspot topleft
P.S. Lua can add and change cursors in-game (including the hotspot)
... that was the lame quip in the previous post.
Anway fancy cursors here I come... :)