Skip to content

Commit

Permalink
added ability to more easily change dialog rate in code
Browse files Browse the repository at this point in the history
  • Loading branch information
tpwrules committed Sep 2, 2012
1 parent 325a2b6 commit 1307344
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,11 @@ def update(self, surf, surf_pos, force=False): #update the dialog box, returns t
r = self._next_char() #render another character
else:
self.fill_allowed = True #we can fill the dialog now
r = self._next_char() #draw one character
r = r or self._next_char() #and another
r = False
for x in xrange(2):
if self._next_char() == True:
r = True
break
if r == True: #if we've finished drawing
if self.choice_dialog is not None or self.drawing is True: #if we drew a choice dialog
self.drawing = True #we're still drawing
Expand Down

0 comments on commit 1307344

Please sign in to comment.