aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/features
diff options
context:
space:
mode:
authormartimavocado <39881008+martimavocado@users.noreply.github.com>2024-06-16 23:33:04 +0100
committerGitHub <noreply@github.com>2024-06-17 00:33:04 +0200
commit420b43c2ac553d1c99b10bd1d5aba948c12bd803 (patch)
tree3f0becf91eddcdfae6ddd5dfc55714eb5b49769f /src/main/java/at/hannibal2/skyhanni/config/features
parentdadf6c04d526c11237ccd9bd1162a08d3fc8a5f6 (diff)
downloadskyhanni-420b43c2ac553d1c99b10bd1d5aba948c12bd803.tar.gz
skyhanni-420b43c2ac553d1c99b10bd1d5aba948c12bd803.tar.bz2
skyhanni-420b43c2ac553d1c99b10bd1d5aba948c12bd803.zip
Feature: Add player highlighting for the Punchcard Artifact (#1089)
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/rift/PunchcardConfig.java48
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/rift/RiftConfig.java5
2 files changed, 53 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/rift/PunchcardConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/rift/PunchcardConfig.java
new file mode 100644
index 000000000..3ef21ba0a
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/rift/PunchcardConfig.java
@@ -0,0 +1,48 @@
+package at.hannibal2.skyhanni.config.features.rift;
+
+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.ConfigEditorColour;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigLink;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
+import io.github.notenoughupdates.moulconfig.observer.Property;
+
+public class PunchcardConfig {
+ @Expose
+ @ConfigOption(name = "Highlight", desc = "Highlights unpunched players in the Rift.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public Property<Boolean> highlight = Property.of(false);
+
+ @Expose
+ @ConfigOption(name = "Color", desc = "Color used for highlighting.")
+ @ConfigEditorColour
+ public Property<String> color = Property.of("0:163:122:11:143");
+
+ @Expose
+ @ConfigOption(name = "Enable Overlay", desc = "Shows an overlay with the amount of punched players.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public Property<Boolean> gui = Property.of(false);
+
+ @Expose
+ @ConfigOption(name = "Compact Overlay", desc = "Compacts the overlay, requires it to be enabled.")
+ @ConfigEditorBoolean
+ public Property<Boolean> compact = Property.of(false);
+
+ @Expose
+ @ConfigOption(name = "Countdown Overlay", desc = "Shows the amount of remaining players in the overlay.")
+ @ConfigEditorBoolean
+ public Property<Boolean> reverseGUI = Property.of(false);
+
+ @Expose
+ @ConfigOption(name = "Only punched players", desc = "Highlights only punched players instead.")
+ @ConfigEditorBoolean
+ public Property<Boolean> reverse = Property.of(false);
+
+ @Expose
+ @ConfigLink(owner = PunchcardConfig.class, field = "gui")
+ public Position position = new Position(10, 27);
+}
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/rift/RiftConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/rift/RiftConfig.java
index 68bfb0954..147709752 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/rift/RiftConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/rift/RiftConfig.java
@@ -40,6 +40,11 @@ public class RiftConfig {
public MotesOrbsConfig motesOrbs = new MotesOrbsConfig();
@Expose
+ @ConfigOption(name = "Punchcard Artifact", desc = "")
+ @Accordion
+ public PunchcardConfig punchcard = new PunchcardConfig();
+
+ @Expose
@ConfigOption(name = "Highlight Guide", desc = "Highlight things to do in the Rift Guide.")
@ConfigEditorBoolean
@FeatureToggle