mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 19:44:05 +09:00
console text input is always active
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user