public override void onEnter()
        {
            base.onEnter();
            m_pInScene.Visible = false;

            CCActionInterval split = action();
            CCActionInterval seq   = (CCActionInterval)CCSequence.actions
                                     (
                split,
                CCCallFunc.actionWithTarget(this, (base.hideOutShowIn)),
                split.Reverse()
                                     );

            this.RunAction(CCSequence.actions(
                               easeActionWithAction(seq),
                               CCCallFunc.actionWithTarget(this, base.finish),
                               CCStopGrid.action()));
        }
Beispiel #2
0
        public override void onEnter()
        {
            base.onEnter();
            CCSize s      = Director.SharedDirector.DesignSize;
            float  aspect = s.Width / s.Height;
            int    x      = (int)(12 * aspect);
            int    y      = 12;

            CCTurnOffTiles     toff   = CCTurnOffTiles.actionWithSize(new ccGridSize(x, y), m_fDuration);
            CCFiniteTimeAction action = easeActionWithAction(toff);

            m_pOutScene.RunAction
            (
                CCSequence.actions
                (
                    action,
                    CCCallFunc.actionWithTarget(this, (base.finish)),
                    CCStopGrid.action()
                )
            );
        }
Beispiel #3
0
        public override void onEnter()
        {
            base.onEnter();

            CCSize s      = Director.SharedDirector.DesignSize;
            float  aspect = s.Width / s.Height;
            int    x      = (int)(12 * aspect);
            int    y      = 12;

            CCActionInterval action = actionWithSize(new ccGridSize(x, y));

            m_pOutScene.RunAction
            (
                CCSequence.actions
                (
                    easeActionWithAction(action),
                    CCCallFunc.actionWithTarget(this, base.finish),
                    CCStopGrid.action()
                )
            );
        }
        public override void onEnter()
        {
            base.onEnter();

            CCSize s = Director.SharedDirector.DesignSize;
            int    x, y;

            if (s.Width > s.Height)
            {
                x = 16;
                y = 12;
            }
            else
            {
                x = 12;
                y = 16;
            }

            CCActionInterval action = this.actionWithSize(ccTypes.ccg(x, y));

            if (!m_bBack)
            {
                m_pOutScene.RunAction(CCSequence.actions
                                      (
                                          action,
                                          CCCallFunc.actionWithTarget(this, base.finish),
                                          CCStopGrid.action()));
            }
            else
            {
                // to prevent initial flicker
                m_pInScene.Visible = false;
                m_pInScene.RunAction(CCSequence.actions
                                     (
                                         CCShow.action(),
                                         action,
                                         CCCallFunc.actionWithTarget(this, base.finish),
                                         CCStopGrid.action()));
            }
        }
        public override void onEnter()
        {
            base.onEnter();
            this.m_pInScene.visible = false;
            CCActionInterval cCActionInterval = this.action();

            CCFiniteTimeAction[] cCFiniteTimeActionArray = new CCFiniteTimeAction[] { cCActionInterval, CCCallFunc.actionWithTarget(this, new SEL_CallFunc(this.hideOutShowIn)), cCActionInterval.reverse() };
            CCActionInterval     cCActionInterval1       = (CCActionInterval)CCSequence.actions(cCFiniteTimeActionArray);

            CCFiniteTimeAction[] cCFiniteTimeActionArray1 = new CCFiniteTimeAction[] { this.easeActionWithAction(cCActionInterval1), CCCallFunc.actionWithTarget(this, new SEL_CallFunc(this.finish)), CCStopGrid.action() };
            base.runAction(CCSequence.actions(cCFiniteTimeActionArray1));
        }
Beispiel #6
0
        public override void onEnter()
        {
            int num;
            int num1;

            base.onEnter();
            CCSize winSize = CCDirector.sharedDirector().getWinSize();

            if (winSize.width <= winSize.height)
            {
                num  = 12;
                num1 = 16;
            }
            else
            {
                num  = 16;
                num1 = 12;
            }
            CCActionInterval cCActionInterval = this.actionWithSize(ccTypes.ccg(num, num1));

            if (!this.m_bBack)
            {
                CCScene mPOutScene = this.m_pOutScene;
                CCFiniteTimeAction[] cCFiniteTimeActionArray = new CCFiniteTimeAction[] { cCActionInterval, CCCallFunc.actionWithTarget(this, new SEL_CallFunc(this.finish)), CCStopGrid.action() };
                mPOutScene.runAction(CCSequence.actions(cCFiniteTimeActionArray));
                return;
            }
            this.m_pInScene.visible = false;
            CCScene mPInScene = this.m_pInScene;

            CCFiniteTimeAction[] cCFiniteTimeActionArray1 = new CCFiniteTimeAction[] { CCShow.action(), cCActionInterval, CCCallFunc.actionWithTarget(this, new SEL_CallFunc(this.finish)), CCStopGrid.action() };
            mPInScene.runAction(CCSequence.actions(cCFiniteTimeActionArray1));
        }
Beispiel #7
0
        public override void onEnter()
        {
            base.onEnter();
            CCSize           winSize          = CCDirector.sharedDirector().getWinSize();
            int              num              = (int)(12f * (winSize.width / winSize.height));
            CCActionInterval cCActionInterval = this.actionWithSize(new ccGridSize(num, 12));
            CCScene          mPOutScene       = this.m_pOutScene;

            CCFiniteTimeAction[] cCFiniteTimeActionArray = new CCFiniteTimeAction[] { this.easeActionWithAction(cCActionInterval), CCCallFunc.actionWithTarget(this, new SEL_CallFunc(this.finish)), CCStopGrid.action() };
            mPOutScene.runAction(CCSequence.actions(cCFiniteTimeActionArray));
        }
Beispiel #8
0
        public override void onEnter()
        {
            base.onEnter();
            CCSize             winSize            = CCDirector.sharedDirector().getWinSize();
            int                num                = (int)(12f * (winSize.width / winSize.height));
            int                num1               = 12;
            CCTurnOffTiles     cCTurnOffTile      = CCTurnOffTiles.actionWithSize(new ccGridSize(num, num1), this.m_fDuration);
            CCFiniteTimeAction cCFiniteTimeAction = this.easeActionWithAction(cCTurnOffTile);
            CCScene            mPOutScene         = this.m_pOutScene;

            CCFiniteTimeAction[] cCFiniteTimeActionArray = new CCFiniteTimeAction[] { cCFiniteTimeAction, CCCallFunc.actionWithTarget(this, new SEL_CallFunc(this.finish)), CCStopGrid.action() };
            mPOutScene.runAction(CCSequence.actions(cCFiniteTimeActionArray));
        }