diff options
author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2024-08-23 09:45:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-23 09:45:54 +0200 |
commit | 57c1220bc9084b766c554c00636cc8ca89832ee0 (patch) | |
tree | 7a7fa5a6094b69803c3d7ddbdadaaa4a80d3e1e7 /src/main/java/at/hannibal2/skyhanni/config/features | |
parent | 20bd1d5fe25e8455402ad1d0f94336b547e51df1 (diff) | |
download | skyhanni-57c1220bc9084b766c554c00636cc8ca89832ee0.tar.gz skyhanni-57c1220bc9084b766c554c00636cc8ca89832ee0.tar.bz2 skyhanni-57c1220bc9084b766c554c00636cc8ca89832ee0.zip |
Feature + Fix: Custom Scoreboard Souflow, Margin, and more (#1837)
Co-authored-by: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com>
Co-authored-by: Cal <cwolfson58@gmail.com>
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Co-authored-by: ItsEmpa <itsempa@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/features')
3 files changed, 25 insertions, 1 deletions
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,7 +56,7 @@ 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 @@ -64,6 +64,14 @@ public class BackgroundConfig { @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", desc = "Add an image named \"scoreboard.png\" to your texture pack at \"\\assets\\skyhanni\\scoreboard.png.\" Activate the texture pack in Minecraft, then reload the game." ) 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 @@ -66,6 +66,11 @@ public class DisplayConfig { 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 public boolean showUnclaimedBits = false; @@ -120,6 +125,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) public int lineSpacing = 10; |