diff gamelib/scenes/game_widgets.py @ 681:497b6d7c55e7 pyntnclick

Reimplement JIM-style in gamelib
author Neil Muller <neil@dip.sun.ac.za>
date Sun, 12 Feb 2012 23:57:14 +0200
parents c77d6aa29bee
children d6ded808cc33
line wrap: on
line diff
--- a/gamelib/scenes/game_widgets.py	Sun Feb 12 23:10:00 2012 +0200
+++ b/gamelib/scenes/game_widgets.py	Sun Feb 12 23:57:14 2012 +0200
@@ -3,6 +3,8 @@
 
 from pyntnclick.state import Thing, Result
 
+from gamelib.custom_widgets import JimLabel
+
 
 class Door(Thing):
     """A door somewhere"""
@@ -31,7 +33,7 @@
 def make_jim_dialog(mesg, game):
     "Utility helper function"
     if game.data.get_jim_state() == 'online':
-        return Result(mesg, style='JIM')
+        return Result(widget=JimLabel(game.gd, mesg))
     else:
         return None