diff options
author | syeyoung <cyoung06@naver.com> | 2022-12-15 17:00:27 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2022-12-15 17:00:27 +0900 |
commit | e4d75b0f5d953c7a62cf194308c4b304551705bd (patch) | |
tree | 9f7bf369b020eff6d2035eb2b3dddb885382989f /loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui | |
parent | ecc627800828857a1e617d1135ca37b08b4dc24c (diff) | |
download | Skyblock-Dungeons-Guide-e4d75b0f5d953c7a62cf194308c4b304551705bd.tar.gz Skyblock-Dungeons-Guide-e4d75b0f5d953c7a62cf194308c4b304551705bd.tar.bz2 Skyblock-Dungeons-Guide-e4d75b0f5d953c7a62cf194308c4b304551705bd.zip |
- Splash Progress
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui')
-rw-r--r-- | loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/screen/GuiChooseVersion.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/screen/GuiChooseVersion.java b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/screen/GuiChooseVersion.java index e4e315a0..e1e91003 100644 --- a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/screen/GuiChooseVersion.java +++ b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/screen/GuiChooseVersion.java @@ -106,7 +106,7 @@ public class GuiChooseVersion extends SpecialGuiScreen { button.enabled = this.getClass().getResourceAsStream("/mod.jar") != null; this.buttonList.add(button = new GuiButton(4, tenth,sr.getScaledHeight()-100 ,"Refresh Options")); - this.buttonList.add(new GuiCheckBox(5, sr.getScaledWidth() - tenth,sr.getScaledHeight()-100 ,"Save This Loader", false)); + this.buttonList.add(new GuiCheckBox(5, sr.getScaledWidth() - tenth-200,sr.getScaledHeight()-100 ,"Save This Loader", false)); int k = 0; for (UpdateBranch updateBranch : branchList) { @@ -137,10 +137,10 @@ public class GuiChooseVersion extends SpecialGuiScreen { .build()); } else if (button.id == 0) { dismiss(); - Main.getMain().tryReloading(new LocalLoader()); + Main.getMain().tryReloadingWithSplash(new LocalLoader()); } else if (button.id == 1) { dismiss(); - Main.getMain().tryReloading(new JarLoader()); + Main.getMain().tryReloadingWithSplash(new JarLoader()); } else if (button.id == 3) { dismiss(); } else if (button.id == 4) { @@ -155,12 +155,12 @@ public class GuiChooseVersion extends SpecialGuiScreen { int idx = button.id - 10; current = branchList.get(idx); fetchUpdates(branchList.get(idx)); - } else { + } else if (button.id < branchList.size() + 10 + updates.size()){ int idx = button.id - branchList.size() - 10; Update update = updates.get(idx); dismiss(); - Main.getMain().tryReloading(new RemoteLoader(current.getName(),current.getId(),update.getId())); + Main.getMain().tryReloadingWithSplash(new RemoteLoader(current.getName(),current.getId(),update.getId())); } } |