Added Progress Bar and Cancel Button when downloading a Replay File from Replay Center (GuiReplayDownloading) | https://trello.com/c/1ZPhwmp8/

This commit is contained in:
CrushedPixel
2015-07-04 17:13:02 +02:00
parent 22be6d193a
commit 0743b3e1ac
6 changed files with 158 additions and 13 deletions

View File

@@ -233,12 +233,13 @@ public class GuiReplayCenter extends GuiScreen implements GuiYesNoCallback {
if(info != null) {
File f = ReplayMod.downloadedFileHandler.getFileForID(info.getId());
if(f == null) {
f = ReplayMod.downloadedFileHandler.downloadFileForID(info.getId());
}
try {
ReplayHandler.startReplay(f);
} catch(Exception e) {
e.printStackTrace();
mc.displayGuiScreen(new GuiReplayDownloading(info));
} else {
try {
ReplayHandler.startReplay(f);
} catch(Exception e) {
e.printStackTrace();
}
}
}
} else if(button.id == GuiConstants.CENTER_FAV_REPLAY_BUTTON) {