I can’t get it in full:
I want to get button from loaded UI.
Is it correct approach?
auto m = cocostudio::GUIReader::getInstance()->widgetFromJsonFile("DemoHead_UI.json"); auto view = m->getChildByName("ImageView"); auto button = view->getComponent("mainButton");
I want to get CLICK event from the button founded. Should I use usual TouchEnded handling or there are more simple approach? Should I wait for some special event bubblingup?
V3.0 offered special solution for multiresolution (folders etc), but Cocostudio exports cavases in different JSONs. So if I make window for different resolutions in different canvases, the will be exported in different jsons. And I have to rename these files to have same name and copy them to proper folders. Am I right? Or I use incorrect approach?
But I found not any link with canvases in “canvas list” and canvases (mean screen resolution).
Please point me to a correct direction.