mirror of https://github.com/axmolengine/axmol.git
purge profiler data one + or - is pressed
Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
This commit is contained in:
parent
cd7773ba0e
commit
f0a2f6cbf8
|
@ -140,6 +140,8 @@ void NodeChildrenMainScene::initWithQuantityOfNodes(unsigned int nNodes)
|
|||
|
||||
updateQuantityLabel();
|
||||
updateQuantityOfNodes();
|
||||
|
||||
CC_PROFILER_PURGE_ALL();
|
||||
});
|
||||
decrease->setColor(Color3B(0,200,20));
|
||||
auto increase = MenuItemFont::create(" + ", [&](Object *sender) {
|
||||
|
@ -149,6 +151,8 @@ void NodeChildrenMainScene::initWithQuantityOfNodes(unsigned int nNodes)
|
|||
|
||||
updateQuantityLabel();
|
||||
updateQuantityOfNodes();
|
||||
|
||||
CC_PROFILER_PURGE_ALL();
|
||||
});
|
||||
increase->setColor(Color3B(0,200,20));
|
||||
|
||||
|
|
Loading…
Reference in New Issue