Mercurial > rinkhals
comparison gamelib/gameboard.py @ 490:8308bef91864
fixed so that tool highlight also cleared.
author | Adrianna Pińska <adrianna.pinska@gmail.com> |
---|---|
date | Wed, 25 Nov 2009 22:08:30 +0000 |
parents | 3c9c664ccb85 |
children | e8430f93b23a |
comparison
equal
deleted
inserted
replaced
489:3c9c664ccb85 | 490:8308bef91864 |
---|---|
273 self.set_selected_tool(constants.TOOL_PLACE_ANIMALS, cursors.cursors["chicken"]) | 273 self.set_selected_tool(constants.TOOL_PLACE_ANIMALS, cursors.cursors["chicken"]) |
274 if self.toolbar.IS_DEFAULT: | 274 if self.toolbar.IS_DEFAULT: |
275 self.toolbar.toggle_move_on() | 275 self.toolbar.toggle_move_on() |
276 return | 276 return |
277 elif e.button == 2: # Middle button | 277 elif e.button == 2: # Middle button |
278 self.set_selected_tool(None, None) | 278 self.reset_states() |
279 self.unselect_all() | 279 self.unselect_all() |
280 elif e.button != 1: # Left button | 280 elif e.button != 1: # Left button |
281 return | 281 return |
282 mods = pygame.key.get_mods() | 282 mods = pygame.key.get_mods() |
283 if self.selected_tool == constants.TOOL_SELL_CHICKEN: | 283 if self.selected_tool == constants.TOOL_SELL_CHICKEN: |