GUI fixes and small bug fixes to Script GUIs, Overlay GUI, etc

This commit is contained in:
Kam committed 2026-01-22 22:52:04 -05:00
1 parent d560c23241
commit 31aac0d6b3
4 files changed
+55 -28

No files matched your search

@@ -108,7 +108,7 @@ public abstract class GuiNPCInterface extends GuiScreen {
}
//Important for GuiScriptTextArea
for (GuiNpcTextField tf : textfields.values())
for (GuiNpcTextField tf : textfields.values())
tf.initGui();
}
@@ -264,8 +264,8 @@ public abstract class GuiNPCInterface extends GuiScreen {
else
close();
}
if (subgui != null)
subgui.keyTyped(c, i);
for (GuiNpcTextField tf : textfields.values())
@@ -274,7 +274,7 @@ public abstract class GuiNPCInterface extends GuiScreen {
for (GuiScrollWindow guiScrollableComponent : scrollWindows.values()) {
guiScrollableComponent.keyTyped(c, i);
}
}
public void onGuiClosed() {
@@ -284,7 +284,7 @@ public abstract class GuiNPCInterface extends GuiScreen {
public void closeOnEsc(Supplier<Boolean> close) {
this.closeOnEscSupplier = close;
}
public void close() {
if(GuiNpcTextField.activeTextfield != null)
GuiNpcTextField.unfocus();