mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 21:54:08 +00:00
Close On Esc Support
This commit is contained in:
1 parent
179199a6bf
commit
3009c97bc9
2 files changed
+4
-1
No files matched your search
@@ -219,6 +219,9 @@ public abstract class GuiNPCInterface extends GuiScreen {
|
||||
}
|
||||
|
||||
public void close() {
|
||||
if(GuiNpcTextField.activeTextfield != null)
|
||||
GuiNpcTextField.unfocus();
|
||||
|
||||
Keyboard.enableRepeatEvents(false);
|
||||
displayGuiScreen(null);
|
||||
mc.setIngameFocus();
|
||||
|
||||
@@ -17,7 +17,7 @@ public abstract class GuiNPCInterface2 extends GuiNPCInterface {
|
||||
xSize = 420;
|
||||
ySize = 200;
|
||||
menu = new GuiNpcMenu(this, activeMenu, npc);
|
||||
|
||||
closeOnEsc = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user