Mercurial > pyntnclick
comparison gamelib/gamescreen.py @ 522:92782d1ca7be
Remove old draw def
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Wed, 08 Sep 2010 00:42:41 +0200 |
parents | 8f3c82c685a4 |
children | a984cf27b527 |
comparison
equal
deleted
inserted
replaced
521:d143947690d9 | 522:92782d1ca7be |
---|---|
63 def __init__(self, screen): | 63 def __init__(self, screen): |
64 Widget.__init__(self, Rect(0, 0, SCENE_SIZE[0], SCENE_SIZE[1])) | 64 Widget.__init__(self, Rect(0, 0, SCENE_SIZE[0], SCENE_SIZE[1])) |
65 self.screen = screen | 65 self.screen = screen |
66 self.state = screen.state | 66 self.state = screen.state |
67 self.detail = DetailWindow(screen) | 67 self.detail = DetailWindow(screen) |
68 | |
69 def draw(self, surface): | |
70 self.state.draw(surface, self.screen) | |
71 | 68 |
72 def draw(self, surface): | 69 def draw(self, surface): |
73 if self.state.previous_scene and self.state.do_check == LEAVE: | 70 if self.state.previous_scene and self.state.do_check == LEAVE: |
74 # We still need to handle leave events, so still display the scene | 71 # We still need to handle leave events, so still display the scene |
75 self.state.previous_scene.draw(surface, self) | 72 self.state.previous_scene.draw(surface, self) |