diff options
author | J10a1n15 <45315647+j10a1n15@users.noreply.github.com> | 2024-04-30 19:12:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-30 19:12:23 +0200 |
commit | ab49f89977c19cc8eba7911c073a9d74ede1eadf (patch) | |
tree | a7bcd2ef05478a92c2e29be350d5f0624b504dcd /src/main/java/at/hannibal2/skyhanni/config | |
parent | 249e02778ce9543afc515ee4c7b5a57e154ac61d (diff) | |
download | skyhanni-ab49f89977c19cc8eba7911c073a9d74ede1eadf.tar.gz skyhanni-ab49f89977c19cc8eba7911c073a9d74ede1eadf.tar.bz2 skyhanni-ab49f89977c19cc8eba7911c073a9d74ede1eadf.zip |
Improvement: Better Alignment + Outline Improvement in Custom Scoreboard (#1566)
Co-authored-by: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/ConfigUpdaterMigrator.kt | 2 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/AlignmentConfig.java | 20 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/ConfigUpdaterMigrator.kt b/src/main/java/at/hannibal2/skyhanni/config/ConfigUpdaterMigrator.kt index 9a08a2385..faeab5a00 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/ConfigUpdaterMigrator.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/ConfigUpdaterMigrator.kt @@ -12,7 +12,7 @@ import com.google.gson.JsonPrimitive object ConfigUpdaterMigrator { val logger = LorenzLogger("ConfigMigration") - const val CONFIG_VERSION = 42 + const val CONFIG_VERSION = 43 fun JsonElement.at(chain: List<String>, init: Boolean): JsonElement? { if (chain.isEmpty()) return this if (this !is JsonObject) return null 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 b63db9b51..0b62bfcbc 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 @@ -1,20 +1,20 @@ package at.hannibal2.skyhanni.config.features.gui.customscoreboard; +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.ConfigEditorBoolean; +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorDropdown; import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; public class AlignmentConfig { - // TODO: Switch to Dropdowns with multiple different alignment ways in the future - // Horizontal: Left, Center, Right - // Vertical: Top, Center, Bottom + @Expose - @ConfigOption(name = "Align to the right", desc = "Align the scoreboard to the right side of the screen.") - @ConfigEditorBoolean - public boolean alignRight = true; + @ConfigOption(name = "Horizontal Alignment", desc = "Alignment for the scoreboard on the horizontal axis.") + @ConfigEditorDropdown + public HorizontalAlignment horizontalAlignment = HorizontalAlignment.RIGHT; @Expose - @ConfigOption(name = "Align to the center vertically", desc = "Align the scoreboard to the center of the screen vertically.") - @ConfigEditorBoolean - public boolean alignCenterVertically = true; + @ConfigOption(name = "Vertical Alignment", desc = "Alignment for the scoreboard on the vertical axis.") + @ConfigEditorDropdown + public VerticalAlignment verticalAlignment = VerticalAlignment.CENTER; } |