# HG changeset patch # User Stefano Rivera # Date 1328988797 -7200 # Node ID 25f3adbff00af78997f5830bc4ab0e3580aa20ca # Parent cb01c3a09ee1a9f9d3e991fd60af8943a3b15e18 Note albow callbacks in GameScreen diff -r cb01c3a09ee1 -r 25f3adbff00a pyntnclick/gamescreen.py --- a/pyntnclick/gamescreen.py Sat Feb 11 21:23:48 2012 +0200 +++ b/pyntnclick/gamescreen.py Sat Feb 11 21:33:17 2012 +0200 @@ -71,6 +71,7 @@ self.detail = DetailWindow(screen) def draw(self, surface): + self.animate() if self.game.previous_scene and self.game.do_check == LEAVE: # We still need to handle leave events, so still display the scene self.game.previous_scene.draw(surface, self) @@ -243,26 +244,17 @@ def leave_screen(self): CursorWidget.leave_screen(self) - # Albow uses magic method names (command + '_cmd'). Yay. - # Albow's search order means they need to be defined here, not in - # PopMenu, which is annoying. - def hide_cmd(self): - # This option does nothing, but the method needs to exist for albow - return - + # albow callback: def main_menu_cmd(self): self.shell.show_screen(self.shell.menu_screen) + # albow callback: def quit_cmd(self): self.shell.quit() def hand_pressed(self): self.inventory.unselect() - def begin_frame(self): - if self.running: - self.state_widget.animate() - class DefEndScreen(Screen): """A placeholder 'Game Over' screen so people can get started easily"""