public static void runTableViewTest() { var pScene = new CCScene(AppDelegate.SharedWindow, AppDelegate.SharedViewport); var pLayer = new TableViewTestLayer(); pScene.AddChild(pLayer); AppDelegate.SharedWindow.DefaultDirector.ReplaceScene(pScene); }
public static void runTableViewTest() { var pScene = new CCScene(); var pLayer = new TableViewTestLayer(); pLayer.Init(); pScene.AddChild(pLayer); CCDirector.SharedDirector.ReplaceScene(pScene); }
public static void runTableViewTest() { var pScene = new CCScene(AppDelegate.SharedWindow); var pLayer = new TableViewTestLayer(); pScene.AddChild(pLayer); AppDelegate.SharedWindow.DefaultDirector.ReplaceScene(pScene); }
public static void runTableViewTest() { var pScene = new CCScene(); var pLayer = new TableViewTestLayer(); pLayer.Init(); pScene.AddChild(pLayer); CCDirector.SharedDirector.ReplaceScene(pScene); }
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; } }