evennia.prototypes.menus¶
OLC Prototype menu nodes
- evennia.prototypes.menus.node_validate_prototype(caller, raw_string, **kwargs)[source]¶
General node to view and validate a protototype
- evennia.prototypes.menus.node_examine_entity(caller, raw_string, **kwargs)[source]¶
General node to view a text and then return to previous node. Kwargs should contain “text” for the text to show and ‘back” pointing to the node to return to.
- evennia.prototypes.menus.node_apply_diff(caller, **kwargs)[source]¶
Offer options for updating objects
- evennia.prototypes.menus.node_prototype_spawn(caller, **kwargs)[source]¶
Submenu for spawning the prototype
- class evennia.prototypes.menus.OLCMenu(caller, menudata, startnode='start', cmdset_mergetype='Replace', cmdset_priority=1, auto_quit=True, auto_look=True, auto_help=True, cmd_on_exit='look', persistent=False, startnode_input='', session=None, debug=False, **kwargs)[source]¶
Bases:
EvMenuA custom EvMenu with a different formatting for the options.
- evennia.prototypes.menus.start_olc(caller, session=None, prototype=None)[source]¶
Start menu-driven olc system for prototypes.
- Parameters:
caller (Object or Account) – The entity starting the menu.
session (Session, optional) – The individual session to get data.
prototype (dict, optional) – Given when editing an existing prototype rather than creating a new one.