Edit a UI scene in cocostudio, include a picture and a progress bar (progress bar is the child controls of the picture)
And then get the progress bar and image control in vc,
The progress bar can be successful, but add to monitor events do not perform
Auto UI=cocostudio: : GUIReader: : getInstance () - & gt; BloodUI_1. ExportJson widgetFromJsonFile (" ");
The UI - & gt; SetPosition (Point (200, 50));
This - & gt; AddChild (UI).
M_hpBar=(LoadingBar *) Helper: : seekWidgetByName (UI, "hpBar");
M_hpBar - & gt; AddTouchEventListener (this, toucheventselector BloodUI: : onClick ());
Image control is obtained by NULL
ImageView * hyImg=(ImageView *) Helper: : seekWidgetByName (UI, "hyImg");
Great god give directions fan classics, progress card here now
CodePudding user response:
Just tried it on the button control is can trigger a touch event, but is bound to monitor LoadingBar tutorial,,,,,,,CodePudding user response:
No one found the reason, the ghost versionCodePudding user response:
This version is indeed not person, the cocos and u3d version here are not what people, suggest you go to the website BBS,CodePudding user response:
This post is not to understand, explain downstairs