aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/gui/config/HudMetaHandler.kt
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-08-11 22:42:01 +0200
committernea <nea@nea.moe>2023-08-15 19:38:27 +0200
commitb32f5da88c355645a9eaf343987f10506aa25bee (patch)
tree0bd12cb09844907fdaf8048601b4192df17c9244 /src/main/kotlin/moe/nea/firmament/gui/config/HudMetaHandler.kt
parent2b33dd1b11a0a64e1c32a3bf639d73a952b10e75 (diff)
downloadFirmament-b32f5da88c355645a9eaf343987f10506aa25bee.tar.gz
Firmament-b32f5da88c355645a9eaf343987f10506aa25bee.tar.bz2
Firmament-b32f5da88c355645a9eaf343987f10506aa25bee.zip
Add slightly more modular options
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/gui/config/HudMetaHandler.kt')
-rw-r--r--src/main/kotlin/moe/nea/firmament/gui/config/HudMetaHandler.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/gui/config/HudMetaHandler.kt b/src/main/kotlin/moe/nea/firmament/gui/config/HudMetaHandler.kt
index 1e5ced8..3993bfa 100644
--- a/src/main/kotlin/moe/nea/firmament/gui/config/HudMetaHandler.kt
+++ b/src/main/kotlin/moe/nea/firmament/gui/config/HudMetaHandler.kt
@@ -26,7 +26,7 @@ class HudMetaHandler(val config: ManagedConfig, val label: MutableText, val widt
return HudMeta(Json.decodeFromJsonElement(element), label, width, height)
}
- override fun emitGuiElements(opt: ManagedConfig.Option<HudMeta>, guiAppender: GuiAppender) {
+ override fun emitGuiElements(opt: ManagedOption<HudMeta>, guiAppender: GuiAppender) {
guiAppender.appendLabeledRow(opt.labelText, WButton(Text.translatable("firmament.hud.edit", label))
.also {
it.setOnClick {