Exemple #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);
        }
Exemple #2
0
        public new static CCScene sceneWithTitle(string title)
        {
            var pScene       = new CCScene(AppDelegate.SharedWindow);
            var controlLayer = new CCControlButtonTest_Inset();

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

            controlLayer.Init();
            controlLayer.getSceneTitleLabel().Label = (title);
            pScene.AddChild(controlLayer);
            return(pScene);
        }
 public new static CCScene sceneWithTitle(string title)
 {
     var pScene = new CCScene();
     var controlLayer = new CCControlButtonTest_Inset();
     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_Inset();
     controlLayer.SceneTitleLabel.Text = (title);
     pScene.AddChild(controlLayer);
     return pScene;
 }
 public new static CCScene sceneWithTitle(string title)
 {
     var pScene = new CCScene (AppDelegate.SharedWindow, AppDelegate.SharedViewport);
     var controlLayer = new CCControlButtonTest_Inset();
     controlLayer.getSceneTitleLabel().Text = (title);
     pScene.AddChild(controlLayer);
     return pScene;
 }