Example #1
0
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);
    }
}
Example #2
0
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);
    }
}
Example #3
0
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);
        }
}