aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/EventConfig.java29
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/GUIConfig.java49
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java85
3 files changed, 74 insertions, 89 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/EventConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/EventConfig.java
index a76c49858..79224ce80 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/EventConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/EventConfig.java
@@ -277,6 +277,35 @@ public class EventConfig {
}
+ @ConfigOption(name = "City Project", desc = "")
+ @Accordion
+ @Expose
+ public CityProjectConfig cityProject = new CityProjectConfig();
+
+ public static class CityProjectConfig {
+
+ @Expose
+ @ConfigOption(name = "Show Materials", desc = "Show materials needed for contributing to the City Project.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean showMaterials = true;
+
+ @Expose
+ @ConfigOption(name = "Show Ready", desc = "Mark contributions that are ready to participate.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean showReady = true;
+
+ @Expose
+ @ConfigOption(name = "Daily Reminder", desc = "Remind every 24 hours to participate.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean dailyReminder = true;
+
+ @Expose
+ public Position pos = new Position(150, 150, false, true);
+ }
+
// comment in if the event is needed again
// @ConfigOption(name = "300þ Anniversary Celebration", desc = "Features for the 300þ year of SkyBlock")
@Accordion
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 cf9f0cc39..f885bfc82 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/GUIConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/GUIConfig.java
@@ -1,11 +1,11 @@
package at.hannibal2.skyhanni.config.features;
+import at.hannibal2.skyhanni.config.FeatureToggle;
+import at.hannibal2.skyhanni.config.core.config.Position;
import at.hannibal2.skyhanni.data.GuiEditManager;
import com.google.gson.annotations.Expose;
-import io.github.moulberry.moulconfig.annotations.ConfigEditorButton;
-import io.github.moulberry.moulconfig.annotations.ConfigEditorKeybind;
-import io.github.moulberry.moulconfig.annotations.ConfigEditorSlider;
-import io.github.moulberry.moulconfig.annotations.ConfigOption;
+import io.github.moulberry.moulconfig.annotations.*;
+import io.github.moulberry.moulconfig.observer.Property;
import org.lwjgl.input.Keyboard;
public class GUIConfig {
@@ -23,4 +23,45 @@ public class GUIConfig {
@ConfigOption(name = "Global GUI scale", desc = "Globally scale all SkyHanni GUIs")
@ConfigEditorSlider(minValue = 0.1F, maxValue = 10, minStep = 0.05F)
public float globalScale = 1F;
+
+ @Expose
+ @ConfigOption(name = "Custom Text box", desc = "")
+ @Accordion
+ public TextBoxConfig customTextBox = new TextBoxConfig();
+
+ public static class TextBoxConfig {
+
+ @Expose
+ @ConfigOption(name = "Enabled", desc = "Enables showing the textbox while in SkyBlock.")
+ @ConfigEditorBoolean
+ public boolean enabled = false;
+
+ @Expose
+ @ConfigOption(name = "Text", desc = "Enter text you want to display here.\n" +
+ "§eUse '&' as the colour code character.\n" +
+ "§eUse '\\n' as the line break character.")
+ @ConfigEditorText
+ public Property<String> text = Property.of("&aYour Text Here\\n&bYour new line here");
+
+ @Expose
+ public Position position = new Position(10, 80, false, true);
+ }
+
+ @Expose
+ @ConfigOption(name = "Real Time", desc = "Display the current computer time, a handy feature when playing in full-screen mode.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean realTime = false;
+
+ @Expose
+ public Position realTimePosition = new Position(10, 10, false, true);
+
+ @Expose
+ @ConfigOption(name = "Tps Display", desc = "Show the TPS of the current server, like in Soopy.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean tpsDisplay = false;
+
+ @Expose
+ public Position tpsDisplayPosition = new Position(10, 10, false, true);
}
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java
index bd231257d..d29b14f9b 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java
@@ -54,24 +54,6 @@ public class MiscConfig {
@Expose
public Position petDisplayPos = new Position(-330, -15, false, true);
- // rename this to just "time will cause a config reset
- @ConfigOption(name = "Time Features", desc = "")
- @Accordion
- @Expose
- public TimeConfig timeConfigs = new TimeConfig();
-
- public static class TimeConfig {
-
- @Expose
- @ConfigOption(name = "Real Time", desc = "Display the current computer time, a handy feature when playing in full-screen mode.")
- @ConfigEditorBoolean
- @FeatureToggle
- public boolean realTime = false;
-
- @Expose
- public Position realTimePos = new Position(10, 10, false, true);
- }
-
@ConfigOption(name = "Hide Armor", desc = "")
@Accordion
@Expose
@@ -116,21 +98,6 @@ public class MiscConfig {
public Position nonGodPotEffectPos = new Position(10, 10, false, true);
@Expose
- @ConfigOption(name = "Tps Display", desc = "")
- @ConfigEditorAccordion(id = 8)
- public boolean tpsDisplay = false;
-
- @Expose
- @ConfigOption(name = "Tps Display", desc = "Show the TPS of the current server, like in Soopy.")
- @ConfigEditorBoolean
- @ConfigAccordionId(id = 8)
- @FeatureToggle
- public boolean tpsDisplayEnabled = false;
-
- @Expose
- public Position tpsDisplayPosition = new Position(10, 10, false, true);
-
- @Expose
@ConfigOption(name = "Particle Hider", desc = "")
@ConfigEditorAccordion(id = 9)
public boolean particleHider = false;
@@ -378,35 +345,6 @@ public class MiscConfig {
public boolean inventoryNumbers = false;
}
- @ConfigOption(name = "City Project", desc = "")
- @Accordion
- @Expose
- public CityProject cityProject = new CityProject();
-
- public static class CityProject {
-
- @Expose
- @ConfigOption(name = "Show Materials", desc = "Show materials needed for contributing to the City Project.")
- @ConfigEditorBoolean
- @FeatureToggle
- public boolean showMaterials = true;
-
- @Expose
- @ConfigOption(name = "Show Ready", desc = "Mark contributions that are ready to participate.")
- @ConfigEditorBoolean
- @FeatureToggle
- public boolean showReady = true;
-
- @Expose
- @ConfigOption(name = "Daily Reminder", desc = "Remind every 24 hours to participate.")
- @ConfigEditorBoolean
- @FeatureToggle
- public boolean dailyReminder = true;
-
- @Expose
- public Position pos = new Position(150, 150, false, true);
- }
-
@ConfigOption(name = "Pocket Sack-In-A-Sack", desc = "")
@Accordion
@Expose
@@ -511,29 +449,6 @@ public class MiscConfig {
}
@Expose
- @ConfigOption(name = "Custom Text box", desc = "")
- @Accordion
- public TextBox textBox = new TextBox();
-
- public static class TextBox {
-
- @Expose
- @ConfigOption(name = "Enabled", desc = "Enables showing the textbox while in SkyBlock.")
- @ConfigEditorBoolean
- public boolean enabled = false;
-
- @Expose
- @ConfigOption(name = "Text", desc = "Enter text you want to display here.\n" +
- "§eUse '&' as the colour code character.\n" +
- "§eUse '\\n' as the line break character.")
- @ConfigEditorText
- public Property<String> text = Property.of("&aYour Text Here\\n&bYour new line here");
-
- @Expose
- public Position position = new Position(10, 80, false, true);
- }
-
- @Expose
@ConfigOption(name = "Cosmetic", desc = "")
@Accordion
public CosmeticConfig cosmeticConfig = new CosmeticConfig();