Changeset 345:279974cc0698


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

Only set color of days left to red when there is only one day left.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/gameboard.py

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