aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-06-13 20:49:23 +0200
committerGitHub <noreply@github.com>2024-06-13 20:49:23 +0200
commit1d35ee709c4a0876fbc8e814d959659b37710ce8 (patch)
tree7cadcbe91d9c23ab2bf63732c9f22fe5052e96c1 /src/main/java/at/hannibal2/skyhanni/config
parent045c39701411b5c9a5ffcbffb45ce34c09f1c2c6 (diff)
downloadskyhanni-1d35ee709c4a0876fbc8e814d959659b37710ce8.tar.gz
skyhanni-1d35ee709c4a0876fbc8e814d959659b37710ce8.tar.bz2
skyhanni-1d35ee709c4a0876fbc8e814d959659b37710ce8.zip
Improvement: Added Display Options to Powder in Custom Scoreboard (#1442)
* input some data * working * added full storage support, copy tree, powder and tokens * test * improved the rewardFun * rename of file * made feature separate * fix * fix * Revert "test" This reverts commit 2ed9de7e4c0c2620ea0acbbbb20ffc964c14257f. * max level hide * fixed missing new line * updated format * . * Mining V3 * fix * improved * Removed tablist pattern * fix Signed-off-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> * fixc Signed-off-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> * cleanup Signed-off-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> * removed triples and pairs * small code cleanup * big reformat --------- Signed-off-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Co-authored-by: Thunderblade73 <gaidermarkus@gmail.com> 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')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/DisplayConfig.java23
1 files changed, 23 insertions, 0 deletions
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 30008a0d2..a227bfcae 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
@@ -71,6 +71,29 @@ public class DisplayConfig {
public boolean showMaxIslandPlayers = true;
@Expose
+ @ConfigOption(name = "Powder Display", desc = "Select how the powder display should be formatted.")
+ @ConfigEditorDropdown
+ public PowderDisplay powderDisplay = PowderDisplay.AVAILABLE;
+
+ public enum PowderDisplay {
+ AVAILABLE("Available"),
+ TOTAL("Total"),
+ BOTH("Available / All")
+ ;
+
+ private final String str;
+
+ PowderDisplay(String str) {
+ this.str = str;
+ }
+
+ @Override
+ public String toString() {
+ return str;
+ }
+ }
+
+ @Expose
@ConfigOption(name = "Number Format", desc = "")
@ConfigEditorDropdown
public NumberFormat numberFormat = NumberFormat.LONG;