Exemplo n.º 1
0
    public override void execute()
    {
        txUIObject window = mReceiver as txUIObject;
        WindowComponentSmoothSlider componentSmoothSlider = window.getFirstComponent <WindowComponentSmoothSlider>();

        if (componentSmoothSlider != null)
        {
            componentSmoothSlider.setActive(true);
            componentSmoothSlider.start(mStartSliderValue, mTargetSliderValue, mFadeTime, mTimeOffset);
        }
    }
Exemplo n.º 2
0
    public override void execute()
    {
        txUIObject           window    = (mReceiver) as txUIObject;
        ComponentRotateFixed component = window.getFirstComponent <ComponentRotateFixed>();

        if (component != null)
        {
            component.setActive(mActive);
            component.setFixedEuler(mFixedEuler);
        }
    }
Exemplo n.º 3
0
    public override void execute()
    {
        txUIObject window = mReceiver as txUIObject;
        WindowComponentSmoothFillAmount componentSmoothFillAmount = window.getFirstComponent <WindowComponentSmoothFillAmount>();

        if (componentSmoothFillAmount != null)
        {
            componentSmoothFillAmount.setActive(true);
            componentSmoothFillAmount.start(mStartFillAmount, mTargetFillAmount, mFadeTime, mTimeOffset);
        }
    }
Exemplo n.º 4
0
    public override void execute()
    {
        txUIObject window = (mReceiver) as txUIObject;
        WindowComponentRotateSpeed component = window.getFirstComponent <WindowComponentRotateSpeed>();

        if (component != null)
        {
            component.setActive(true);
            component.startRotateSpeed(mStartAngle, mRotateSpeed, mRotateAcceleration);
        }
    }
Exemplo n.º 5
0
    public override void execute()
    {
        txUIObject window = mReceiver as txUIObject;
        WindowComponentTrackTarget component = window.getFirstComponent <WindowComponentTrackTarget>();

        if (component != null)
        {
            component.setSpeed(mSpeed);
            component.setActive(true);
            component.setMoveDoneTrack(mObject, mDoneCallback, mCheckPosition);
        }
    }
Exemplo n.º 6
0
    public override void execute()
    {
        txUIObject         window       = mReceiver as txUIObject;
        WindowComponentHSL componentHSL = window.getFirstComponent <WindowComponentHSL>();

        if (componentHSL != null)
        {
            componentHSL.setActive(true);
            componentHSL.setHSLFadingCallback(mFadingCallback, mFadingUserData);
            componentHSL.setHSLDoneCallback(mFadeDoneCallback, mFadeDoneUserData);
            componentHSL.start(mFadeTime, mStartHSL, mTargetHSL, mTimeOffset);
        }
    }
Exemplo n.º 7
0
    public override void execute()
    {
        txUIObject           window         = mReceiver as txUIObject;
        WindowComponentAlpha componentAlpha = window.getFirstComponent <WindowComponentAlpha>();

        if (componentAlpha != null)
        {
            componentAlpha.setActive(true);
            componentAlpha.setFadingCallback(mFadingCallback, mFadingData);
            componentAlpha.setFadeDoneCallback(mFadeDoneCallBack, mFadeDoneData);
            componentAlpha.start(mStartAlpha, mTargetAlpha, mFadeTime, mTimeOffset);
        }
    }
Exemplo n.º 8
0
    public override void execute()
    {
        txUIObject           window         = (txUIObject)(mReceiver);
        WindowComponentScale componentScale = window.getFirstComponent <WindowComponentScale>();

        if (componentScale != null)
        {
            componentScale.setActive(true);
            componentScale.setScalingCallback(mScalingCallback, mScalingUserData);
            componentScale.setScaleDoneCallback(mScaleDoneCallback, mScaleDoneUserData);
            componentScale.start(new Vector3(mStartScale.x, mStartScale.y, 1.0f), new Vector3(mTargetScale.x, mTargetScale.y, 1.0f), mScaleTime, mTimeOffset);
        }
    }
Exemplo n.º 9
0
    public override void execute()
    {
        txUIObject window = (mReceiver) as txUIObject;
        WindowComponentRotateToTarget component = window.getFirstComponent <WindowComponentRotateToTarget>();

        if (component != null)
        {
            component.setRotateDoneCallback(mRotateDoneCallback, mRotateDoneUserData);
            component.setRotatingCallback(mRotatingCallback, mRotatingUserData);
            component.setActive(true);
            component.startRotateToTarget(mTargetAngle, mStartAngle, mRotateTime, mTimeOffset);
        }
    }
Exemplo n.º 10
0
    public override void execute()
    {
        txUIObject          window  = (mReceiver) as txUIObject;
        WindowComponentMove comMove = window.getFirstComponent <WindowComponentMove>();

        if (comMove != null)
        {
            comMove.setMovingCallback(mMovingCallback, mMovingUserData);
            comMove.setMoveDoneCallback(mMoveDoneCallback, mMoveDoneUserData);
            comMove.setActive(true);
            comMove.start(mMoveTime, mStartPosition, mDestPosition, mTimeOffset);
        }
    }
Exemplo n.º 11
0
    public override void execute()
    {
        txUIObject          window    = (mReceiver) as txUIObject;
        WindowComponentMove component = window.getFirstComponent <WindowComponentMove>();

        if (component != null)
        {
            component.setTremblingCallback(mTremblingCallBack, mTremblingUserData);
            component.setTrembleDoneCallback(mTrembleDoneCallBack, mTrembleDoneUserData);
            component.setActive(true);
            component.setTargetPos(mTargetPos);
            component.setStartPos(mStartPos);
            component.play(mName, mLoop, mOnceLength, mOffset, mFullOnce, mAmplitude);
        }
    }
    public override void execute()
    {
        txUIObject window = mReceiver as txUIObject;
        WindowComponentScaleTrembling comTrembling = window.getFirstComponent <WindowComponentScaleTrembling>();

        if (null != comTrembling)
        {
            comTrembling.setActive(true);
            comTrembling.setTremblingCallback(mTremblingCallBack, mTremblingUserData);
            comTrembling.setTrembleDoneCallback(mTrembleDoneCallBack, mTrembleDoneUserData);
            comTrembling.setStartScale(mStartScale);
            comTrembling.setTargetScale(mTargetScale);
            comTrembling.play(mName, mLoop, mOnceLength, mOffset, mFullOnce, mAmplitude);
        }
    }
Exemplo n.º 13
0
    public override void execute()
    {
        txUIObject          window        = mReceiver as txUIObject;
        WindowComponentFill componentFill = window.getFirstComponent <WindowComponentFill>();

        if (componentFill != null)
        {
            componentFill.setActive(true);
            componentFill.setTremblingCallback(mTremblingCallBack, null);
            componentFill.setTrembleDoneCallback(mTrembleDoneCallBack, null);
            componentFill.setStartValue(mStartValue);
            componentFill.setTargetValue(mTargetValue);
            componentFill.play(mTremblingName, mLoop, mOnceLength, mOffset, mFullOnce, mAmplitude);
        }
    }
Exemplo n.º 14
0
    public override void execute()
    {
        txUIObject            window    = (mReceiver) as txUIObject;
        WindowComponentRotate component = window.getFirstComponent <WindowComponentRotate>();

        if (component != null)
        {
            component.setTremblingCallback(mTremblingCallBack, mTremblingUserData);
            component.setTrembleDoneCallback(mTrembleDoneCallBack, mTrembleDoneUserData);
            component.setActive(true);
            if (mRandomOffset)
            {
                mOffset = randomFloat(0.0f, mOnceLength);
            }
            component.setTargetRotation(mTargetRotation);
            component.setStartRotation(mStartRotation);
            component.play(mName, mLoop, mOnceLength, mOffset, mFullOnce, mAmplitude);
        }
    }
Exemplo n.º 15
0
    public override void execute()
    {
        txUIObject window = mReceiver as txUIObject;
        WindowComponentAlphaTrembling comTrembling = window.getFirstComponent <WindowComponentAlphaTrembling>();

        if (comTrembling != null)
        {
            comTrembling.setTremblingCallback(mTremblingCallBack, mTremblingUserData);
            comTrembling.setTrembleDoneCallback(mTrembleDoneCallBack, mTrembleDoneUserData);
            // 随机偏移量
            if (mRandomOffset)
            {
                mOffset = MathUtility.randomFloat(0.0f, mOnceLength);
            }
            comTrembling.setActive(true);
            comTrembling.setStartAlpha(mStartAlpha);
            comTrembling.setTargetAlpha(mTargetAlpha);
            comTrembling.play(mName, mLoop, mOnceLength, mOffset, mFullOnce, mAmplitude);
        }
    }