1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-23 01:47:38 +00:00

Set keyHandled on the terminal GUI

This allows us to block JEI processing key events such as "o", meaning
the GUI is not constantly toggled when interacting with a turtle.

Also clean up the widget code, as there's a lot of functionality here
which only is needed in CCEdu.
This commit is contained in:
SquidDev
2018-12-08 23:19:56 +00:00
parent 3e6f6467af
commit f765b6a487
5 changed files with 29 additions and 675 deletions

View File

@@ -95,7 +95,7 @@ public class GuiTurtle extends GuiContainer
}
else
{
m_terminalGui.keyTyped( c, k );
if( m_terminalGui.keyTyped( c, k ) ) keyHandled = true;
}
}
@@ -119,7 +119,7 @@ public class GuiTurtle extends GuiContainer
public void handleKeyboardInput() throws IOException
{
super.handleKeyboardInput();
m_terminalGui.handleKeyboardInput();
if( m_terminalGui.handleKeyboardInput() ) keyHandled = true;
}
protected void drawSelectionSlot( boolean advanced )