aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-04-30 19:12:23 +0200
committerGitHub <noreply@github.com>2024-04-30 19:12:23 +0200
commitab49f89977c19cc8eba7911c073a9d74ede1eadf (patch)
treea7bcd2ef05478a92c2e29be350d5f0624b504dcd /src/main/java/at/hannibal2/skyhanni/config
parent249e02778ce9543afc515ee4c7b5a57e154ac61d (diff)
downloadskyhanni-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.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/AlignmentConfig.java20
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;
}