fix pausing while loading

This commit is contained in:
2023-07-03 07:52:24 -06:00
parent c2a778da2d
commit 0ed1298855
2 changed files with 4 additions and 4 deletions

View File

@@ -55,6 +55,7 @@
(director.doLoading ,preloadFuncs
(makeCC
(set isLoading false)
(.start (director.shortcutHandler))
(director.hideTitleCard)
(cc))))))
(method doCleanup []

View File

@@ -299,7 +299,8 @@
})
(set shortcutHandler.onBadKey
->[_ _]
(shortcutHandler.start))
(when shortcutHandler.currentMap
(shortcutHandler.start)))
(shortcutHandler.registerItem "{escape} Pause the movie"
->cc (director.showPauseMenu cc))
(shortcutHandler.registerItem "{tab} show dialog history"
@@ -361,9 +362,7 @@
->label {
(resume)
((dictGet runners label))
}))))
(shortcutHandler.start))
})))))
(super)))