Right now, enterScene is called AFTER a transition and the scene is fully visible on the display. however, this is often too late, and what we really need is the scene to be updated before the transition occurs.
For example, lets say you have a Scene that displays some items you can unlock. If you click on a locked item, it transitions to a buy scene where you can purchase the item. This buy scene needs to update the cost, description, image, etc. before it slides onto the screen. Then, after you make the purchase, you go back to the original scene, but you still see the item locked until the screen slides into place when suddenly it pops to unlocked.
I’ve been able to do this myself by doing something like:
local s = storyboard.getScene("buy")
if s and s.preEnterScene then
s:preEnterScene()
end
storyboard.gotoScene("buy")
but it would be much better if this was handled by the storyboard API instead of forcing me to do it everywhere
[import]uid: 122310 topic_id: 23255 reply_id: 323255[/import]