changeset 330:c6e9e64ddaa2

Show total number of days and mark days in red when it's the last day.
author Simon Cross <hodgestar@gmail.com>
date Sat, 05 Sep 2009 22:06:28 +0000
parents f27c2c76c425
children 17ee6bcf583d
files gamelib/gameboard.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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():