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; }
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; }