diff options
author | nea <nea@nea.moe> | 2023-08-11 22:42:01 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-08-15 19:38:27 +0200 |
commit | b32f5da88c355645a9eaf343987f10506aa25bee (patch) | |
tree | 0bd12cb09844907fdaf8048601b4192df17c9244 /src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt | |
parent | 2b33dd1b11a0a64e1c32a3bf639d73a952b10e75 (diff) | |
download | firmament-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/StringHandler.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt b/src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt index d15b272..a405f47 100644 --- a/src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt +++ b/src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt @@ -6,7 +6,6 @@ package moe.nea.firmament.gui.config -import io.github.cottonmc.cotton.gui.widget.WLabel import io.github.cottonmc.cotton.gui.widget.WTextField import kotlinx.serialization.json.JsonElement import kotlinx.serialization.json.JsonPrimitive @@ -22,7 +21,7 @@ class StringHandler(val config: ManagedConfig) : ManagedConfig.OptionHandler<Str return element.jsonPrimitive.content } - override fun emitGuiElements(opt: ManagedConfig.Option<String>, guiAppender: GuiAppender) { + override fun emitGuiElements(opt: ManagedOption<String>, guiAppender: GuiAppender) { guiAppender.appendLabeledRow( opt.labelText, WTextField(opt.labelText).apply { |