效果图:
代码:
//圆形进度条
void LoginScene::progressRadialTest()
{
//背景
auto _img = static_cast<ImageView *>(this->csb->getChildByName("Image_2"));
_img->setVisible(false);
auto _btn = Button::create("logon/touxiangdi.png");
_btn->setPosition(_img->getPosition());
addChild(_btn);
//进度
auto _sp = static_cast<Sprite *>(this->csb->getChildByName("Sprite_1"));
_sp->setPosition(_btn->getPosition());
//_sp->setVisible(false);
CCProgressTimer