Hi,
Can I call
composer.showOverlay() from a scene that is also created by composer.showOverlay() ?
Yuval
Hi,
Can I call
composer.showOverlay() from a scene that is also created by composer.showOverlay() ?
Yuval
Yep, but that will hide the current overlay. You can’t have overlays on top of overlays.
Docs spell it out here:
http://docs.coronalabs.com/daily/api/library/composer/showOverlay.html
Only one overlay scene can be shown at any time. If you call composer.gotoScene(), composer.removeHidden(), or attempt to show a different overlay scene, the current overlay will be hidden. As such, you should hide an overlay scene before 1) attempting to show a different overlay scene, or 2) change the active scene viacomposer.gotoScene().
Yep, but that will hide the current overlay. You can’t have overlays on top of overlays.
Docs spell it out here:
http://docs.coronalabs.com/daily/api/library/composer/showOverlay.html
Only one overlay scene can be shown at any time. If you call composer.gotoScene(), composer.removeHidden(), or attempt to show a different overlay scene, the current overlay will be hidden. As such, you should hide an overlay scene before 1) attempting to show a different overlay scene, or 2) change the active scene viacomposer.gotoScene().