Added a configurable expansion to scripts' length, adding 65535 more characters with every additional increase.

This commit is contained in:
c0508383 committed 2022-07-12 11:58:54 -05:00
1 parent b4f112ee89
commit 9fc408e598
4 files changed
+68 -12

No files matched your search

@@ -320,11 +320,11 @@ public class GuiScriptInterface extends GuiNPCInterface implements GuiYesNoCallb
public void confirmClicked(boolean flag, int i) {
if(flag) {
if(i == 0) {
this.openLink("http://www.kodevelopment.nl/minecraft/customnpcs/scripting");
this.openLink("https://www.curseforge.com/minecraft/mc-mods/customnpc-plus");
}
if(i == 1) {
this.openLink("http://www.kodevelopment.nl/customnpcs/api/");
this.openLink("https://kamkeel.github.io/CustomNPC-Plus/");
}
if(i == 2) {
@@ -380,6 +380,7 @@ public class GuiScriptInterface extends GuiNPCInterface implements GuiYesNoCallb
if(guibutton.id == 101) {
(this.getTextField(2)).setText(NoppesStringUtils.getClipboardContents());
this.setScript();
}
ScriptContainer container;
@@ -427,7 +428,7 @@ public class GuiScriptInterface extends GuiNPCInterface implements GuiYesNoCallb
container = (ScriptContainer)this.handler.getScripts().get(this.activeTab - 1);
if(container != null) {
this.setScript();
this.AWTWindow = new GuiJTextArea(container.script).setListener(this);
AWTWindow = new GuiJTextArea(container.script).setListener(this);
}
}