Mercurial > pyntnclick
diff gamelib/gamescreen.py @ 314:63e702d93e0e
Call detail enter and leave hooks
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sat, 28 Aug 2010 12:10:20 +0200 |
parents | 3cedc4f95925 |
children | fd849354be58 |
line wrap: on
line diff
--- a/gamelib/gamescreen.py Sat Aug 28 09:37:21 2010 +0200 +++ b/gamelib/gamescreen.py Sat Aug 28 12:10:20 2010 +0200 @@ -106,11 +106,13 @@ w, h = self.state.set_current_detail(detail) self.detail.set_image_rect(Rect(0, 0, w, h)) self.add_centered(self.detail) + self.state.do_enter_detail() self.parent.cursor_highlight(False) def clear_detail(self): """Hide the detail view""" self.remove(self.detail) + self.state.do_leave_detail() self.state.set_current_detail(None)