annotate gamelib/icons.py @ 123:a7d803275a23

Load icons via imagecache.
author Simon Cross <hodgestar@gmail.com>
date Wed, 02 Sep 2009 21:00:15 +0000
parents 7d043a210121
children fe1e9c18d4d7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
78
7d043a210121 Add icons for the menu
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
1 """Constant definitions for the icons we use"""
7d043a210121 Add icons for the menu
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
2
7d043a210121 Add icons for the menu
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
3 from pgu.gui import Image
7d043a210121 Add icons for the menu
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
4
123
a7d803275a23 Load icons via imagecache.
Simon Cross <hodgestar@gmail.com>
parents: 78
diff changeset
5 import imagecache
78
7d043a210121 Add icons for the menu
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
6
123
a7d803275a23 Load icons via imagecache.
Simon Cross <hodgestar@gmail.com>
parents: 78
diff changeset
7 KILLED_FOX = Image(imagecache.load_image('icons/killed_fox.png'))
a7d803275a23 Load icons via imagecache.
Simon Cross <hodgestar@gmail.com>
parents: 78
diff changeset
8 CHKN_ICON = Image(imagecache.load_image('icons/chkn.png'))
a7d803275a23 Load icons via imagecache.
Simon Cross <hodgestar@gmail.com>
parents: 78
diff changeset
9 EMPTY_NEST_ICON = Image(imagecache.load_image('sprites/emptynest.png'))
a7d803275a23 Load icons via imagecache.
Simon Cross <hodgestar@gmail.com>
parents: 78
diff changeset
10 CHKN_NEST_ICON = Image(imagecache.load_image('sprites/chknnest.png'))