mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
CmdHelp clickable global setting False
Created a global setting for clickable topics in the help command. Default is False.
This commit is contained in:
parent
6cf1f65722
commit
da6e1edb29
2 changed files with 5 additions and 1 deletions
|
|
@ -28,6 +28,7 @@ from evennia.help.utils import help_search_with_index, parse_entry_for_subcatego
|
|||
COMMAND_DEFAULT_CLASS = class_from_module(settings.COMMAND_DEFAULT_CLASS)
|
||||
HELP_MORE_ENABLED = settings.HELP_MORE_ENABLED
|
||||
DEFAULT_HELP_CATEGORY = settings.DEFAULT_HELP_CATEGORY
|
||||
HELP_CLICKABLE_TOPICS = settings.HELP_CLICKABLE_TOPICS
|
||||
|
||||
# limit symbol import for API
|
||||
__all__ = ("CmdHelp", "CmdSetHelp")
|
||||
|
|
@ -98,7 +99,7 @@ class CmdHelp(COMMAND_DEFAULT_CLASS):
|
|||
subtopic_separator_char = r"/"
|
||||
|
||||
# should topics disply their help entry when clicked
|
||||
clickable_topics = True
|
||||
clickable_topics = HELP_CLICKABLE_TOPICS
|
||||
|
||||
def msg_help(self, text):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -614,6 +614,9 @@ DEFAULT_HELP_CATEGORY = "general"
|
|||
# File-based help entries. These are modules containing dicts defining help
|
||||
# entries. They can be used together with in-database entries created in-game.
|
||||
FILE_HELP_ENTRY_MODULES = ["world.help_entries"]
|
||||
# if topics listed in help should be clickable
|
||||
# clickable links only work on clients that support MXP
|
||||
HELP_CLICKABLE_TOPICS = False
|
||||
|
||||
######################################################################
|
||||
# FuncParser
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue