Added GuiRegister to allow users to create a new account on ReplayMod.com from the Mod itself

This commit is contained in:
CrushedPixel
2015-05-03 21:58:24 +02:00
parent 38ca7a0054
commit 5a3e3575c3
11 changed files with 327 additions and 27 deletions

View File

@@ -47,6 +47,8 @@ public class GuiKeyframeRepository extends GuiScreen {
@Override
public void initGui() {
Keyboard.enableRepeatEvents(true);
int h = (int)Math.floor(((double)this.height-(45+20+15))/14);
if(!initialized) {
@@ -226,4 +228,9 @@ public class GuiKeyframeRepository extends GuiScreen {
ReplayHandler.setKeyframeRepository(keyframeRepository, true);
ReplayMod.replaySender.setReplaySpeed(prevSpeed);
}
@Override
public void onGuiClosed() {
Keyboard.enableRepeatEvents(false);
}
}