changeset 258:d7e6830fe051

Link up choices to dsm events.
author Simon Cross <hodgestar@gmail.com>
date Fri, 08 Apr 2011 01:38:41 +0200
parents 3f8ce3452cd6
children 030387133ace
files skaapsteker/widgets/bubble.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/skaapsteker/widgets/bubble.py	Fri Apr 08 01:36:44 2011 +0200
+++ b/skaapsteker/widgets/bubble.py	Fri Apr 08 01:38:41 2011 +0200
@@ -34,7 +34,8 @@
         if data == "L":
             CloseDialog.post(self.npc)
         else:
-            print "Chose", self.dsm.get_state().choices[i][1]
+            self.dsm.choice(i)
+            self._state_update()
 
     def draw(self, level_surface):
         if self._text: