コード例 #1
0
ファイル: ScreenManager.cs プロジェクト: honghaoli/OpenMB
        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>();
        }
コード例 #2
0
ファイル: ScreenManager.cs プロジェクト: wuhuolong/OpenMB
        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>();
        }
コード例 #3
0
        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>();
        }