예제 #1
0
        /** Returns the current control scene. */
        public CCScene currentControlScene()
        {
            switch (m_nCurrentControlSceneId)
            {
            case kCCControlSliderTest:
                return(CCControlSliderTest.sceneWithTitle(s_testArray[m_nCurrentControlSceneId]));

            //case kCCControlColourPickerTest:
            //    return CCControlColourPickerTest.sceneWithTitle(s_testArray[m_nCurrentControlSceneId]);
            case kCCControlSwitchTest:
                return(CCControlSwitchTest.sceneWithTitle(s_testArray[m_nCurrentControlSceneId]));

            case kCCControlButtonTest_HelloVariableSize:
                return(CCControlButtonTest_HelloVariableSize.sceneWithTitle(s_testArray[m_nCurrentControlSceneId]));

            case kCCControlButtonTest_Event:
                return(CCControlButtonTest_Event.sceneWithTitle(s_testArray[m_nCurrentControlSceneId]));

            case kCCControlButtonTest_Styling:
                return(CCControlButtonTest_Styling.sceneWithTitle(s_testArray[m_nCurrentControlSceneId]));

            case kCCControlButtonTest_Inset:
                return(CCControlButtonTest_Inset.sceneWithTitle(s_testArray[m_nCurrentControlSceneId]));

            case kCCControlButtonTest_Potentiometer:
                return(CCControlPotentiometerTest.sceneWithTitle(s_testArray[m_nCurrentControlSceneId]));

            case kCCControlButtonTest_ColourPicker:
                return(CCControlColourPickerTest.sceneWithTitle(s_testArray[m_nCurrentControlSceneId]));

            case kCCControlButtonTest_Stepper:
                return(CCControlStepperTest.sceneWithTitle(s_testArray[m_nCurrentControlSceneId]));
            }
            return(null);
        }
예제 #2
0
        public new static CCScene sceneWithTitle(string title)
        {
            var pScene       = new CCScene(AppDelegate.SharedWindow);
            var controlLayer = new CCControlButtonTest_Styling();

            if (controlLayer != null)
            {
                controlLayer.getSceneTitleLabel().Text = (title);
                pScene.AddChild(controlLayer);
            }
            return(pScene);
        }
        public new static CCScene sceneWithTitle(string title)
        {
            var pScene       = new CCScene();
            var controlLayer = new CCControlButtonTest_Styling();

            if (controlLayer != null && controlLayer.Init())
            {
                controlLayer.getSceneTitleLabel().Label = (title);
                pScene.AddChild(controlLayer);
            }
            return(pScene);
        }
예제 #4
0
		public new static CCScene sceneWithTitle(string title)
		{
			var pScene = new CCScene();
			var controlLayer = new CCControlButtonTest_Styling();
			if (controlLayer != null)
			{
				controlLayer.getSceneTitleLabel().Text = (title);
				pScene.AddChild(controlLayer);
			}
			return pScene;
		}
        public static CCScene SceneWithTitle(string title)
		{
            var pScene = new CCScene (AppDelegate.SharedWindow);
			var controlLayer = new CCControlButtonTest_Styling();
			if (controlLayer != null)
			{
				controlLayer.SceneTitleLabel.Text = (title);
				pScene.AddChild(controlLayer);
			}
			return pScene;
		}