Ejemplo n.º 1
0
void CommDlg::setNoCancel()
{
    CCNode *cancelBtn = getChildByTag(kCommBtnTagCancel);
    CCNode *cancelTxt = getChildByTag(kCommTextTagCancel);
    CCNode *okBtn = getChildByTag(kCommBtnTagOk);
    CCNode *okTxt = getChildByTag(kCommTextTagOk);
    
    //没有Ok按钮,就不要删cancel按钮了,否则没按钮了
    if (okBtn == NULL) {
        return;
    }
    
    if(cancelBtn)
    {
        cancelBtn->setIsVisible(false);
        cancelBtn->removeFromParentAndCleanup(true);
        cancelBtn=NULL;
    }
    
    if(cancelTxt)
        cancelTxt->setIsVisible(false);
    if(okBtn)
        okBtn->setPosition(CCPointMake(0, -78));
    if(okTxt)
        okTxt->setPosition(CCPointMake(-4, -74));
    
}
Ejemplo n.º 2
0
//동작이 정지된 후에도 계속 움직일 녀석을
void VVPageBaseTimeLine::resumeAfterStopActions()
{

	CCMutableArray<CCNode*>::CCMutableArrayIterator it;
	for (it = afterStopActions->begin(); it != afterStopActions->end(); ++it)
	{
		CCNode * target = *it;
		target->setIsVisible(true);
		actionMgr->resumeTarget(target);
	}
}
Ejemplo n.º 3
0
	//LabelBMFont - CCLabelProtocol protocol
	void CCLabelBMFont::setString(const char *newString)
	{	
		m_sString.clear();
		m_sString = newString;

		if (m_pChildren && m_pChildren->count() != 0)
		{
            CCObject* child;
            CCARRAY_FOREACH(m_pChildren, child)
            {
                CCNode* pNode = (CCNode*) child;
                if (pNode)
                {
                    pNode->setIsVisible(false);
                }
            }