Mercurial > rinkhals
comparison gamelib/toolbar.py @ 512:b112bcf4d435
Add restore game button to main menu.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Thu, 26 Nov 2009 23:36:20 +0000 |
parents | 4c281ce4fc5f |
children | f84ad10a9625 |
comparison
equal
deleted
inserted
replaced
511:57f9077fb7fb | 512:b112bcf4d435 |
---|---|
179 """Save game 'dialog'.""" | 179 """Save game 'dialog'.""" |
180 savegame.SaveDialog(self.gameboard).open() | 180 savegame.SaveDialog(self.gameboard).open() |
181 | 181 |
182 def load_game(self): | 182 def load_game(self): |
183 """Load game 'dialog'.""" | 183 """Load game 'dialog'.""" |
184 savegame.RestoreDialog(self.gameboard).open() | 184 savegame.RestoreDialog(self.gameboard.restore_game).open() |
185 | 185 |
186 update_cash_counter = mkcountupdate('cash_counter') | 186 update_cash_counter = mkcountupdate('cash_counter') |
187 update_wood_counter = mkcountupdate('wood_counter') | 187 update_wood_counter = mkcountupdate('wood_counter') |
188 update_fox_counter = mkcountupdate('killed_foxes') | 188 update_fox_counter = mkcountupdate('killed_foxes') |
189 update_chicken_counter = mkcountupdate('chicken_counter') | 189 update_chicken_counter = mkcountupdate('chicken_counter') |