mirror of
https://github.com/evennia/evennia.git
synced 2026-03-23 00:06:30 +01:00
Add EvMenu support for ending on start node.
Currently, if the start node has options of None then any input causes a "Choose an option or try 'help'." message to display and then ending the menu. This supports ending the menu without eating input.
This commit is contained in:
parent
24c5ddecab
commit
c8131eab80
1 changed files with 2 additions and 0 deletions
|
|
@ -855,6 +855,8 @@ class EvMenu(object):
|
|||
self.helptext = _HELP_NO_OPTIONS if self.auto_quit else _HELP_NO_OPTIONS_NO_QUIT
|
||||
|
||||
self.display_nodetext()
|
||||
if not options:
|
||||
self.close_menu()
|
||||
|
||||
def close_menu(self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue