Пример #1
0
bool CLabelAtlasTest::onTouchEnded(Ref* pSender, Touch* pTouch, float fDuration)
{
	CLabelAtlas* pText = (CLabelAtlas*) pSender;
	pText->stopActionByTag(1);
	ScaleTo* pScaleTo = ScaleTo::create(0.1f, 1.0f);
	pScaleTo->setTag(1);
	pText->runAction(pScaleTo);

	return true;
}
Пример #2
0
CWidgetTouchModel CLabelAtlasTest::onTouchBegan(Ref* pSender, Touch* pTouch)
{
	CLabelAtlas* pText = (CLabelAtlas*) pSender;
	pText->stopActionByTag(1);
	ScaleTo* pScaleTo = ScaleTo::create(0.1f, 1.3f);
	pScaleTo->setTag(1);
	pText->runAction(pScaleTo);

	return eWidgetTouchTransient;
}