From b32f5da88c355645a9eaf343987f10506aa25bee Mon Sep 17 00:00:00 2001 From: nea Date: Fri, 11 Aug 2023 22:42:01 +0200 Subject: Add slightly more modular options --- src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt') 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, guiAppender: GuiAppender) { + override fun emitGuiElements(opt: ManagedOption, guiAppender: GuiAppender) { guiAppender.appendLabeledRow( opt.labelText, WTextField(opt.labelText).apply { -- cgit