mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Update evmenu docstring.
This commit is contained in:
parent
0aebbf6975
commit
ae3af20cd7
1 changed files with 6 additions and 4 deletions
|
|
@ -70,15 +70,17 @@ menu is immediately exited and the default "look" command is called.
|
|||
# "_default", which marks this option as the default
|
||||
# fallback when no other option matches the user input.
|
||||
'desc': description, # optional description
|
||||
'goto': nodekey, # node to go to when chosen
|
||||
'goto': nodekey, # node to go to when chosen. This can also be a callable with
|
||||
# caller and/or raw_string args. It must return a string
|
||||
# with the key pointing to the node to go to.
|
||||
'exec': nodekey}, # node or callback to trigger as callback when chosen. This
|
||||
# will execute *before* going to the next node. Both node
|
||||
# and the explicit callback will be called as normal nodes
|
||||
# (with caller and/or raw_string args). If the callable/node
|
||||
# returns a single string (only), this will replace the current
|
||||
# goto location string in-place. Note that relying to
|
||||
# much on letting exec assign the goto location can make it
|
||||
# hard to debug your menu logic.
|
||||
# goto location string in-place (if a goto callback, it will never fire).
|
||||
# Note that relying to much on letting exec assign the goto
|
||||
# location can make it hard to debug your menu logic.
|
||||
{...}, ...)
|
||||
|
||||
If key is not given, the option will automatically be identified by
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue