I have started to use CocoStudio. My actions were:
- create a UI project
- put some elements on scene and name them
- export project
- create a scene project
- add a component “UI” on scene, bind it with exported UI output
- Export scene project
Now I have a .json project output file and resources. In the code I have in extensions the SceneReader. SceneReader can take json file and make CCNode from it.
But how assign a callback to button on that scene? Should I take it by tag, cast to some button class and set then callback, or there is more convenient path?