From 5f220707f4b0a12addaef0ec80cc389f07d9ffcc Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 14 Oct 2023 14:07:56 +0200 Subject: code cleanup --- .../skyhanni/config/features/GUIConfig.java | 44 +++++++++++++++------- 1 file changed, 30 insertions(+), 14 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/config') diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/GUIConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/GUIConfig.java index 9403ebfc2..d7fd4625d 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/GUIConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/GUIConfig.java @@ -94,23 +94,39 @@ public class GUIConfig { @Expose public Position realTimePosition = new Position(10, 10, false, true); - @Expose - @ConfigOption(name = "In-game Date", desc = "Show the in-game date of SkyBlock (like in Apec, §ebut with mild delays§7).\n(Though this one includes the SkyBlock year!)") - @ConfigEditorBoolean - @FeatureToggle - public boolean inGameDateDisplay = true; @Expose - public Position inGameDateDisplayPosition = new Position(10, 10, false, true); + @ConfigOption(name = "In-Game Date", desc = "") + @Accordion + public InGameDateConfig inGameDateConfig = new InGameDateConfig(); - @Expose - @ConfigOption(name = "In-game Date Refresh Rate", desc = "Change the amount of time in seconds you would like to refresh the in-game time display.") - @ConfigEditorSlider( - minValue = 1, - maxValue = 60, - minStep = 1 - ) - public int inGameDateDisplayRefreshSeconds = 10; + public static class InGameDateConfig { + + @Expose + @ConfigOption( + name = "Enabled", + desc = "Show the in-game date of SkyBlock (like in Apec, §ebut with mild delays§7).\n" + + "(Though this one includes the SkyBlock year!)" + ) + @ConfigEditorBoolean + @FeatureToggle + public boolean enabled = false; + + @Expose + public Position position = new Position(10, 10, false, true); + + @Expose + @ConfigOption( + name = "Refresh Rate", + desc = "Change the time in seconds you would like to refresh the In-Game Date Display." + ) + @ConfigEditorSlider( + minValue = 1, + maxValue = 60, + minStep = 1 + ) + public int RefreshSeconds = 10; + } @Expose -- cgit