___________ _________ _____ __
\_ _____/______ ____ ____ \_ ___ \____________ _/ ____\/ |_
| __) \_ __ \_/ __ \_/ __ \/ \ \/\_ __ \__ \\ __\\ __|
| \ | | \/\ ___/\ ___/\ \____| | \// __ \| | | |
\___ / |__| \___ >\___ >\______ /|__| (____ /__| |__|
\/ \/ \/ \/ \/
______________________ ______________________
T H E W A R B E G I N S
FreeCraft - A free fantasy real time strategy game engine
(C) Copyright 2002-2003 by The FreeCraft Project. Distributed under the "GNU General Public License"
This could also be defined in own levels.
(define-icon ident 'tileset tileset 'size '(x y) type '(index file))
(define summer-icons-file "tilesets/summer/icons.png")
(define-icon 'icon-peasant 'tileset 'tileset-summer 'size '(46 38) 'normal
'(0 summer-icons-file))
Define the peasant icon referenced with icon-peasant for the summer tileset.
It is a normal static icon with a sizeof 46x38 pixel. The graphic is loaded
from summer-icons-file, which is defined to be the file
"tilesets/summer/icons.png" and is the first icon in this file.
This is an alternative name for the icon.
(define-icon-alias alias icon)
(define-icon-alias 'icon-raise-dead 'icon-skeleton)
Now it is possible to get the icon "skeleton" also with the name
"icon-raise-dead".
(define-icon-wc-names icon-0 icon-1 ... icon-195)
(define-icon-wc-names
'icon-peasant 'icon-peon 'icon-footman ... )
This is the default icon mapping.
(set-icon-size! width height)
(set-icon-size! 46 38)
Sets the icon size to 46x38.
(set-icons-per-row! icons)
(set-icons-per-row! 5)
Sets the number of icons per row to 5.