Hi,
I've already bought Widget Candy library and now I'm wondering how to use library controls with SceneManager class. Because Windget Candy uses _G.GUI.Stage for base surface which is in conflict with SceneManager. Any hint or sample how to use ex. simple button from Widget Candy with SceneManager will be very helpful.
Thank you!
Comments
http://www.x-pressive.com/WidgetCandy_Corona/tutorials.html#Hints3
**********************************************************************************
When using a scene manager, keep the two rules in mind:
First create a scene, THEN create your widgets.
First remove your widgets, THEN switch to another scene.
You should never remove widgets manually using Corona's :removeSelf() or Gideros' :removeFromParent() methods. Use the widget's :destroy() method instead and let Widget Candy do this for you. This is because there is data associated with the widgets that also needs to be removed. When you remove your widgets manually (or if a scene manager tries to remove them) this data remains in memory and cannot be removed anymore.
******************************************************************************************
And in scene, you add everything to the scene, but widget candy seems to be adding everything to the stage, meaning that, you should only create widgets after you created the scene, so it would be added to the stage after the scene and be on top of that.
enterEnd event suits that perfectly
Likes: bravcm