cocos2dx 消息提示显示

void NNBoard::showServerMessage( string ch )
{
#if 0
	static int index = 0;
	if (index >10)
	{
		index = 0;
	}
	CCLabelTTF* _label = CCLabelTTF::create(ch.c_str(),"", 30);
	_label->setPosition(WINSIZE/2+CCPoint(0,200-index*40));
	_label->runAction(CCSequence::create(CCDelayTime::create(5), CCFadeOut::create(1),CCRemoveSelf::create(true),NULL));
	this->AddGameChild(_label);
	index++;
#endif
	
}

你可能感兴趣的:(cocos2dx 消息提示显示)