Changeset 309:342e30c92a85


Ignore:
Timestamp:
04/08/11 22:20:11 (12 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Message:

Check whether the new state has text after a state change. If not, close the dialogue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/widgets/bubble.py

    r291 r309  
    3939        if data == "L":
    4040            CloseDialog.post(self.npc)
    41         elif data == "N":
    42             self.dsm.auto_next()
    43             self._state_update()
    4441        else:
    45             self.dsm.choice(i)
    46             self._state_update()
     42            if data == "N":
     43                self.dsm.auto_next()
     44            else:
     45                self.dsm.choice(i)
     46            if self.dsm.has_text():
     47                self._state_update()
     48            else:
     49                CloseDialog.post(self.npc)
    4750
    4851    def draw(self, level_surface):
Note: See TracChangeset for help on using the changeset viewer.