fix opening entry window during deletion choice

This commit is contained in:
2022-08-29 21:07:27 +00:00
parent f777eda5da
commit 82b3a6e9f2

View File

@@ -162,12 +162,13 @@
(prop &mut :FlxSave save null)
(prop &mut :SimpleWindow entryWindow null)
(prop &mut :SimpleWindow puzzlePackChoiceWindow null)
(prop &mut :SimpleWindow entryDeletionWindow null)
(method windowIsShown []
(or (tempWindowIsShown) (and entryWindow (entryWindow.isShown))))
(method tempWindowIsShown []
(doFor window [puzzlePackChoiceWindow]
(doFor window [puzzlePackChoiceWindow entryDeletionWindow]
(when (and window (window.isShown))
(return true)))
false)
@@ -278,6 +279,7 @@
(entryWindow.show)
}
null null FlxColor.WHITE 0.9 0.9 true)]
(set entryDeletionWindow delWindow)
(set delWindow.cameras [uiCamera]))))
(when (= rewardFileIndex (- m.rewardFiles.length 1))
(_makeText "Abandon this puzzle" 0