Changeset 68:6b8ac424da83


Ignore:
Timestamp:
Aug 31, 2009, 9:41:34 PM (11 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@69
Message:

Add button for finishing day. Remove debugging print.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/gameboard.py

    r67 r68  
    3434            self.add_tool_button("Buy %s" % (building_cls.NAME,), building_cls)
    3535
     36        day_done_button = gui.Button("Finished Day")
     37        day_done_button.connect(gui.CLICK, self.day_done)
     38        self.tr()
     39        self.td(day_done_button, style={"padding_top": 30})
     40
     41    def day_done(self):
     42        import engine
     43        pygame.event.post(engine.START_NIGHT)
     44
    3645    def update_cash_counter(self, amount):
    3746        self.cash_counter.update_value("Groats: %s" % amount)
     
    247256           """
    248257        tile_to_building = dict((b.TILE_NO, b) for b in buildings.BUILDINGS)
    249         print tile_to_building
    250258
    251259        w, h = self.tv.size
Note: See TracChangeset for help on using the changeset viewer.