Fix compile error (missing method, removed in 9f3a97f)
This commit is contained in:
@@ -105,7 +105,7 @@ public class KeyInputHandler {
|
|||||||
public void handleCustomKeybindings(KeyBinding kb, boolean found, int keyCode) {
|
public void handleCustomKeybindings(KeyBinding kb, boolean found, int keyCode) {
|
||||||
//Custom registered handlers
|
//Custom registered handlers
|
||||||
if(kb.getKeyDescription().equals(KeybindRegistry.KEY_PLAY_PAUSE) && (kb.isPressed() || kb.getKeyCode() == keyCode) && !ReplayHandler.isInPath()) {
|
if(kb.getKeyDescription().equals(KeybindRegistry.KEY_PLAY_PAUSE) && (kb.isPressed() || kb.getKeyCode() == keyCode) && !ReplayHandler.isInPath()) {
|
||||||
ReplayMod.overlay.playOrPause();
|
ReplayMod.overlay.togglePlayPause();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(kb.getKeyDescription().equals(KeybindRegistry.KEY_ROLL_CLOCKWISE) && (kb.isKeyDown() || kb.getKeyCode() == keyCode) && !ReplayHandler.isInPath()) {
|
if(kb.getKeyDescription().equals(KeybindRegistry.KEY_ROLL_CLOCKWISE) && (kb.isKeyDown() || kb.getKeyCode() == keyCode) && !ReplayHandler.isInPath()) {
|
||||||
|
|||||||
@@ -402,6 +402,14 @@ public class GuiReplayOverlay extends Gui {
|
|||||||
GlStateManager.enableBlend();
|
GlStateManager.enableBlend();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void togglePlayPause() {
|
||||||
|
if (ReplayMod.replaySender.paused()) {
|
||||||
|
ReplayMod.replaySender.setReplaySpeed(speedSlider.getSliderValue());
|
||||||
|
} else {
|
||||||
|
ReplayMod.replaySender.setReplaySpeed(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dummy interface for GUI on which this replay overlay shall not be rendered.
|
* Dummy interface for GUI on which this replay overlay shall not be rendered.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user