From 420b43c2ac553d1c99b10bd1d5aba948c12bd803 Mon Sep 17 00:00:00 2001 From: martimavocado <39881008+martimavocado@users.noreply.github.com> Date: Sun, 16 Jun 2024 23:33:04 +0100 Subject: Feature: Add player highlighting for the Punchcard Artifact (#1089) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../config/features/rift/PunchcardConfig.java | 48 ++++++++++++++++++++++ .../skyhanni/config/features/rift/RiftConfig.java | 5 +++ 2 files changed, 53 insertions(+) create mode 100644 src/main/java/at/hannibal2/skyhanni/config/features/rift/PunchcardConfig.java (limited to 'src/main/java/at/hannibal2/skyhanni/config/features') 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 highlight = Property.of(false); + + @Expose + @ConfigOption(name = "Color", desc = "Color used for highlighting.") + @ConfigEditorColour + public Property 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 gui = Property.of(false); + + @Expose + @ConfigOption(name = "Compact Overlay", desc = "Compacts the overlay, requires it to be enabled.") + @ConfigEditorBoolean + public Property compact = Property.of(false); + + @Expose + @ConfigOption(name = "Countdown Overlay", desc = "Shows the amount of remaining players in the overlay.") + @ConfigEditorBoolean + public Property reverseGUI = Property.of(false); + + @Expose + @ConfigOption(name = "Only punched players", desc = "Highlights only punched players instead.") + @ConfigEditorBoolean + public Property 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 @@ -39,6 +39,11 @@ public class RiftConfig { @Accordion 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 -- cgit