public void menuCallback(object pSender) { var pItem = (CCMenuItemFont)pSender; var nIndex = pItem.ZOrder - ExtensionsTestScene.kItemTagBasic; switch (nIndex) { //case TEST_NOTIFICATIONCENTER: // runNotificationCenterTest(); // break; case ExtensionsTestScene.TEST_CCCONTROLBUTTON: var pManager = CCControlSceneManager.sharedControlSceneManager(); CCDirector.SharedDirector.ReplaceScene(pManager.currentControlScene()); break; case ExtensionsTestScene.TEST_COCOSBUILDER: var pScene = new CocosBuilderTest(); if (pScene != null) pScene.runThisTest(); break; //case TEST_HTTPCLIENT: // runHttpClientTest(); // break; //#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) //case TEST_EDITBOX: // runEditBoxTest(); // break; //#endif case ExtensionsTestScene.TEST_TABLEVIEW: TableViewTestLayer.runTableViewTest(); break; default: break; } }
public void menuCallback(object pSender) { var pItem = (CCMenuItemFont)pSender; var nIndex = pItem.ZOrder - ExtensionsTestScene.kItemTagBasic; switch (nIndex) { //case TEST_NOTIFICATIONCENTER: // runNotificationCenterTest(); // break; case ExtensionsTestScene.TEST_CCCONTROLBUTTON: var pManager = CCControlSceneManager.sharedControlSceneManager(); Scene.Director.ReplaceScene(pManager.currentControlScene()); break; case ExtensionsTestScene.TEST_COCOSBUILDER: var pScene = new CocosBuilderTest(); if (pScene != null) { pScene.runThisTest(); } break; //case TEST_HTTPCLIENT: // runHttpClientTest(); // break; //#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) //case TEST_EDITBOX: // runEditBoxTest(); // break; //#endif case ExtensionsTestScene.TEST_TABLEVIEW: TableViewTestLayer.runTableViewTest(); break; case ExtensionsTestScene.TEST_Scale9Sprite: var Manager = Scale9SpriteSceneManager.sharedSprite9SceneManager(); Scene.Director.ReplaceScene(Manager.currentControlScene()); break; default: break; } }