title
title: (ChatboxTextMenuInput, string) -> ChatboxTextMenuInputSet the title; returns the panel.
chatboxPanelManager:openTextMenuInput(…)| Method | Returns | Description |
|---|---|---|
title(string) | ChatboxTextMenuInput | Set the title; returns the panel. |
option(string, () -> ()) | ChatboxTextMenuInput | Add an option and the function (or Runnable) it runs; returns the panel. |
onClose(any) | ChatboxTextMenuInput | What runs when the panel closes, however it closes; returns the panel. |
getTitle() | string? | The title. |
getOptions() | {any} | The options, each { text = ..., callback = ... }. |
getOnClose() | any | What onClose set. |
build() | ChatboxTextMenuInput | Open 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) | any | Builds an instance: the base classes' constructors, then this class's init. |
isInstance(obj: any) | boolean | Whether obj is an instance of X or of a class that extends it. |
| Field | Type | Description |
|---|---|---|
super | any | The base class, for X.super.method(self, ...). |
| Method | Returns | Description |
|---|---|---|
ChatboxPanelManager.openTextMenuInput | ChatboxTextMenuInput | A new menu panel titled title, to fill in with option and open with build. |
titletitle: (ChatboxTextMenuInput, string) -> ChatboxTextMenuInputSet the title; returns the panel.
optionoption: (ChatboxTextMenuInput, string, () -> ()) -> ChatboxTextMenuInputAdd an option and the function (or Runnable) it runs; returns the panel.
onCloseonClose: (ChatboxTextMenuInput, any) -> ChatboxTextMenuInputWhat runs when the panel closes, however it closes; returns the panel.
getTitlegetTitle: (ChatboxTextMenuInput) -> string?The title.
getOptionsgetOptions: (ChatboxTextMenuInput) -> {any}The options, each { text = ..., callback = ... }.
getOnClosegetOnClose: (ChatboxTextMenuInput) -> anyWhat onClose set.
buildbuild: (ChatboxTextMenuInput) -> ChatboxTextMenuInputOpen the panel (a title and at least one option first, else IllegalStateException); returns it.
keyTypedkeyTyped: (ChatboxTextMenuInput, AwtKeyEvent) -> ()Escape closes; 1..9 run that option.
keyPressedkeyPressed: (ChatboxTextMenuInput, AwtKeyEvent) -> ()Consumes Escape.
keyReleasedkeyReleased: (ChatboxTextMenuInput, AwtKeyEvent) -> ()Nothing.
newnew: (...any) -> anyBuilds an instance: the base classes' constructors, then this class's init.
isInstanceisInstance: (obj: any) -> booleanWhether obj is an instance of X or of a class that extends it.