OptionsHelper.ChatOptionsHelper
com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper
Chat visibility and layout settings.
js
const options = Client.getGameOptions();
Chat.log(options.chat.getChatVisibility());Nested type declared in OptionsHelper.
Constructors
new OptionsHelper.ChatOptionsHelper
new OptionsHelper.ChatOptionsHelper(OptionsHelper optionsHelper, OptionsHelper OptionsHelper)#Stores the supplied parent reference; this does not replace the options object bound to this inner group.
Parameters:
OptionsHelper: optionshelper retained as the parent
Fields
parent
The options helper that owns this settings group; the same instance is returned by getParent().
Methods
areColorsShown
Returns: whether chat colors are enabled
areCommandSuggestionsEnabled
Returns:
true if command suggestions are enabled, false otherwise.areMatchedNamesHidden
Returns:
true if messages from blocked players are hidden, false otherwise.areWebLinksEnabled
Returns: whether opening web links from chat is enabled
enableCommandSuggestions
Parameters:
val: whether to enable command suggestions
Returns: self for chaining.
enableHideMatchedNames
Parameters:
val: whether to hide messages from blocked players
Returns: self for chaining.
enableWebLinkPrompt
Sets whether to show a warning prompt before opening chat links.
Parameters:
val: whether the warning prompt is enabled
Returns: this helper
enableWebLinks
Sets whether opening web links from chat is enabled.
Parameters:
val: whether opening chat links is enabled
Returns: this helper
getChatDelay
Returns the configured delay between chat messages.
Returns: the current chat delay in seconds.
getChatFocusedHeight
Returns the configured chat height scale while chat is focused.
Returns: the focused chat height scale.
getChatLineSpacing
Returns the configured spacing between chat lines.
Returns: the current chat line spacing.
getChatOpacity
Returns: the configured chat opacity
getChatUnfocusedHeight
Returns: the chat height scale while chat is unfocused.
getChatVisibility
getChatWidth
Returns the configured chat width scale.
Returns: the current chat width scale.
getNarratorMode
getParent
Returns: the options helper that owns this settings group.
getTextBackgroundOpacity
Returns the configured opacity for text backgrounds.
Returns: the current text background opacity.
getTextSize
Returns the configured chat text scale.
Returns: the current text scale.
isDebugInfoReduced
Returns:
true if reduced debug information is enabled, false otherwise.isWebLinkPromptEnabled
Returns: whether a warning prompt is enabled before opening chat links
reduceDebugInfo
Parameters:
val: whether to enable reduced debug info or not
Returns: self for chaining.
setChatDelay
Sets the delay between chat messages.
Parameters:
val: the new chat delay in seconds
Returns: self for chaining.
setChatFocusedHeight
Parameters:
val: the chat height scale while chat is focused
Returns: self for chaining.
setChatLineSpacing
Sets the spacing between chat lines.
Parameters:
val: the new chat line spacing
Returns: self for chaining.
setChatOpacity
Sets the chat opacity.
Parameters:
val: the new opacity
Returns: this helper
setChatUnfocusedHeight
Parameters:
val: the chat height scale while chat is unfocused
Returns: self for chaining.
setChatVisibility
Sets chat visibility to
FULL, SYSTEM, or HIDDEN; matching is case-insensitive. Unrecognized values leave the current setting unchanged.Parameters:
mode: the visibility mode
Returns: this helper
setChatWidth
Sets the chat width scale.
Parameters:
val: the new chat width scale
Returns: self for chaining.
setNarratorMode
Parameters:
mode: the narrator mode to set; acceptsOFF,ALL,CHAT, orSYSTEM, case-insensitively. Other values leave the current mode unchanged.
Returns: self for chaining.
setShowColors
Sets whether chat colors are enabled.
Parameters:
val: whether chat colors are enabled
Returns: this helper
setTextBackgroundOpacity
Sets the opacity of text backgrounds.
Parameters:
val: the new text background opacity
Returns: this helper
setTextSize
Sets the chat text scale.
Parameters:
val: the new text scale
Returns: self for chaining.