Ejemplo n.º 1
0
        /// <summary>
        /// Loads Levels
        /// </summary>
        public static void Load(MenuSystem MenuSystem, bool loadingIsSlow, string levelName)
        {
            // Tell all the current screens to transition off.
            MenuSystem.ExitAll();

            // Create and activate the loading screen.
            LoadingScreen loadingScreen = new LoadingScreen(MenuSystem,
                                                            loadingIsSlow,
                                                            levelName);
            MenuSystem.AddScreen(loadingScreen);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Loads Menus.
        /// </summary>
        public static void Load(MenuSystem MenuSystem, bool loadingIsSlow, params GameScreen[] screensToLoad)
        {
            // Tell all the current screens to transition off.
            foreach (GameScreen screen in MenuSystem.GetScreens())
                screen.ExitScreen();

            // Create and activate the loading screen.
            LoadingScreen loadingScreen = new LoadingScreen(MenuSystem,
                                                            loadingIsSlow,
                                                            screensToLoad);

            MenuSystem.AddScreen(loadingScreen);
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            MenuSystem menuSystem = MenuSystem.GetInstance();

            menuSystem.AddScreen(new MainScreen());
        }