console text input is always active

This commit is contained in:
minjaesong
2021-12-04 21:55:31 +09:00
parent 43ed388615
commit bcae2b0ded

View File

@@ -62,7 +62,7 @@ class ConsoleWindow : UICanvas() {
init { init {
reset() reset()
addUIitem(textinput) addUIitem(textinput)
textinput.isActive = false textinput.isActive = true
} }
private val lb = ArrayList<String>() private val lb = ArrayList<String>()
@@ -96,6 +96,8 @@ class ConsoleWindow : UICanvas() {
if (!Gdx.input.isButtonPressed(App.getConfigInt("config_mouseprimary"))) { if (!Gdx.input.isButtonPressed(App.getConfigInt("config_mouseprimary"))) {
clickLatched = false clickLatched = false
} }
textinput.isActive = (isOpened && !isClosing)
} }
override fun renderUI(batch: SpriteBatch, camera: Camera) { override fun renderUI(batch: SpriteBatch, camera: Camera) {