Whenever a Replay File is being written or modified and the user is not in-game, a GuiReplaySaving is opened and asks him to wait

This commit is contained in:
CrushedPixel
2015-06-01 12:14:22 +02:00
parent 7aaae3ea5c
commit 87223fcc0e
4 changed files with 72 additions and 16 deletions

View File

@@ -1,12 +1,17 @@
package eu.crushedpixel.replaymod.gui;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.resources.I18n;
import java.io.IOException;
public class GuiReplaySaving extends GuiScreen {
private GuiScreen waiting = null;
private final Minecraft mc = Minecraft.getMinecraft();
public GuiReplaySaving(GuiScreen waiting) {
this.waiting = waiting;
}
@@ -23,4 +28,8 @@ public class GuiReplaySaving extends GuiScreen {
mc.displayGuiScreen(waiting);
}
@Override
protected void keyTyped(char typedChar, int keyCode) throws IOException {
//Ignore key inputs to disallow users from closing this GUI
}
}