cleanup skipMovie recursively
This commit is contained in:
@@ -402,7 +402,9 @@
|
|||||||
(FlxG.state.remove darkness true)
|
(FlxG.state.remove darkness true)
|
||||||
(FlxG.state.remove lightSprite true))
|
(FlxG.state.remove lightSprite true))
|
||||||
|
|
||||||
(method :Void cleanup [] 0)
|
(method :Void cleanup []
|
||||||
|
// TODO does this need to clear out currentSounds, etc? Probably
|
||||||
|
)
|
||||||
|
|
||||||
(method :Option<AutoZConfig> autoZConfig [] (Some (object zPerLayer flxMovie.STAGE_BEHIND_DY frontLayer 0)))
|
(method :Option<AutoZConfig> autoZConfig [] (Some (object zPerLayer flxMovie.STAGE_BEHIND_DY frontLayer 0)))
|
||||||
|
|
||||||
|
@@ -504,6 +504,10 @@
|
|||||||
|
|
||||||
(set onLabel ->:Void label (set FlxDirector.lastSceneLabel label)))
|
(set onLabel ->:Void label (set FlxDirector.lastSceneLabel label)))
|
||||||
|
|
||||||
|
(cleanup
|
||||||
|
(when skipMovie
|
||||||
|
(callPrivate skipMovie "doCleanup")))
|
||||||
|
|
||||||
(#when debug
|
(#when debug
|
||||||
(preload
|
(preload
|
||||||
(.registerItem (director.shortcutHandler) "[n]ext label"
|
(.registerItem (director.shortcutHandler) "[n]ext label"
|
||||||
|
Reference in New Issue
Block a user