ChatboxTextMenuInput

Methods
12
Fields
1

Getting one

chatboxPanelManager:openTextMenuInput(…)

Methods

MethodReturnsDescription
title(string)ChatboxTextMenuInputSet the title; returns the panel.
option(string, () -> ())ChatboxTextMenuInputAdd an option and the function (or Runnable) it runs; returns the panel.
onClose(any)ChatboxTextMenuInputWhat runs when the panel closes, however it closes; returns the panel.
getTitle()string?The title.
getOptions(){any}The options, each { text = ..., callback = ... }.
getOnClose()anyWhat onClose set.
build()ChatboxTextMenuInputOpen the panel (a title and at least one option first, else IllegalStateException); returns it.
keyTyped(AwtKeyEvent)()Escape closes; 1..9 run that option.
keyPressed(AwtKeyEvent)()Consumes Escape.
keyReleased(AwtKeyEvent)()Nothing.
new(...any)anyBuilds an instance: the base classes' constructors, then this class's init.
isInstance(obj: any)booleanWhether obj is an instance of X or of a class that extends it.

Fields

FieldTypeDescription
superanyThe base class, for X.super.method(self, ...).

Returned by

MethodReturnsDescription
ChatboxPanelManager.openTextMenuInputChatboxTextMenuInputA new menu panel titled title, to fill in with option and open with build.

Method details

new

new: (...any) -> any

Builds an instance: the base classes' constructors, then this class's init.

isInstance

isInstance: (obj: any) -> boolean

Whether obj is an instance of X or of a class that extends it.