public ScreenManager() { innerScreens = new Dictionary <string, IScreen>(); IScreen screenModBrowser = new ModBrowserScreen(); IScreen screenCredit = new CreditScreen(); IScreen screenConsole = new GameConsoleScreen(); IScreen screenInventory = new InventoryScreen(); IScreen screenEditor = new GameEditorScreen(); IScreen screenMainMenu = new GameMainMenuScreen(); IScreen screenMain = new GameMainScreen(); IScreen screenMenu = new GameMenuScreen(); IScreen screenCha = new CharacterScreen(); IScreen screenNotes = new GameNotesScreen(); IScreen screenMPServerBrowser = new MultiplayerServerBrowserScreen(); innerScreens.Add(screenModBrowser.Name, screenModBrowser); innerScreens.Add(screenMainMenu.Name, screenMainMenu); innerScreens.Add(screenCredit.Name, screenCredit); innerScreens.Add(screenConsole.Name, screenConsole); innerScreens.Add(screenInventory.Name, screenInventory); innerScreens.Add(screenEditor.Name, screenEditor); innerScreens.Add(screenMain.Name, screenMain); innerScreens.Add(screenMenu.Name, screenMenu); innerScreens.Add(screenCha.Name, screenCha); innerScreens.Add(screenNotes.Name, screenNotes); innerScreens.Add(screenMPServerBrowser.Name, screenMPServerBrowser); innerScreens.Add("ScriptedScreen", null); //TODO: Load all screen script files instance = this; runningScreenStack = new Stack <IScreen>(); }
public ScreenManager() { innerScreens = new Dictionary <string, IScreen>(); IScreen screenCredit = new CreditScreen(); IScreen screenConsole = new GameConsoleScreen(); IScreen screenInventory = new InventoryScreen(); IScreen screenEditor = new GameEditorScreen(); innerScreens.Add(screenCredit.Name, screenCredit); innerScreens.Add(screenConsole.Name, screenConsole); innerScreens.Add(screenInventory.Name, screenInventory); innerScreens.Add(screenEditor.Name, screenEditor); instance = this; runningScreenStack = new Stack <IScreen>(); }
public ScreenManager() { innerScreens = new Dictionary <string, IScreen>(); IScreen screenCredit = new CreditScreen(); IScreen screenConsole = new GameConsoleScreen(); IScreen screenInventory = new InventoryScreen(); IScreen screenEditor = new GameEditorScreen(); IScreen screenMain = new GameMainScreen(); IScreen screenMenu = new GameMenuScreen(); innerScreens.Add(screenCredit.Name, screenCredit); innerScreens.Add(screenConsole.Name, screenConsole); innerScreens.Add(screenInventory.Name, screenInventory); innerScreens.Add(screenEditor.Name, screenEditor); innerScreens.Add(screenMain.Name, screenMain); innerScreens.Add(screenMenu.Name, screenMenu); //TODO: Load all screen script files instance = this; runningScreenStack = new Stack <IScreen>(); }