Mercurial > rinkhals
comparison gamelib/gameboard.py @ 294:29e9683055dc
Explain horrible hack
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 05 Sep 2009 16:19:16 +0000 |
parents | bf271e857157 |
children | 88a626202591 |
comparison
equal
deleted
inserted
replaced
293:78c49d87e175 | 294:29e9683055dc |
---|---|
116 self.add_spacer(20) | 116 self.add_spacer(20) |
117 | 117 |
118 self.add_tool("Finished Day", self.day_done) | 118 self.add_tool("Finished Day", self.day_done) |
119 | 119 |
120 self.anim_clear_tool = False # Flag to clear the tool on an anim loop | 120 self.anim_clear_tool = False # Flag to clear the tool on an anim loop |
121 # pgu's tool widget fiddling happens after the tool action, so calling | |
122 # clear_tool in the tool's action doesn't work, so we punt it to | |
123 # the anim loop | |
121 | 124 |
122 def day_done(self): | 125 def day_done(self): |
123 import engine | 126 import engine |
124 pygame.event.post(engine.START_NIGHT) | 127 pygame.event.post(engine.START_NIGHT) |
125 | 128 |