More detailed info
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1565 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
+30
-1
@@ -3,6 +3,35 @@ For *.ani, *.sml, *.med, *.big files, each line is in following format:
|
||||
filename transparent_color colormap_index hotspot_x hotspot_y
|
||||
|
||||
Filename is string, all others are int.
|
||||
-1 for transparent_color or colormap_index means it isn't used.
|
||||
|
||||
filename
|
||||
relative to the directory that .ani file is in.
|
||||
|
||||
transparent_color
|
||||
-2 : use PNG tRNS chunk transparency specification
|
||||
-1 : transparent color is not used; not transparency in the image
|
||||
(this behavior is enforced, even when tRNS is present)
|
||||
0 : for paletted images, transparent color index 0;
|
||||
special for truecolor images, makes RGB (0,0,0) transparent
|
||||
N>0 : for paletted images, transparent color index N;
|
||||
meaningless for truecolor images
|
||||
|
||||
colormap_index
|
||||
-1 : colormaps are not used for the image
|
||||
for paletted images, the palette from the image itself
|
||||
will be used
|
||||
N : for paletted images, the palette from the colormap N will
|
||||
be used (so some .ct file somewhere defines the palette);
|
||||
meaningless for truecolor images
|
||||
|
||||
hotspot_x, hotspot_y
|
||||
can both be positive of negative (or 0)
|
||||
the position of the image on the screen will be
|
||||
(draw_x - hotspot_x, draw_y - hotspot_y)
|
||||
so a positive hotspot *usually* defines the logical center of
|
||||
an image, and a negative hotspot *usually* defines the position
|
||||
of an image within some larger compound image; there are of course
|
||||
exceptions to this general rule
|
||||
|
||||
This information is parsed in libs/graphics/sdl/3do_getbody.c
|
||||
|
||||
|
||||
Reference in New Issue
Block a user