Widgets

open class Widgets

Utilities for inspecting Widgets. These make up the user interface of the game, such as the inventory tab or chatbox.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun closeAll()
Attempts to close all "closable" widgets.
Link copied to clipboard
open fun find(filter: Predicate<Widget>, startInterfacePath: Array<Int>): Optional<Widget>
Walks the tree of widget, starting with the widget provided by the given path.
Link copied to clipboard
open fun findWhereAction(action: String, startInterfacePath: Array<Int>): Optional<Widget>
Walks the tree of widget, starting with the interface provided by the given path.
Link copied to clipboard
open fun get(path: Array<Int>): Optional<Widget>
Finds the widget with the given indexes.
Link copied to clipboard
open fun isVisible(indexPath: Array<Int>): Boolean
Checks if a widget with the specified index path is visible