From 22ec96345b2532e52246f4a8e236637c8addd808 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Thu, 26 Jan 2023 20:07:39 +0700 Subject: [PATCH] Set more meaningful default dimensions --- .../mc/otm/client/screen/panels/TextInputPanel.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/TextInputPanel.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/TextInputPanel.kt index 66d879741..7d2620312 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/TextInputPanel.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/TextInputPanel.kt @@ -1,6 +1,5 @@ package ru.dbotthepony.mc.otm.client.screen.panels -import com.mojang.blaze3d.platform.GlStateManager import com.mojang.blaze3d.platform.InputConstants import com.mojang.blaze3d.systems.RenderSystem import com.mojang.blaze3d.vertex.DefaultVertexFormat @@ -32,8 +31,8 @@ open class TextInputPanel( parent: EditablePanel<*>?, x: Float = 0f, y: Float = 0f, - width: Float = 10f, - height: Float = 10f, + width: Float = 60f, + height: Float = 11f, ) : EditablePanel(screen, parent, x, y, width, height) { private data class TextSelection(val cursor: Int, val shift: Int) { val isLeft get() = shift < 0