# HG changeset patch # User Simon Cross # Date 1252188388 0 # Node ID c6e9e64ddaa2d32598c60454a3ac208a451f3e55 # Parent f27c2c76c425153f5483d32e91a1bbc4e5e13ccc Show total number of days and mark days in red when it's the last day. diff -r f27c2c76c425 -r c6e9e64ddaa2 gamelib/gameboard.py --- a/gamelib/gameboard.py Sat Sep 05 21:57:17 2009 +0000 +++ b/gamelib/gameboard.py Sat Sep 05 22:06:28 2009 +0000 @@ -826,7 +826,8 @@ def advance_day(self): self.days += 1 - self.toolbar.update_day_counter(self.days) + self.toolbar.day_counter.style.color = (255, 0, 0) + self.toolbar.update_day_counter("%s/%s" % (self.days, constants.TURN_LIMIT)) def clear_foxes(self): for fox in self.foxes.copy():