aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/features
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-04-19 11:43:33 +1000
committerGitHub <noreply@github.com>2024-04-19 03:43:33 +0200
commitfdee390d8e0b4af67f2dfca38316884ccc04e3e0 (patch)
tree4cf7749a3404d427b2bfe1d5c1fb41492c973b27 /src/main/java/at/hannibal2/skyhanni/config/features
parentcef5bc4c9914235476d9b1a07c8ef83e8d159827 (diff)
downloadskyhanni-fdee390d8e0b4af67f2dfca38316884ccc04e3e0.tar.gz
skyhanni-fdee390d8e0b4af67f2dfca38316884ccc04e3e0.tar.bz2
skyhanni-fdee390d8e0b4af67f2dfca38316884ccc04e3e0.zip
Feature: Stuff for chocolate factory and hoppity event (#1434)
Co-authored-by: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/event/ChocolateFactoryConfig.java90
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/event/EventConfig.java4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/event/HoppityEggsConfig.java39
3 files changed, 133 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/event/ChocolateFactoryConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/event/ChocolateFactoryConfig.java
new file mode 100644
index 000000000..ad129e0e3
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/event/ChocolateFactoryConfig.java
@@ -0,0 +1,90 @@
+package at.hannibal2.skyhanni.config.features.event;
+
+import at.hannibal2.skyhanni.config.FeatureToggle;
+import at.hannibal2.skyhanni.config.core.config.Position;
+import at.hannibal2.skyhanni.features.event.chocolatefactory.ChocolateFactoryStats.ChocolateFactoryStat;
+import com.google.gson.annotations.Expose;
+import io.github.notenoughupdates.moulconfig.annotations.Accordion;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorDraggableList;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorSlider;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigLink;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+public class ChocolateFactoryConfig {
+
+ @Expose
+ @ConfigOption(name = "Hoppity Eggs", desc = "")
+ @Accordion
+ public HoppityEggsConfig hoppityEggs = new HoppityEggsConfig();
+
+ @Expose
+ @ConfigOption(name = "Chocolate Factory Features", desc = "Global toggle for all chocolate factory features.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean enabled = true;
+
+ @Expose
+ @ConfigOption(name = "Chocolate Factory Stats", desc = "Show general info about your chocolate factory.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean statsDisplay = true;
+
+ @Expose
+ @ConfigOption(
+ name = "Stats List",
+ desc = "Drag text to change what displays in the chocolate factory stats list and what order the text appears in."
+ )
+ @ConfigEditorDraggableList
+ public List<ChocolateFactoryStat> statsDisplayList = new ArrayList<>(Arrays.asList(
+ ChocolateFactoryStat.HEADER,
+ ChocolateFactoryStat.CURRENT,
+ ChocolateFactoryStat.THIS_PRESTIGE,
+ ChocolateFactoryStat.ALL_TIME,
+ ChocolateFactoryStat.EMPTY,
+ ChocolateFactoryStat.PER_SECOND,
+ ChocolateFactoryStat.PER_MINUTE,
+ ChocolateFactoryStat.PER_HOUR,
+ ChocolateFactoryStat.PER_DAY,
+ ChocolateFactoryStat.EMPTY_2,
+ ChocolateFactoryStat.MULTIPLIER,
+ ChocolateFactoryStat.BARN,
+ ChocolateFactoryStat.LEADERBOARD_POS
+ ));
+
+ @Expose
+ @ConfigOption(name = "Show Stack Sizes", desc = "Shows additional info as many items in the chocolate menu as the stack size.")
+ @ConfigEditorBoolean
+ public boolean showStackSizes = true;
+
+ @Expose
+ @ConfigOption(name = "Highlight Upgrades", desc = "Highlight any upgrades that you can afford.")
+ @ConfigEditorBoolean
+ public boolean highlightUpgrades = true;
+
+ @Expose
+ @ConfigOption(name = "Use Middle Click", desc = "Click on slots with middle click to speed up interactions.")
+ @ConfigEditorBoolean
+ public boolean useMiddleClick = true;
+
+ @Expose
+ @ConfigOption(name = "Rabbit Warning", desc = "Warn when the rabbit that needs to be clicked appears.")
+ @ConfigEditorBoolean
+ public boolean rabbitWarning = true;
+
+ @Expose
+ @ConfigOption(
+ name = "Rabbit Crush Threshold",
+ desc = "How close should you be to your barn capacity should you be before being warned about needing to upgrade it."
+ )
+ @ConfigEditorSlider(minValue = 3, maxValue = 20, minStep = 1)
+ public int barnCapacityThreshold = 6;
+
+ @Expose
+ @ConfigLink(owner = ChocolateFactoryConfig.class, field = "statsDisplay")
+ public Position position = new Position(183, 160, false, true);
+}
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/event/EventConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/event/EventConfig.java
index 149c8c6a4..b68664d79 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/event/EventConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/event/EventConfig.java
@@ -23,6 +23,10 @@ public class EventConfig {
@Expose
public WinterConfig winter = new WinterConfig();
+ @Expose
+ @Category(name = "Hoppity", desc = "Features for the Hoppity event and the chocolate factory.")
+ public ChocolateFactoryConfig chocolateFactory = new ChocolateFactoryConfig();
+
@ConfigOption(name = "City Project", desc = "")
@Accordion
@Expose
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/event/HoppityEggsConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/event/HoppityEggsConfig.java
new file mode 100644
index 000000000..f935cb699
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/event/HoppityEggsConfig.java
@@ -0,0 +1,39 @@
+package at.hannibal2.skyhanni.config.features.event;
+
+import at.hannibal2.skyhanni.config.FeatureToggle;
+import at.hannibal2.skyhanni.config.core.config.Position;
+import com.google.gson.annotations.Expose;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigLink;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
+
+public class HoppityEggsConfig {
+
+ @Expose
+ @ConfigOption(name = "Hoppity Waypoints", desc = "Toggle guess waypoints for Hoppity's Hunt.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean waypoints = true;
+
+ @Expose
+ @ConfigOption(name = "Show All Waypoints", desc = "Show all possible egg waypoints for the current lobby. §e" +
+ "Only works when you don't have an Egglocator in your inventory.")
+ @ConfigEditorBoolean
+ public boolean showAllWaypoints = false;
+
+ @Expose
+ @ConfigOption(name = "Show Claimed Eggs", desc = "Displays which eggs have been found in the last SkyBlock day.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean showClaimedEggs = false;
+
+ @Expose
+ @ConfigOption(name = "Shared Hoppity Waypoints", desc = "Enable being able to share and receive egg waypoints in your lobby.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean sharedWaypoints = true;
+
+ @Expose
+ @ConfigLink(owner = HoppityEggsConfig.class, field = "showClaimedEggs")
+ public Position position = new Position(33, 72, false, true);
+}