Mercurial > rinkhals
comparison 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 |
comparison
equal
deleted
inserted
replaced
122:d2b19131d537 | 123:a7d803275a23 |
---|---|
1 """Constant definitions for the icons we use""" | 1 """Constant definitions for the icons we use""" |
2 | 2 |
3 from pgu.gui import Image | 3 from pgu.gui import Image |
4 | 4 |
5 import data | 5 import imagecache |
6 | 6 |
7 KILLED_FOX = Image(data.filepath('icons/killed_fox.png')) | 7 KILLED_FOX = Image(imagecache.load_image('icons/killed_fox.png')) |
8 CHKN_ICON = Image(data.filepath('icons/chkn.png')) | 8 CHKN_ICON = Image(imagecache.load_image('icons/chkn.png')) |
9 EMPTY_NEST_ICON = Image(imagecache.load_image('sprites/emptynest.png')) | |
10 CHKN_NEST_ICON = Image(imagecache.load_image('sprites/chknnest.png')) |