fix entry window reappearing on refresh interval
This commit is contained in:
@@ -304,7 +304,10 @@
|
||||
|
||||
(pieceCamera.calculateScrollBounds rewardSprites uiCamera SCROLL_BOUND_MARGIN)
|
||||
|
||||
(when entryWindow (entryWindow.hide))
|
||||
(localVar &mut windowWasShown true)
|
||||
(when entryWindow
|
||||
(set windowWasShown (entryWindow.isShown))
|
||||
(entryWindow.hide))
|
||||
(set entryWindow (new SimpleWindow "" (FlxColor.fromRGBFloat 0 0 0 0.5) FlxColor.WHITE 0.9 0.9))
|
||||
(set entryWindow.cameras [uiCamera])
|
||||
(set entryWindow.textColor FlxColor.LIME)
|
||||
@@ -321,7 +324,8 @@
|
||||
(map (m.activeTodoEntries) makeText)
|
||||
(set entryWindow.textColor FlxColor.GRAY)
|
||||
(_makeText "[SPACE] Cycle background color" 0)
|
||||
(entryWindow.show)
|
||||
(when windowWasShown
|
||||
(entryWindow.show))
|
||||
|
||||
(when !(= puzzleUnlocked -1)
|
||||
(startPuzzlePackChoice puzzleUnlocked))))
|
||||
|
Reference in New Issue
Block a user