Improve config gui handling

This commit is contained in:
nea
2023-07-31 21:27:07 +02:00
parent d8ee0c458a
commit c3e1bab941
5 changed files with 47 additions and 48 deletions

View File

@@ -195,7 +195,7 @@ abstract class ManagedConfig(val name: String) {
fun getConfigEditor(parent: Screen? = null): CottonClientScreen {
val lwgd = LightweightGuiDescription()
var screen: Screen? = null
val guiapp = GuiAppender(20, { requireNotNull(screen) { "Screen Accessor called too early" } })
val guiapp = GuiAppender(400, { requireNotNull(screen) { "Screen Accessor called too early" } })
latestGuiAppender = guiapp
guiapp.panel.insets = Insets.ROOT_PANEL
guiapp.appendFullRow(WBox(Axis.HORIZONTAL).also {