Gamedev:MouseCursors: Difference between revisions

From Spring
Jump to navigationJump to search
Jk (talk | contribs)
m Created page with "Cursors for Spring are stored in the <code>Anims</code> subdirectory. They are simply in Windows .BMP format. To make animated cursors, just make a sequence where the filenames ..."
 
Jk (talk | contribs)
restructure
Line 1: Line 1:
Cursors for Spring are stored in the <code>Anims</code>
=Mouse Cursors=
==Location==
Cursors for Spring are stored in the <code>Anims</code> directory.


subdirectory. They are simply in Windows .BMP format. To make animated cursors, just make a sequence where the filenames start with '_0' at the end of the first in the sequence, going on sequentially until the last frame.
==Supported Image Formats==
The cursors have to be in either:
* png
* tga
* bmp
To make transparent sections in bmp's use RGB(84, 84, 252).


==Filename==
Even if your cursor isn't animated, it must have the _0 at the end of its name.
==Animated Cursors==
To make animated cursors, just make a sequence where the filenames start with '_0' at the end of the first in the sequence, going on sequentially until the last frame.
==Default Cursors==
All cursors must also be present in one form or another, even if they are not used by your mod or else Spring will whine.
Here's a list of the various cursor names used in the game:
Here's a list of the various cursor names used in the game:


Line 58: Line 73:
</div>
</div>


Cursors should generally be limited to 16x16 to 32x32 pixels in size, but there is no limit. To make transparent sections, use the color RGB(84, 84, 252). Even if there is only one cursor in your sequence, it must have the _0 at the end of its name. All cursors must also be present in one form or another, even if they are not used by your mod or else Spring will whine.


[[Category:Game development]]
[[Category:Game development]]

Revision as of 02:47, 25 February 2011

Mouse Cursors

Location

Cursors for Spring are stored in the Anims directory.

Supported Image Formats

The cursors have to be in either:

  • png
  • tga
  • bmp

To make transparent sections in bmp's use RGB(84, 84, 252).

Filename

Even if your cursor isn't animated, it must have the _0 at the end of its name.

Animated Cursors

To make animated cursors, just make a sequence where the filenames start with '_0' at the end of the first in the sequence, going on sequentially until the last frame.

Default Cursors

All cursors must also be present in one form or another, even if they are not used by your mod or else Spring will whine. Here's a list of the various cursor names used in the game:

Sequence name Description
cursorattack_0 Attack Command Cursor
cursorcapture_0 Capture Command Cursor
cursordefend_0 Guard Command Cursor
cursormove_0 Move Command Cursor
cursornormal_0 Default (unactive) cursor
cursorpatrol_0 Patrol Command Cursor
cursorpickup_0 Load Command Cursor
cursorreclamate_0 Reclaim Command Cursor
cursorrepair_0 Repair Command Cursor
cursorrevive_0 Revive (resurrect) Command Cursor
cursorunload_0 Unload Command Cursor