Esempio n. 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);
        }
 public new static CCScene sceneWithTitle(string title)
 {
     var pScene = new CCScene();
     var controlLayer = new CCControlPotentiometerTest();
     if (controlLayer != null)
     {
         controlLayer.getSceneTitleLabel().Text = (title);
         pScene.AddChild(controlLayer);
     }
     return pScene;
 }
 public static CCScene sceneWithTitle(string title)
 {
     var pScene = new CCScene (AppDelegate.SharedWindow, AppDelegate.SharedViewport);
     var controlLayer = new CCControlPotentiometerTest();
     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 CCControlPotentiometerTest();

            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 CCControlPotentiometerTest();

            if (controlLayer != null)
            {
                controlLayer.SceneTitleLabel.Text = (title);
                pScene.AddChild(controlLayer);
            }
            return(pScene);
        }