dirty way to go back a step with multiple uis in coordination

This commit is contained in:
minjaesong
2021-10-28 15:11:52 +09:00
parent 5cb407f5ac
commit 1dc7d46c39
4 changed files with 66 additions and 15 deletions

View File

@@ -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()
}
}