Changeset 123:a7d803275a23


Ignore:
Timestamp:
Sep 2, 2009, 9:00:15 PM (11 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@124
Message:

Load icons via imagecache.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/icons.py

    r78 r123  
    33from pgu.gui import Image
    44
    5 import data
     5import imagecache
    66
    7 KILLED_FOX = Image(data.filepath('icons/killed_fox.png'))
    8 CHKN_ICON = Image(data.filepath('icons/chkn.png'))
     7KILLED_FOX = Image(imagecache.load_image('icons/killed_fox.png'))
     8CHKN_ICON = Image(imagecache.load_image('icons/chkn.png'))
     9EMPTY_NEST_ICON = Image(imagecache.load_image('sprites/emptynest.png'))
     10CHKN_NEST_ICON = Image(imagecache.load_image('sprites/chknnest.png'))
Note: See TracChangeset for help on using the changeset viewer.