本文整理汇总了C++中CCNode::removeChildByTag方法的典型用法代码示例。如果您正苦于以下问题:C++ CCNode::removeChildByTag方法的具体用法?C++ CCNode::removeChildByTag怎么用?C++ CCNode::removeChildByTag使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCNode
的用法示例。
在下文中一共展示了CCNode::removeChildByTag方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: _clearRotateCells
void LotteryRotateView::_clearRotateCells(){
int rotateAngleArr[12] = {0, 30, 60, 90, 120, 150, 180, -150, -120, -90, -60, -30};
CCNode* rotatebgSp = getPanelChild();
for(int i = 0; i < 12; i++){
int rotateAngle = rotateAngleArr[i];
// int rotatecellbgSpTag = 1000 + rotateAngle;
int rotatecellImgSpTag = 2000 + rotateAngle;
int rotatecellTFTag = 2500 + rotateAngle;
rotatebgSp->removeChildByTag(rotatecellImgSpTag);
//数量
rotatebgSp->removeChildByTag(rotatecellTFTag);
}
}
示例2: Cancel
void Allocator::Cancel()
{
for (int i = 0; i < m_vec.size(); ++i)
{
CCNode * tile = m_tile->getChildByTag(m_vec[i]);
tile->removeChildByTag(TILE_PREVIEW, true);
}
}
示例3: Clear
void Allocator::Clear()
{
for (int i = -m_width / 2; i <= m_width / 2; ++i)
for (int j = -m_width / 2; j <= m_width / 2; ++j)
{
CCNode * tile = m_tile->getChildByTag(MAKEWORD(i, j));
tile->removeChildByTag(TILE_EDIT, false);
}
}