Typos/clarity in the help text for evmenu.py to make it more plug & play friendly.
This commit is contained in:
parent
cea51a7b56
commit
fc78bde002
1 changed files with 5 additions and 5 deletions
|
|
@ -12,7 +12,7 @@ To start the menu, just import the EvMenu class from this module,
|
||||||
from evennia.utils.evmenu import EvMenu
|
from evennia.utils.evmenu import EvMenu
|
||||||
|
|
||||||
EvMenu(caller, menu_module_path,
|
EvMenu(caller, menu_module_path,
|
||||||
startnode="start",
|
startnode="node1",
|
||||||
cmdset_mergetype="Replace", cmdset_priority=1,
|
cmdset_mergetype="Replace", cmdset_priority=1,
|
||||||
allow_quit=True, cmd_on_quit="look")
|
allow_quit=True, cmd_on_quit="look")
|
||||||
```
|
```
|
||||||
|
|
@ -71,15 +71,15 @@ Example:
|
||||||
|
|
||||||
# in menu_module.py
|
# in menu_module.py
|
||||||
|
|
||||||
def node1(caller):
|
def start(caller):
|
||||||
text = ("This is a node text",
|
text = ("This is a node text",
|
||||||
"This is help text for this node")
|
"This is help text for this node")
|
||||||
options = ({"key": "testing",
|
options = ({"key": "testing",
|
||||||
"desc": "Select this to go to node 2"
|
"desc": "Select this to go to node 2",
|
||||||
"goto": "node2",
|
"goto": "node2",
|
||||||
"exec": "callback1"},
|
"exec": "callback1"},
|
||||||
{"desc": "Go to node 3."
|
{"desc": "Go to node 3.",
|
||||||
"goto": "node3"} )
|
"goto": "node3"})
|
||||||
return text, options
|
return text, options
|
||||||
|
|
||||||
def callback1(caller):
|
def callback1(caller):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue