Mercurial > pyntnclick
diff gamelib/gamescreen.py @ 210:eb101b6fb3dd
Transparent message dialogs.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Thu, 26 Aug 2010 16:29:54 +0200 |
parents | 407d23635343 |
children | 146cec58ddd8 |
line wrap: on
line diff
--- a/gamelib/gamescreen.py Thu Aug 26 14:59:29 2010 +0200 +++ b/gamelib/gamescreen.py Thu Aug 26 16:29:54 2010 +0200 @@ -91,10 +91,10 @@ def _mouse_move(self, pos): self.state.mouse_move(pos, self.screen) - def show_message(self, message): + def show_message(self, message, style=None): self.parent.cursor_highlight(False) # Display the message as a modal dialog - MessageDialog(self.screen, message, 60).present() + MessageDialog(self.screen, message, 60, style=style).present() # queue a redraw to show updated state self.invalidate() # The cursor could have gone anywhere @@ -153,8 +153,8 @@ def _mouse_move(self, pos): self.state.mouse_move_detail(self.global_to_local(pos), self.screen) - def show_message(self, message): - self.parent.show_message(message) + def show_message(self, message, style=None): + self.parent.show_message(message, style) self.invalidate()