ChatScreen

public class ChatScreen

Contains methods for inspecting and interacting with the dialog screen that appears over the chatbox, such as when talking to an NPC

Types

Config
Link copied to clipboard
public final class Config
The config for the chat handler.

Functions

clickContinue
Link copied to clipboard
static boolean clickContinue()
Attempts to click continue
containsMessage
Link copied to clipboard
static boolean containsMessage(Array<String> message)
Checks if any of the specified messages is contained in the current message
containsOption
Link copied to clipboard
static boolean containsOption(Array<String> options)
Checks if any available option contains any of the specified options.
containsText
Link copied to clipboard
static boolean containsText(Array<String> text)
Checks if the specified text is contained in any chat interface that is currently being displayed
getMessage
Link copied to clipboard
static Optional<StringgetMessage()
Attempts to read the current message in the click continue window
getName
Link copied to clipboard
static Optional<StringgetName()
Attempts to read the name of the player/npc talking (the text at the top of the click continue interface)
getOptions
Link copied to clipboard
static List<StringgetOptions()
Gets all available chat screen options
handle
Link copied to clipboard
static boolean handle(Array<String> options)
Attempts to converse, selecting the specified options.
static boolean handle(BooleanSupplier stopCondition, Array<String> options)
Attempts to converse, selecting the specified options.
isClickContinueOpen
Link copied to clipboard
static boolean isClickContinueOpen()
Checks if the click continue interface dialog is open
isOpen
Link copied to clipboard
static boolean isOpen()
Checks if any chat screen is open
isSelectOptionOpen
Link copied to clipboard
static boolean isSelectOptionOpen()
Checks if the select option screen is open
selectOption
Link copied to clipboard
static boolean selectOption(Array<String> options)
Attempts to select an available option that contains any of the specified options.
static boolean selectOption(Predicate<String> filter)
Attempts to select an available option that matches the specified predicate
setConfig
Link copied to clipboard
static void setConfig(ChatScreen.Config config)
Sets the config for the chat screen handler

Properties

config
Link copied to clipboard
private final static ScriptLocal<ChatScreen.Configconfig