mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 02:12:19 +00:00
GUI fixes and small bug fixes to Script GUIs, Overlay GUI, etc
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user