public static void AddScreen(GameScreen screen) { tNode.Nodes.Add(screen.GetTreeNode()); screen.OnAddToTree(); screens.Add(screen); }
public static void RemoveScreen(GameScreen screen) { ShowPropsPanel(); tNode.Nodes.Remove(screen.GetTreeNode()); screens.Remove(screen); if (screens.Count > 0) SetCurrentScreen(screens[0]); else currentScreen = null; }