mirror of https://github.com/axmolengine/axmol.git
add more indicator
This commit is contained in:
parent
fb1adb5b90
commit
0f0c3878e5
|
@ -617,6 +617,8 @@ bool UIPageViewDynamicAddAndRemoveTest::init()
|
|||
}
|
||||
|
||||
pageView->addPage(outerBox);
|
||||
_displayValueLabel->setString(CCString::createWithFormat("page count = %ld", pageView->getPages().size())->getCString());
|
||||
|
||||
});
|
||||
_uiLayer->addChild(button);
|
||||
|
||||
|
@ -636,6 +638,8 @@ bool UIPageViewDynamicAddAndRemoveTest::init()
|
|||
{
|
||||
CCLOG("There is no page to remove!");
|
||||
}
|
||||
_displayValueLabel->setString(CCString::createWithFormat("page count = %ld", pageView->getPages().size())->getCString());
|
||||
|
||||
});
|
||||
_uiLayer->addChild(button2);
|
||||
|
||||
|
@ -648,6 +652,8 @@ bool UIPageViewDynamicAddAndRemoveTest::init()
|
|||
button3->addClickEventListener([=](Ref* sender)
|
||||
{
|
||||
pageView->removeAllPages();
|
||||
_displayValueLabel->setString(CCString::createWithFormat("page count = %ld", pageView->getPages().size())->getCString());
|
||||
|
||||
});
|
||||
_uiLayer->addChild(button3);
|
||||
|
||||
|
|
Loading…
Reference in New Issue