Exemplo n.º 1
0
void CCheckBox::setCheckedPressImage(const char* pFile)
{
	if( pFile && strlen(pFile) )
	{
		CCTexture2D* pTexture = CCTextureCache::sharedTextureCache()->addImage(pFile);
		setCheckedPressTexture(pTexture);
	}
}
Exemplo n.º 2
0
void CCheckBox::setCheckedPressImage(const char* pFile)
{
	if( pFile && strlen(pFile) )
	{
		Texture2D* pTexture = Director::getInstance()->getTextureCache()->addImage(pFile);
		setCheckedPressTexture(pTexture);
	}
}