From a22beb3bcd6b262a5c893330006c3fa3286ac785 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Tue, 7 Feb 2023 10:32:39 +0900 Subject: - Sound Signed-off-by: syeyoung --- .../launcher/gui/screen/WidgetPrivacyPolicy.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/screen/WidgetPrivacyPolicy.java b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/screen/WidgetPrivacyPolicy.java index 0ee99c92..fc5e569e 100644 --- a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/screen/WidgetPrivacyPolicy.java +++ b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/screen/WidgetPrivacyPolicy.java @@ -56,7 +56,7 @@ public class WidgetPrivacyPolicy extends AnnotatedImportOnlyWidget { public WidgetPrivacyPolicy() { super(new ResourceLocation("dungeons_guide_loader:gui/privacyPolicy/privacyPolicy.gui")); - reload(); + reload0(); } @On(functionName = "accept") @@ -71,9 +71,8 @@ public class WidgetPrivacyPolicy extends AnnotatedImportOnlyWidget { Minecraft.getMinecraft().displayGuiScreen(null); } - @On(functionName = "reload") - public void reload() { - Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("gui.button.press"), 1.0F)); + + public void reload0() { policyVisibility.setValue("loading"); executor.submit(() -> { try { @@ -98,4 +97,9 @@ public class WidgetPrivacyPolicy extends AnnotatedImportOnlyWidget { } }); } + @On(functionName = "reload") + public void reload() { + Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("gui.button.press"), 1.0F)); + reload0(); + } } -- cgit