view gamelib/icons.py @ 569:3ec614e6fd4a

Replace monolithic sell equipment tool with a tool for each type of equipment.
author Simon Cross <hodgestar@gmail.com>
date Sat, 28 Nov 2009 19:59:46 +0000
parents e9393970b5f6
children 441077fab928
line wrap: on
line source

"""Constant definitions for the icons we use"""

from pgu.gui import Image

import imagecache

KILLED_FOX = Image(imagecache.load_image('icons/killed_fox.png'))
CHKN_ICON = Image(imagecache.load_image('icons/chkn.png'))
EGG_ICON = Image(imagecache.load_image('icons/egg.png'))
WOOD_ICON = Image(imagecache.load_image('icons/wood.png'))
GROATS_ICON = Image(imagecache.load_image('icons/groats.png'))
EMPTY_NEST_ICON = Image(imagecache.load_image('sprites/nest.png'))
DAY_ICON = Image(imagecache.load_image('icons/sun.png'))

def animal_icon(animal):
    return Image(animal.image_left)