int UIWidget::getOpacity() { RGBAProtocol* rgbap = DYNAMIC_CAST_RGBAProtocol; if (rgbap) { return rgbap->getOpacity(); } return 255; }
void FadeTo::startWithTarget(Node *target) { ActionInterval::startWithTarget(target); RGBAProtocol *pRGBAProtocol = dynamic_cast<RGBAProtocol*>(target); if (pRGBAProtocol) { _fromOpacity = pRGBAProtocol->getOpacity(); } /*_fromOpacity = target->getOpacity();*/ }