aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/features
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-06-22 11:00:32 +0200
committerGitHub <noreply@github.com>2024-06-22 11:00:32 +0200
commit426ea5e879aee0a6d0e7d27416d816cb5f8eb692 (patch)
tree6632f36ec1ff2592b2fae8770f974279174914c7 /src/main/java/at/hannibal2/skyhanni/config/features
parentfcc31674e40ed044f46813c2185f8de29d974932 (diff)
downloadskyhanni-426ea5e879aee0a6d0e7d27416d816cb5f8eb692.tar.gz
skyhanni-426ea5e879aee0a6d0e7d27416d816cb5f8eb692.tar.bz2
skyhanni-426ea5e879aee0a6d0e7d27416d816cb5f8eb692.zip
Feature: Added Chunked Stats to Custom Scoreboard (#1341)
Co-authored-by: Cal <cwolfson58@gmail.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/gui/customscoreboard/ChunkedStatsConfig.java32
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/DisplayConfig.java7
2 files changed, 38 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/ChunkedStatsConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/ChunkedStatsConfig.java
new file mode 100644
index 000000000..4293dd168
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/ChunkedStatsConfig.java
@@ -0,0 +1,32 @@
+package at.hannibal2.skyhanni.config.features.gui.customscoreboard;
+
+import at.hannibal2.skyhanni.features.gui.customscoreboard.ChunkedStat;
+import com.google.gson.annotations.Expose;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorDraggableList;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorSlider;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class ChunkedStatsConfig {
+
+ @Expose
+ @ConfigOption(
+ name = "Chunked Stats",
+ desc = "Select the stats you want to display chunked on the scoreboard."
+ )
+ @ConfigEditorDraggableList
+ public List<ChunkedStat> chunkedStats = new ArrayList<>(ChunkedStat.getEntries());
+
+ @Expose
+ @ConfigOption(
+ name = "Max Stats per Line",
+ desc = "The maximum amount of stats that will be displayed in one line."
+ )
+ @ConfigEditorSlider(
+ minValue = 1,
+ maxValue = 10,
+ minStep = 1)
+ public int maxStatsPerLine = 3;
+}
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/DisplayConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/DisplayConfig.java
index 2700a19b8..c9e330b33 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/DisplayConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/DisplayConfig.java
@@ -22,6 +22,11 @@ public class DisplayConfig {
public ArrowConfig arrow = new ArrowConfig();
@Expose
+ @ConfigOption(name = "Chunked Stats Options", desc = "")
+ @Accordion
+ public ChunkedStatsConfig chunkedStats = new ChunkedStatsConfig();
+
+ @Expose
@ConfigOption(name = "Events Options", desc = "")
@Accordion
public EventsConfig events = new EventsConfig();
@@ -78,7 +83,7 @@ public class DisplayConfig {
public enum PowderDisplay {
AVAILABLE("Available"),
TOTAL("Total"),
- BOTH("Available / All")
+ BOTH("Available / All"),
;
private final String str;