Пример #1
0
PopLayer* PopLayer::create(const string hanzi,const char* backgroundImage){
	PopLayer* l = PopLayer::create();
	l->setSpriteBackGround(CCSprite::create(backgroundImage));
	l->setSprite9BackGround(CCScale9Sprite::create(backgroundImage));
	l->setHanzi(hanzi);
	return l;
}
Пример #2
0
PopLayer* PopLayer::create(const char* backgroundImage)
{
    PopLayer* ml = PopLayer::create();
    ml->setSpriteBackGround(Sprite::create(backgroundImage));
    ml->setSprite9BackGround(Scale9Sprite::create(backgroundImage));
    return ml;
}