uis won't open or close when console is up

This commit is contained in:
minjaesong
2019-08-11 20:42:59 +09:00
parent 419773550a
commit b63bf88cd7
7 changed files with 58 additions and 31 deletions

View File

@@ -14,6 +14,8 @@ import net.torvald.util.HistoryArray
/**
* Don't let the debug console have the ```toggleKeyLiteral```, this must open even when the game is paused
*
* Created by minjaesong on 2015-12-31.
*/
class ConsoleWindow : UICanvas() {
@@ -203,11 +205,13 @@ class ConsoleWindow : UICanvas() {
}
override fun endOpening(delta: Float) {
Terrarum.ingame?.paused = true
drawOffY = 0f
openingTimeCounter = 0f
}
override fun endClosing(delta: Float) {
Terrarum.ingame?.paused = false
drawOffY = -height.toFloat()
openingTimeCounter = 0f
}