Set more meaningful default dimensions

This commit is contained in:
DBotThePony 2023-01-26 20:07:39 +07:00
parent f279bcd3d6
commit 22ec96345b
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -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<out S : Screen>(
parent: EditablePanel<*>?,
x: Float = 0f,
y: Float = 0f,
width: Float = 10f,
height: Float = 10f,
width: Float = 60f,
height: Float = 11f,
) : EditablePanel<S>(screen, parent, x, y, width, height) {
private data class TextSelection(val cursor: Int, val shift: Int) {
val isLeft get() = shift < 0