Example #1
0
        public override void runThisTest()
        {
            CCLayer pLayer1 = new MenuLayer1();
            CCLayer pLayer2 = new MenuLayer2();
            CCLayer pLayer3 = new MenuLayer3();
            CCLayer pLayer4 = new MenuLayer4();
            CCLayer pLayer5 = new MenuLayerPriorityTest();

            CCLayerMultiplex layer = new CCLayerMultiplex(pLayer1, pLayer2, pLayer3, pLayer4, pLayer5);
            AddChild(layer, 0);

            Director.ReplaceScene(this);
        }
Example #2
0
        public override void runThisTest()
        {
            CCLayer pLayer1 = new MenuLayer1();
            CCLayer pLayer2 = new MenuLayer2();
            CCLayer pLayer3 = new MenuLayer3();
            CCLayer pLayer4 = new MenuLayer4();
            CCLayer pLayer5 = new MenuLayerPriorityTest();

            pLayer1.Camera = AppDelegate.SharedCamera;
            pLayer2.Camera = AppDelegate.SharedCamera;
            pLayer3.Camera = AppDelegate.SharedCamera;
            pLayer4.Camera = AppDelegate.SharedCamera;
            pLayer5.Camera = AppDelegate.SharedCamera;

            CCLayerMultiplex layer = new CCLayerMultiplex(pLayer1, pLayer2, pLayer3, pLayer4, pLayer5);
            layer.Camera = AppDelegate.SharedCamera;
            AddChild(layer, 0);

            Director.ReplaceScene(this);
        }
Example #3
0
        public LayerMultiplexTest()
        {
            List<CCLayer> layers = new List<CCLayer>();
            for (int i = 0; i < 3; i++)
            {
				CCLayer l = new CCLayerColor(new CCColor4B(0,255,0));
                CCSprite img = null;
                switch (i)
                {
                    case 0:
                        img = new CCSprite("Images/grossini");
                        break;
                    case 1:
                        img = new CCSprite("Images/grossinis_sister1");
                        break;
                    case 2:
                        img = new CCSprite("Images/grossinis_sister2");
                        break;
                }
                img.AnchorPoint = CCPoint.Zero;
                img.Position = CCPoint.Zero;
				l.ContentSize = img.ContentSize;
                l.AddChild(img);
                l.Position = new CCPoint(128f, 128f);
                layers.Add(l);
            }
            child = new CCLayerMultiplex(layers.ToArray());
            child.InAction = new CCFadeIn(1);
            AddChild(child);
			Schedule(new Action<float>(AutoMultiplex), 3f);
        }