Changeset 247:5b9cd693fe7c


Ignore:
Timestamp:
Sep 5, 2009, 12:28:21 PM (11 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@248
Message:

Add sprite cursors for equipment buying.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/gameboard.py

    r245 r247  
    100100        for equipment_cls in equipment.EQUIPMENT:
    101101            self.add_tool_button(equipment_cls.NAME.title(), equipment_cls,
    102                     cursors.cursors.get(equipment_cls.NAME, None))
     102                    cursors.cursors.get('buy', None))
    103103        self.add_spacer(30)
    104104
     
    280280        if buildings.is_building(tool):
    281281            sprite_curs = sprite_cursor.SpriteCursor(tool.IMAGE, self.tv, tool.BUY_PRICE)
    282         if tool == constants.TOOL_BUY_FENCE:
     282        elif equipment.is_equipment(tool):
     283            sprite_curs = sprite_cursor.SpriteCursor(tool.CHICKEN_IMAGE_FILE, self.tv)
     284        elif tool == constants.TOOL_BUY_FENCE:
    283285            sprite_curs = sprite_cursor.SpriteCursor("tiles/fence.png", self.tv)
    284286        self.set_cursor(cursor, sprite_curs)
Note: See TracChangeset for help on using the changeset viewer.