summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-14 14:07:56 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-14 14:07:56 +0200
commit5f220707f4b0a12addaef0ec80cc389f07d9ffcc (patch)
treeb81533637c810c25bd5ccff54b9bc88dd967aec7 /src/main/java/at/hannibal2/skyhanni/config
parentd1a9b5b3ea2a4a140fc1aa34db3ad8a79822391c (diff)
downloadskyhanni-5f220707f4b0a12addaef0ec80cc389f07d9ffcc.tar.gz
skyhanni-5f220707f4b0a12addaef0ec80cc389f07d9ffcc.tar.bz2
skyhanni-5f220707f4b0a12addaef0ec80cc389f07d9ffcc.zip
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/GUIConfig.java44
1 files changed, 30 insertions, 14 deletions
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