aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config
diff options
context:
space:
mode:
authorjani270 <69345714+jani270@users.noreply.github.com>2024-04-17 22:26:47 +0200
committerGitHub <noreply@github.com>2024-04-17 22:26:47 +0200
commitfdf5c89d272beb3a8c903de1bcdaa594ad2de3d9 (patch)
tree1dd67b7029a1e6c84141844a8c07692dfa364e46 /src/main/java/at/hannibal2/skyhanni/config
parent97b62dfaa115fb3a2b11c2520a57c06d56a83459 (diff)
downloadskyhanni-fdf5c89d272beb3a8c903de1bcdaa594ad2de3d9.tar.gz
skyhanni-fdf5c89d272beb3a8c903de1bcdaa594ad2de3d9.tar.bz2
skyhanni-fdf5c89d272beb3a8c903de1bcdaa594ad2de3d9.zip
Improvement: Patcher Coords Color and Duration (#1476)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/ConfigUpdaterMigrator.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java12
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/misc/PatcherCoordsWaypointConfig.java28
3 files changed, 34 insertions, 8 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/ConfigUpdaterMigrator.kt b/src/main/java/at/hannibal2/skyhanni/config/ConfigUpdaterMigrator.kt
index 817be7867..77c732678 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/ConfigUpdaterMigrator.kt
+++ b/src/main/java/at/hannibal2/skyhanni/config/ConfigUpdaterMigrator.kt
@@ -12,7 +12,7 @@ import com.google.gson.JsonPrimitive
object ConfigUpdaterMigrator {
val logger = LorenzLogger("ConfigMigration")
- const val CONFIG_VERSION = 38
+ const val CONFIG_VERSION = 39
fun JsonElement.at(chain: List<String>, init: Boolean): JsonElement? {
if (chain.isEmpty()) return this
if (this !is JsonObject) return null
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java
index 8ee2cc926..8b21e3e85 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java
@@ -103,6 +103,11 @@ public class MiscConfig {
public NoBitsWarningConfig noBitsWarning = new NoBitsWarningConfig();
@Expose
+ @ConfigOption(name = "Patcher Coords Waypoints", desc = "")
+ @Accordion
+ public PatcherCoordsWaypointConfig patcherCoordsWaypoint = new PatcherCoordsWaypointConfig();
+
+ @Expose
@ConfigOption(name = "Show Outside SB", desc = "Show these features outside of SkyBlock.")
@ConfigEditorDraggableList
public List<OutsideSbFeature> showOutsideSB = new ArrayList<>();
@@ -188,13 +193,6 @@ public class MiscConfig {
public boolean restorePieceOfWizardPortalLore = true;
@Expose
- @ConfigOption(name = "Patcher Coords Waypoint", desc = "Highlight the coordinates sent by Patcher.")
- @ConfigEditorBoolean
- @FeatureToggle
- public boolean patcherSendCoordWaypoint = false;
-
-
- @Expose
@ConfigOption(name = "Account Upgrade Reminder", desc = "Remind you to claim account upgrades when complete.")
@ConfigEditorBoolean
@FeatureToggle
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/misc/PatcherCoordsWaypointConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/PatcherCoordsWaypointConfig.java
new file mode 100644
index 000000000..00820e966
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/misc/PatcherCoordsWaypointConfig.java
@@ -0,0 +1,28 @@
+package at.hannibal2.skyhanni.config.features.misc;
+
+import at.hannibal2.skyhanni.config.FeatureToggle;
+import com.google.gson.annotations.Expose;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorColour;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorSlider;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
+
+public class PatcherCoordsWaypointConfig {
+
+ @Expose
+ @ConfigOption(name = "Enabled", desc = "Highlight the coordinates sent by Patcher.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean enabled = false;
+
+ @Expose
+ @ConfigOption(name = "Color", desc = "Color of the waypoint.")
+ @ConfigEditorColour
+ public String color = "0:194:75:197:64";
+
+ @Expose
+ @ConfigOption(name = "Duration", desc = "Duration of the waypoint.")
+ @ConfigEditorSlider(minStep = 5, maxValue = 120, minValue = 1)
+ public int duration = 60;
+
+} \ No newline at end of file