Exemple #1
0
        public override object Copy(ICopyable pZone)
        {
            CCShow pRet;
            if (pZone != null)
            {
                pRet = (CCShow) (pZone);
            }
            else
            {
                pRet = new CCShow();
                pZone =  (pRet);
            }

            base.Copy(pZone);
            return pRet;
        }
Exemple #2
0
        public override object Copy(ICopyable pZone)
        {
            CCShow pRet;

            if (pZone != null)
            {
                pRet = (CCShow)(pZone);
            }
            else
            {
                pRet  = new CCShow();
                pZone = (pRet);
            }

            base.Copy(pZone);
            return(pRet);
        }
Exemple #3
0
        public override void onEnter()
        {
            base.onEnter();

            alignSpritesLeft(1);

            m_grossini.visible = false;

            CCFiniteTimeAction action = CCSequence.actions(
                CCPlace.actionWithPosition(new CCPoint(200, 200)),
                CCShow.action(),
                CCMoveBy.actionWithDuration(1, new CCPoint(100, 0)),
                CCCallFunc.actionWithTarget(this, new SEL_CallFunc(callback1)),
                CCCallFuncN.actionWithTarget(this, new SEL_CallFuncN(callback2)),
                CCCallFuncND.actionWithTarget(this, new SEL_CallFuncND(callback3), (object)0xbebabeba));

            m_grossini.runAction(action);
        }
        public override void OnEnter()
        {
            base.OnEnter();

            this.TouchEnabled = true;

            CCSize       s     = CCDirector.SharedDirector.WinSize;
            CCLayerColor layer = new CCLayerColor(new CCColor4B(0xFF, 0x00, 0x00, 0x80), s.Width * 0.75f, s.Height * 0.75f);

            layer.IgnoreAnchorPointForPosition = false;
            layer.Position = (new CCPoint(s.Width / 2, s.Height / 2));
            AddChild(layer, 1, kTagLayer);
            //
            // Add two labels using BM label class
            // CCLabelBMFont
            CCLabelBMFont label1 = new CCLabelBMFont("LABEL1", "fonts/konqa32.fnt");

            layer.AddChild(label1);
            label1.Position = new CCPoint(layer.ContentSize.Width / 2, layer.ContentSize.Height * 0.75f);
            CCLabelBMFont label2 = new CCLabelBMFont("LABEL2", "fonts/konqa32.fnt");

            layer.AddChild(label2);
            label2.Position = new CCPoint(layer.ContentSize.Width / 2, layer.ContentSize.Height * 0.25f);
            //
            // Do the sequence of actions in the bug report
            float waitTime = 3f;
            float runTime  = 12f;

            layer.Visible = false;
            CCHide      hide     = new CCHide();
            CCScaleTo   scaleTo1 = new CCScaleTo(0.0f, 0.0f);
            CCShow      show     = new CCShow();
            CCDelayTime delay    = new CCDelayTime(waitTime);
            CCScaleTo   scaleTo2 = new CCScaleTo(runTime * 0.25f, 1.2f);
            CCScaleTo   scaleTo3 = new CCScaleTo(runTime * 0.25f, 0.95f);
            CCScaleTo   scaleTo4 = new CCScaleTo(runTime * 0.25f, 1.1f);
            CCScaleTo   scaleTo5 = new CCScaleTo(runTime * 0.25f, 1.0f);

            CCFiniteTimeAction seq = CCSequence.FromActions(hide, scaleTo1, show, delay, scaleTo2, scaleTo3, scaleTo4, scaleTo5);

            layer.RunAction(seq);
        }
        public override void onEnter()
        {
            base.onEnter();

            this.isTouchEnabled = true;

            CCSize       s     = CCDirector.sharedDirector().getWinSize();
            CCLayerColor layer = CCLayerColor.layerWithColorWidthHeight(new ccColor4B(0xFF, 0x00, 0x00, 0x80), s.width * 0.75f, s.height * 0.75f);

            layer.isRelativeAnchorPoint = true;
            layer.position = (new CCPoint(s.width / 2, s.height / 2));
            addChild(layer, 1, kTagLayer);
            //
            // Add two labels using BM label class
            // CCLabelBMFont
            CCLabelBMFont label1 = CCLabelBMFont.labelWithString("LABEL1", "fonts/fnt/konqa32");

            layer.addChild(label1);
            label1.position = new CCPoint(layer.contentSize.width / 2, layer.contentSize.height * 0.75f);
            CCLabelBMFont label2 = CCLabelBMFont.labelWithString("LABEL2", "fonts/fnt/konqa32");

            layer.addChild(label2);
            label2.position = new CCPoint(layer.contentSize.width / 2, layer.contentSize.height * 0.25f);
            //
            // Do the sequence of actions in the bug report
            float waitTime = 3f;
            float runTime  = 12f;

            layer.visible = false;
            CCHide      hide     = CCHide.action();
            CCScaleTo   scaleTo1 = CCScaleTo.actionWithDuration(0.0f, 0.0f);
            CCShow      show     = CCShow.action();
            CCDelayTime delay    = CCDelayTime.actionWithDuration(waitTime);
            CCScaleTo   scaleTo2 = CCScaleTo.actionWithDuration(runTime * 0.25f, 1.2f);
            CCScaleTo   scaleTo3 = CCScaleTo.actionWithDuration(runTime * 0.25f, 0.95f);
            CCScaleTo   scaleTo4 = CCScaleTo.actionWithDuration(runTime * 0.25f, 1.1f);
            CCScaleTo   scaleTo5 = CCScaleTo.actionWithDuration(runTime * 0.25f, 1.0f);

            CCFiniteTimeAction seq = CCSequence.actions(hide, scaleTo1, show, delay, scaleTo2, scaleTo3, scaleTo4, scaleTo5);

            layer.runAction(seq);
        }
Exemple #6
0
 protected CCShow(CCShow show) : base(show)
 {
 }
Exemple #7
0
 protected CCShow(CCShow show) : base(show)
 {
 }
Exemple #8
0
 public static new CCShow Create()
 {
     var pRet = new CCShow();
     return pRet;
 }
Exemple #9
0
 public CCShowState (CCShow action, CCNode target)
     : base (action, target)
 {   
     target.Visible = true;
 }
Exemple #10
0
 public CCShowState(CCShow action, CCNode target)
     : base(action, target)
 {
     target.Visible = true;
 }