Changeset 330:c6e9e64ddaa2


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

Show total number of days and mark days in red when it's the last day.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/gameboard.py

    r326 r330  
    827827    def advance_day(self):
    828828        self.days += 1
    829         self.toolbar.update_day_counter(self.days)
     829        self.toolbar.day_counter.style.color = (255, 0, 0)
     830        self.toolbar.update_day_counter("%s/%s" % (self.days, constants.TURN_LIMIT))
    830831
    831832    def clear_foxes(self):
Note: See TracChangeset for help on using the changeset viewer.