Changeset 291:04be4219742b


Ignore:
Timestamp:
04/08/11 19:58:35 (12 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Rebase:
61333634656465613761336464376539666166653936343562323964623566376630326133363032
Message:

Add support for auto_next_text to give the auto_next effect but with a different prompt.

Location:
skaapsteker
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/dialogue.py

    r286 r291  
    104104
    105105        auto_next = state_src.get("auto_next", None)
     106        self.auto_next_text = state_src.get("auto_next_text", None)
    106107        self.auto_next = False
    107108        if auto_next is not None:
  • skaapsteker/widgets/bubble.py

    r285 r291  
    2828        options = [(text, i) for (i, text) in state.choices]
    2929        if state.auto_next:
    30             options.append(("Next", "N"))
     30            text = state.auto_next_text if state.auto_next_text else "Next"
     31            options.append((text, "N"))
    3132        else:
    3233            options.append(("Leave", "L"))
Note: See TracChangeset for help on using the changeset viewer.