public override void update(float time) { ICCRGBAProtocol pRGBAProtocol = m_pTarget as ICCRGBAProtocol; if (pRGBAProtocol != null) { pRGBAProtocol.Opacity = (byte)(255 * time); } }
public override void update(float time) { ICCRGBAProtocol mPTarget = this.m_pTarget as ICCRGBAProtocol; if (mPTarget != null) { mPTarget.Opacity = (byte)(255f * time); } }
public override void Update(float time) { ICCRGBAProtocol pRGBAProtocol = Target as ICCRGBAProtocol; if (pRGBAProtocol != null) { pRGBAProtocol.Opacity = (byte)(m_fromOpacity + (m_toOpacity - m_fromOpacity) * time); } }
public override void update(float dt) { ICCRGBAProtocol mPTarget = this.m_pTarget as ICCRGBAProtocol; if (mPTarget != null) { mPTarget.Color = new ccColor3B((byte)((float)this.m_from.r + (float)(this.m_to.r - this.m_from.r) * dt), (byte)((float)this.m_from.g + (float)(this.m_to.g - this.m_from.g) * dt), (byte)((float)this.m_from.b + (float)(this.m_to.b - this.m_from.b) * dt)); } }
public override void update(float time) { ICCRGBAProtocol mPTarget = this.m_pTarget as ICCRGBAProtocol; if (mPTarget != null) { mPTarget.Opacity = (byte)((float)this.m_fromOpacity + (float)(this.m_toOpacity - this.m_fromOpacity) * time); } }
public override void update(float dt) { ICCRGBAProtocol mPTarget = this.m_pTarget as ICCRGBAProtocol; if (mPTarget != null) { mPTarget.Color = new ccColor3B((byte)((float)this.m_fromR + (float)this.m_deltaR * dt), (byte)((float)this.m_fromG + (float)this.m_deltaG * dt), (byte)((float)this.m_fromB + (float)this.m_deltaB * dt)); } }
public override void startWithTarget(CCNode target) { base.startWithTarget(target); ICCRGBAProtocol protocol = m_pTarget as ICCRGBAProtocol; if (protocol != null) { m_from = protocol.Color; } }
public override void update(float time) { ICCRGBAProtocol pRGBAProtocol = m_pTarget as ICCRGBAProtocol; if (pRGBAProtocol != null) { pRGBAProtocol.Opacity = (byte)(255 * (1 - time)); } /*m_pTarget->setOpacity(GLubyte(255 * (1 - time)));*/ }
public override void startWithTarget(CCNode target) { base.startWithTarget(target); ICCRGBAProtocol mPTarget = this.m_pTarget as ICCRGBAProtocol; if (mPTarget != null) { this.m_from = mPTarget.Color; } }
public override void startWithTarget(CCNode pTarget) { base.startWithTarget(pTarget); ICCRGBAProtocol cCRGBAProtocol = pTarget as ICCRGBAProtocol; if (cCRGBAProtocol != null) { this.m_fromOpacity = cCRGBAProtocol.Opacity; } }
public override void update(float dt) { ICCRGBAProtocol protocol = m_pTarget as ICCRGBAProtocol; if (protocol != null) { protocol.Color = new ccColor3B((byte)(m_from.r + (m_to.r - m_from.r) * dt), (byte)(m_from.g + (m_to.g - m_from.g) * dt), (byte)(m_from.b + (m_to.b - m_from.b) * dt)); } }
public override void StartWithTarget(Node pTarget) { base.StartWithTarget(pTarget); ICCRGBAProtocol pRGBAProtocol = pTarget as ICCRGBAProtocol; if (pRGBAProtocol != null) { m_fromOpacity = pRGBAProtocol.Opacity; } }
public override void Update(float dt) { ICCRGBAProtocol protocol = Target as ICCRGBAProtocol; if (protocol != null) { protocol.Color = new ccColor3B((byte)(m_fromR + m_deltaR * dt), (byte)(m_fromG + m_deltaG * dt), (byte)(m_fromB + m_deltaB * dt)); } }
public override void startWithTarget(CCNode target) { base.startWithTarget(target); ICCRGBAProtocol cCRGBAProtocol = target as ICCRGBAProtocol; if (cCRGBAProtocol != null) { ccColor3B color = cCRGBAProtocol.Color; this.m_fromR = color.r; this.m_fromG = color.g; this.m_fromB = color.b; } }
public override void StartWithTarget(Node target) { base.StartWithTarget(target); ICCRGBAProtocol protocol = target as ICCRGBAProtocol; if (protocol != null) { ccColor3B color = protocol.Color; m_fromR = color.r; m_fromG = color.g; m_fromB = color.b; } }