# HG changeset patch # User Simon Cross # Date 1302292715 -7200 # Node ID 04be4219742b4eb2a353034816c7edd7b0697291 # Parent c68f2f3efc7f23efc4d262e0cfbd442fcad40996 Add support for auto_next_text to give the auto_next effect but with a different prompt. diff -r c68f2f3efc7f -r 04be4219742b skaapsteker/dialogue.py --- a/skaapsteker/dialogue.py Fri Apr 08 21:58:48 2011 +0200 +++ b/skaapsteker/dialogue.py Fri Apr 08 21:58:35 2011 +0200 @@ -103,6 +103,7 @@ pseudo_path)) auto_next = state_src.get("auto_next", None) + self.auto_next_text = state_src.get("auto_next_text", None) self.auto_next = False if auto_next is not None: self.auto_next = True diff -r c68f2f3efc7f -r 04be4219742b skaapsteker/widgets/bubble.py --- a/skaapsteker/widgets/bubble.py Fri Apr 08 21:58:48 2011 +0200 +++ b/skaapsteker/widgets/bubble.py Fri Apr 08 21:58:35 2011 +0200 @@ -27,7 +27,8 @@ self._text = None options = [(text, i) for (i, text) in state.choices] if state.auto_next: - options.append(("Next", "N")) + text = state.auto_next_text if state.auto_next_text else "Next" + options.append((text, "N")) else: options.append(("Leave", "L")) pos = pos.move(0, 0) # copy