diff options
| author | Vixid <52578495+VixidDev@users.noreply.github.com> | 2024-04-27 12:07:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-27 13:07:55 +0200 |
| commit | a15ef68de8e33df296c565d12994df2ee965626e (patch) | |
| tree | 4651c999d759859988c0f169eeaf3cf4bb9bd8f8 /src/main/java/at/hannibal2/skyhanni/config/features | |
| parent | 328750a979e162ba92ec8957e81bf89989d61f63 (diff) | |
| download | skyhanni-a15ef68de8e33df296c565d12994df2ee965626e.tar.gz skyhanni-a15ef68de8e33df296c565d12994df2ee965626e.tar.bz2 skyhanni-a15ef68de8e33df296c565d12994df2ee965626e.zip | |
Improvement: Added Outline to Custom Scoreboard (#1461)
Co-authored-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com>
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/features')
2 files changed, 64 insertions, 0 deletions
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 262988af7..18ffd3c58 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 @@ -1,6 +1,7 @@ package at.hannibal2.skyhanni.config.features.gui.customscoreboard; import com.google.gson.annotations.Expose; +import io.github.notenoughupdates.moulconfig.annotations.Accordion; import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean; import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorColour; import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorInfoText; @@ -49,6 +50,11 @@ public class BackgroundConfig { public int roundedCornerSmoothness = 10; @Expose + @ConfigOption(name = "Background Outline", desc = "") + @Accordion + public BackgroundOutlineConfig outline = new BackgroundOutlineConfig(); + + @Expose @ConfigOption( name = "Use Custom Background Image", desc = "Put that image into a resource pack, using the path \"skyhanni/scoreboard.png\"." diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/BackgroundOutlineConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/BackgroundOutlineConfig.java new file mode 100644 index 000000000..43795c2cd --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/BackgroundOutlineConfig.java @@ -0,0 +1,58 @@ +package at.hannibal2.skyhanni.config.features.gui.customscoreboard; + +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.ConfigEditorSlider; +import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; + +public class BackgroundOutlineConfig { + + @Expose + @ConfigOption( + name = "Outline", + desc = "Shows an outline around the scoreboard." + ) + @ConfigEditorBoolean + public boolean enabled = false; + + @Expose + @ConfigOption( + name = "Outline Thickness", + desc = "Thickness of the outline." + ) + @ConfigEditorSlider( + minValue = 1, + maxValue = 15, + minStep = 1 + ) + public int thickness = 5; + + @Expose + @ConfigOption( + name = "Outline Blur", + desc = "Amount that the outline is blurred." + ) + @ConfigEditorSlider( + minValue = 0.0f, + maxValue = 1.0f, + minStep = 0.1f + ) + public float blur = 0.7f; + + @Expose + @ConfigOption( + name = "Outline Color Top", + desc = "Color of the top of the outline." + ) + @ConfigEditorColour + public String colorTop = "0:255:175:89:255"; + + @Expose + @ConfigOption( + name = "Outline Color Bottom", + desc = "Color of the bottom of the outline." + ) + @ConfigEditorColour + public String colorBottom = "0:255:127:237:255"; +} |
