ChatScreen

open class ChatScreen

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

Constructors

Link copied to clipboard
constructor()

Types

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

Functions

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