diff options
author | syeyoung <cyoung06@naver.com> | 2022-11-17 01:23:07 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2022-11-17 01:25:08 +0900 |
commit | 1983105bb2c75d5742a5743714460d68691f655b (patch) | |
tree | 9de3ca6b1b24e057b42c8d26235f5e34637571b7 /loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java | |
parent | b42e3286fa3b2ac52989a83d1fac45bf47b3d1ed (diff) | |
download | Skyblock-Dungeons-Guide-1983105bb2c75d5742a5743714460d68691f655b.tar.gz Skyblock-Dungeons-Guide-1983105bb2c75d5742a5743714460d68691f655b.tar.bz2 Skyblock-Dungeons-Guide-1983105bb2c75d5742a5743714460d68691f655b.zip |
- Tooltips or notifications.
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java')
-rwxr-xr-x | loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java index e4696dd1..6401f0fd 100755 --- a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java +++ b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java @@ -24,11 +24,13 @@ import kr.syeyoung.dungeonsguide.launcher.exceptions.DungeonsGuideLoadingExcepti import kr.syeyoung.dungeonsguide.launcher.exceptions.NoSuitableLoaderFoundException; import kr.syeyoung.dungeonsguide.launcher.exceptions.NoVersionFoundException; import kr.syeyoung.dungeonsguide.launcher.exceptions.ReferenceLeakedException; -import kr.syeyoung.dungeonsguide.launcher.exceptions.auth.AuthenticationUnavailableException; +import kr.syeyoung.dungeonsguide.launcher.exceptions.auth.PrivacyPolicyRequiredException; import kr.syeyoung.dungeonsguide.launcher.gui.screen.GuiDisplayer; import kr.syeyoung.dungeonsguide.launcher.gui.screen.GuiLoadingError; +import kr.syeyoung.dungeonsguide.launcher.gui.screen.GuiPrivacyPolicy; import kr.syeyoung.dungeonsguide.launcher.gui.screen.GuiReferenceLeak; -import kr.syeyoung.dungeonsguide.launcher.gui.screen.SpecialGuiScreen; +import kr.syeyoung.dungeonsguide.launcher.gui.tooltip.Notification; +import kr.syeyoung.dungeonsguide.launcher.gui.tooltip.NotificationManager; import kr.syeyoung.dungeonsguide.launcher.loader.IDGLoader; import kr.syeyoung.dungeonsguide.launcher.loader.JarLoader; import kr.syeyoung.dungeonsguide.launcher.loader.LocalLoader; @@ -77,6 +79,8 @@ public class Main public void initEvent(FMLInitializationEvent initializationEvent) throws ClassNotFoundException, InstantiationException, IllegalAccessException { MinecraftForge.EVENT_BUS.register(this); MinecraftForge.EVENT_BUS.register(GuiDisplayer.INSTANCE); + MinecraftForge.EVENT_BUS.register(NotificationManager.INSTANCE); + try { File f = new File(configDir, "loader.cfg"); @@ -118,6 +122,13 @@ public class Main for (DungeonsGuideReloadListener listener : listeners) { listener.onLoad(dgInterface); } + + + NotificationManager.INSTANCE.updateNotification(UUID.randomUUID(), Notification.builder() + .title("Dungeons Guide Loaded!") + .description("Successfully Loaded DugneonsGuide!\nLoader: "+currentLoader.loaderName()+"\nVersion: "+currentLoader.version()) + .titleColor(0xFF00FF00) + .build()); } public void reload(IDGLoader newLoader) { try { |