mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 11:04:05 +09:00
simplified a structure of UIs a bit
This commit is contained in:
@@ -34,7 +34,7 @@ object GameController : InputAdapter() {
|
||||
val mouseTileY: Int
|
||||
get() = (mouseY / FeaturesDrawer.TILE_SIZE).floorInt()
|
||||
|
||||
fun processInput(delta: Float) {
|
||||
fun update(delta: Float) {
|
||||
// actor process input
|
||||
if (!ingame.consoleHandler.isTakingControl) {
|
||||
if (ingame.canPlayerControl) {
|
||||
@@ -50,14 +50,6 @@ object GameController : InputAdapter() {
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
ingame.uiContainer.forEach {
|
||||
it.processInput(delta)
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
ingame.consoleHandler.processInput(delta)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user