Пример #1
0
void CCheckBox::setNormalPressImage(const char* pFile)
{
	if( pFile && strlen(pFile) )
	{
		CCTexture2D* pTexture = CCTextureCache::sharedTextureCache()->addImage(pFile);
		setNormalPressTexture(pTexture);
	}
}
Пример #2
0
void CCheckBox::setNormalPressImage(const char* pFile)
{
	if( pFile && strlen(pFile) )
	{
		Texture2D* pTexture = Director::getInstance()->getTextureCache()->addImage(pFile);
		setNormalPressTexture(pTexture);
	}
}