1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-04 15:43:00 +00:00

Bump to 1.14pr1

This commit is contained in:
SquidDev
2019-04-11 09:27:14 +01:00
parent c81bc70475
commit b1fff97bff
9 changed files with 22 additions and 17 deletions

View File

@@ -39,6 +39,8 @@ public class WidgetTerminal implements Element
private final int termWidth;
private final int termHeight;
private boolean focused;
private float terminateTimer = -1;
private float rebootTimer = -1;
private float shutdownTimer = -1;
@@ -293,9 +295,9 @@ public class WidgetTerminal implements Element
}
@Override
public void onFocusChanged( boolean noClue, boolean focused )
public boolean changeFocus( boolean reverse )
{
if( !focused )
if( focused )
{
// When blurring, we should make all keys go up
for( int key = 0; key < keysDown.size(); key++ )
@@ -314,6 +316,9 @@ public class WidgetTerminal implements Element
shutdownTimer = terminateTimer = rebootTimer = -1;
}
focused = !focused;
return true;
}
public void draw( int originX, int originY )

View File

@@ -33,9 +33,9 @@ public class WidgetWrapper implements Element
}
@Override
public void onFocusChanged( boolean a, boolean b )
public boolean changeFocus( boolean reverse )
{
listener.onFocusChanged( a, b );
return listener.changeFocus( reverse );
}
@Override