ProgressTimer 控件

let background = new cc.Sprite(fileName_background);
this.addChild(background,999999);
background.setPosition(frameMid);

let innerSprite = new cc.Sprite(fileName_innerSprite);
let progressTimer = new cc.ProgressTimer(innerSprite);
background.addChild(progressTimer);
progressTimer.setPosition(background.width/2,background.height/2);
progressTimer.setType(cc.ProgressTimer.TYPE_RADIAL);
progressTimer.setPercentage(66);
posted @ 2019-09-14 17:09  流星曳尾  阅读(335)  评论(0编辑  收藏  举报