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);
|
pageView->addPage(outerBox);
|
||||||
|
_displayValueLabel->setString(CCString::createWithFormat("page count = %ld", pageView->getPages().size())->getCString());
|
||||||
|
|
||||||
});
|
});
|
||||||
_uiLayer->addChild(button);
|
_uiLayer->addChild(button);
|
||||||
|
|
||||||
|
@ -636,6 +638,8 @@ bool UIPageViewDynamicAddAndRemoveTest::init()
|
||||||
{
|
{
|
||||||
CCLOG("There is no page to remove!");
|
CCLOG("There is no page to remove!");
|
||||||
}
|
}
|
||||||
|
_displayValueLabel->setString(CCString::createWithFormat("page count = %ld", pageView->getPages().size())->getCString());
|
||||||
|
|
||||||
});
|
});
|
||||||
_uiLayer->addChild(button2);
|
_uiLayer->addChild(button2);
|
||||||
|
|
||||||
|
@ -648,6 +652,8 @@ bool UIPageViewDynamicAddAndRemoveTest::init()
|
||||||
button3->addClickEventListener([=](Ref* sender)
|
button3->addClickEventListener([=](Ref* sender)
|
||||||
{
|
{
|
||||||
pageView->removeAllPages();
|
pageView->removeAllPages();
|
||||||
|
_displayValueLabel->setString(CCString::createWithFormat("page count = %ld", pageView->getPages().size())->getCString());
|
||||||
|
|
||||||
});
|
});
|
||||||
_uiLayer->addChild(button3);
|
_uiLayer->addChild(button3);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue