From 57c1220bc9084b766c554c00636cc8ca89832ee0 Mon Sep 17 00:00:00 2001 From: Empa <42304516+ItsEmpa@users.noreply.github.com> Date: Fri, 23 Aug 2024 09:45:54 +0200 Subject: Feature + Fix: Custom Scoreboard Souflow, Margin, and more (#1837) Co-authored-by: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Co-authored-by: Cal Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Co-authored-by: ItsEmpa --- .../at/hannibal2/skyhanni/config/core/config/Position.java | 5 +++++ .../config/features/gui/customscoreboard/AlignmentConfig.java | 6 ++++++ .../config/features/gui/customscoreboard/BackgroundConfig.java | 10 +++++++++- .../config/features/gui/customscoreboard/DisplayConfig.java | 10 ++++++++++ 4 files changed, 30 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/config') diff --git a/src/main/java/at/hannibal2/skyhanni/config/core/config/Position.java b/src/main/java/at/hannibal2/skyhanni/config/core/config/Position.java index 140fbf007..16e134574 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/core/config/Position.java +++ b/src/main/java/at/hannibal2/skyhanni/config/core/config/Position.java @@ -115,6 +115,11 @@ public class Position { return y; } + public void moveTo(int x, int y) { + this.x = x; + this.y = y; + } + public void setClicked(boolean state) { this.clicked = state; } diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/AlignmentConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/AlignmentConfig.java index 0b62bfcbc..fec0847f4 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/AlignmentConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/AlignmentConfig.java @@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.utils.RenderUtils.HorizontalAlignment; import at.hannibal2.skyhanni.utils.RenderUtils.VerticalAlignment; import com.google.gson.annotations.Expose; import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorDropdown; +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorSlider; import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; public class AlignmentConfig { @@ -17,4 +18,9 @@ public class AlignmentConfig { @ConfigOption(name = "Vertical Alignment", desc = "Alignment for the scoreboard on the vertical axis.") @ConfigEditorDropdown public VerticalAlignment verticalAlignment = VerticalAlignment.CENTER; + + @Expose + @ConfigOption(name = "Margin", desc = "Space between the border of your screen and the scoreboard.") + @ConfigEditorSlider(minValue = 0, maxValue = 50, minStep = 1) + public int margin = 0; } diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/BackgroundConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/BackgroundConfig.java index 18ffd3c58..be0f5f148 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/BackgroundConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/BackgroundConfig.java @@ -56,12 +56,20 @@ public class BackgroundConfig { @Expose @ConfigOption( - name = "Use Custom Background Image", + name = "Custom Background Image", desc = "Put that image into a resource pack, using the path \"skyhanni/scoreboard.png\"." ) @ConfigEditorBoolean public boolean useCustomBackgroundImage = false; + @Expose + @ConfigOption( + name = "Background Image Opacity", + desc = "The opacity of the custom background image." + ) + @ConfigEditorSlider(minValue = 0, maxValue = 100, minStep = 1) + public int customBackgroundImageOpacity = 100; + @Expose @ConfigOption( name = "Custom Background", 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 c9e330b33..e2c6dd6fa 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 @@ -65,6 +65,11 @@ public class DisplayConfig { @ConfigEditorBoolean public boolean displayNumbersFirst = false; + @Expose + @ConfigOption(name = "Hide coins earned/lost", desc = "Hide the amount of coins earned or lost.") + @ConfigEditorBoolean + public boolean hideCoinsDifference = false; + @Expose @ConfigOption(name = "Show unclaimed bits", desc = "Show the amount of available Bits that can still be claimed.") @ConfigEditorBoolean @@ -119,6 +124,11 @@ public class DisplayConfig { } } + @Expose + @ConfigOption(name = "SkyBlock Time 24h Format", desc = "Display the current SkyBlock time in 24hr format rather than 12h Format.") + @ConfigEditorBoolean + public boolean skyblockTime24hFormat = false; + @Expose @ConfigOption(name = "Line Spacing", desc = "The amount of space between each line.") @ConfigEditorSlider(minValue = 0, maxValue = 20, minStep = 1) -- cgit