avatar import error handling

This commit is contained in:
minjaesong
2023-08-25 17:38:15 +09:00
parent 602d5e046b
commit bfd926d7fe
6 changed files with 38 additions and 6 deletions

View File

@@ -73,6 +73,8 @@ class UIItemTextLineInput(
init {
}
var onKeyDown: (TerrarumKeyboardEvent) -> Unit = {}
private val labels = CommonResourcePool.getAsTextureRegionPack("inventory_category")
override val height = 24
@@ -394,6 +396,8 @@ class UIItemTextLineInput(
if (textbuf.size == 0) {
currentPlaceholderText = CodepointSequence(placeholder().toCodePoints())
}
onKeyDown(e)
}
}
else if (oldActive) { // just became deactivated