예제 #1
0
 private Task onPaneSwitch(MouseButtonEventArgs args)
 {
     _currentTab.Hide();
     _currentTab       = (_currentTab == Tree) ? (IDebugTab)_displayList : Tree;
     _panesButton.Text = _currentTab == Tree ? "Display List" : "Scene Tree";
     _currentTab.Resize();
     return(_currentTab.Show());
 }
예제 #2
0
 void RegisterTab(IDebugTab tab, bool active)
 {
     Tabs.Add(tab);
     tab.Init(tabsContainer, framesContainer);
     if (active)
     {
         tab.Show();
     }
     tab.OnTabClick += ClickOnTab;
 }
예제 #3
0
 public Task Show()
 {
     _panel.Visible = true;
     resizeGameWindow();
     return(_currentTab.Show());
 }
예제 #4
0
 public Task Show()
 {
     _panel.Visible = true;
     return(_currentTab.Show());
 }