mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 03:24:06 +09:00
dirty way to go back a step with multiple uis in coordination
This commit is contained in:
@@ -76,7 +76,7 @@ open class UIItemTransitionContainer(
|
||||
|
||||
uis.forEachIndexed { index, ui ->
|
||||
if (currentPosition > index - 1 + epsilon && currentPosition < index + 1 - epsilon) {
|
||||
ui.setAsOpen()
|
||||
if (!ui.isOpened && !ui.isOpening) ui.setAsOpen()
|
||||
ui.render(batch, camera)
|
||||
|
||||
if (debugvals) {
|
||||
@@ -84,7 +84,7 @@ open class UIItemTransitionContainer(
|
||||
}
|
||||
}
|
||||
else {
|
||||
ui.setAsClose()
|
||||
if (!ui.isClosed && !ui.isClosing) ui.setAsClose()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user