mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-10 05:41:51 +09:00
fix: textinput contained by sliding panel would not get text input
This commit is contained in:
@@ -6,6 +6,7 @@ import com.badlogic.gdx.graphics.Color
|
||||
import com.badlogic.gdx.graphics.g2d.SpriteBatch
|
||||
import net.torvald.terrarum.App
|
||||
import net.torvald.terrarum.App.printdbg
|
||||
import net.torvald.terrarum.gamecontroller.TerrarumKeyboardEvent
|
||||
|
||||
open class UIItemTransitionContainer(
|
||||
private val parent: UICanvas,
|
||||
@@ -125,6 +126,10 @@ open class UIItemTransitionContainer(
|
||||
return true
|
||||
}
|
||||
|
||||
override fun inputStrobed(e: TerrarumKeyboardEvent) {
|
||||
uis.forEachIndexed { index, ui -> if (timeToUpdate(index)) ui.inputStrobed(e) }
|
||||
}
|
||||
|
||||
override fun show() {
|
||||
uis.forEach { it.show() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user