mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 09:09:08 +00:00
Implemented closeOnEsc supplier for ScriptTextArea
This commit is contained in:
1 parent
7e62dbc3fa
commit
4715e2ffbf
6 files changed
+12
-1
No files matched your search
@@ -105,6 +105,7 @@ public class GuiScript extends GuiNPCInterface implements IGuiData, GuiYesNoCall
|
||||
textArea.init(guiLeft + 74, guiTop + 4, 239, 208, container == null ? "" : container.script);
|
||||
textArea.enableCodeHighlighting();
|
||||
textArea.setListener(this);
|
||||
this.closeOnEsc(textArea::closeOnEsc);
|
||||
this.addTextField(textArea);
|
||||
|
||||
addButton(new GuiNpcButton(102, guiLeft + 315, guiTop + 4, 50, 20, "gui.clear"));
|
||||
|
||||
Reference in new issue
Block a user