当前位置: 首页>>代码示例>>C#>>正文


C# ScreenManager.GetScreens方法代码示例

本文整理汇总了C#中ScreenManager.GetScreens方法的典型用法代码示例。如果您正苦于以下问题:C# ScreenManager.GetScreens方法的具体用法?C# ScreenManager.GetScreens怎么用?C# ScreenManager.GetScreens使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ScreenManager的用法示例。


在下文中一共展示了ScreenManager.GetScreens方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Load

        /// <summary>
        /// Activates the loading screen.
        /// </summary>
        public static void Load(ScreenManager screenManager, bool loadingIsSlow, Screen[] screensToLoad)
        {
            mPreviousScreens = screenManager.GetScreens();
            // Tell all the current screens to transition off.
            foreach (Screen screen in screenManager.GetScreens())
                screen.ExitScreen();

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

            screenManager.AddScreen(loadingScreen);
        }
开发者ID:WilHall,项目名称:hakyn-client,代码行数:17,代码来源:LoadingScreen.cs

示例2: Load

        public static void Load(ScreenManager screenManager, NetworkManager nManager, params GameScreen[] screensToLoad)
        {
            // Tell all the current screens to transition off.
            foreach (GameScreen screen in screenManager.GetScreens())
                screen.ExitScreen();

            // create the loading screen and add it to the manager
            LoadingScreen loadingScreen = new LoadingScreen(screenManager, nManager,  screensToLoad);
            screenManager.AddScreen(loadingScreen);
        }
开发者ID:nchoumitsky,项目名称:Meatieroids,代码行数:10,代码来源:LoadingScreen.cs

示例3: Load

        public static void Load(ScreenManager screenManager, bool loadingIsSlow, string message = "Loading...",
                                params GameScreen[] screensToLoad)
        {
            foreach (GameScreen gameScreen in screenManager.GetScreens())
            {
                gameScreen.ExitScreen();
            }

            var loadingScreen = new LoadingScreen(screenManager, loadingIsSlow, screensToLoad) {Message = message};
            screenManager.AddScreen(loadingScreen);
        }
开发者ID:HaKDMoDz,项目名称:DynaInterface,代码行数:11,代码来源:LoadingScreen.cs

示例4: Load

        public static void Load(ScreenManager screenManager, PlayerIndex? controllingPlayer,GameScreen screensToLoad)
        {
            // Tell all the current screens to transition off.
            foreach (GameScreen screen in screenManager.GetScreens())
                screen.ExitScreen();

            // Create and activate the loading screen.
            LevelCompletionScreen lvlCompletionScreen = new LevelCompletionScreen(screenManager,screensToLoad);

            screenManager.AddScreen(lvlCompletionScreen, controllingPlayer);
        }
开发者ID:res09ggm,项目名称:ucimobile,代码行数:11,代码来源:LevelCompletionScreen.cs

示例5: Load

        public static void Load(ScreenManager screenManager, bool loadingIsSlow,
                                PlayerIndex? controllingPlayer,params GameScreen[] screensToLoad)
        {
            foreach (GameScreen screen in screenManager.GetScreens())
                screen.ExitScreen();

            LoadingScreen loadingScreen = new LoadingScreen(screenManager,
                                                            loadingIsSlow,
                                                            screensToLoad);

            screenManager.AddScreen(loadingScreen, controllingPlayer);
        }
开发者ID:kolpime,项目名称:Asteroids,代码行数:12,代码来源:LoadingScreen.cs

示例6: Load

 /// <summary>
 /// Activates the loading screen.
 /// </summary>
 public static void Load(ScreenManager screenManager, bool loadingIsSlow,
                         PlayerIndex? controllingPlayer,
                         params GameScreen[] screensToLoad)
 {
     // Tell all the current screens to transition off.
     foreach (var screen in screenManager.GetScreens())
     {
         screen.ExitScreen();
     }
     // Create and activate the loading screen.
     var loadingScreen = new LoadingScreen(screenManager, loadingIsSlow, screensToLoad);
     screenManager.AddScreen(loadingScreen, controllingPlayer);
 }
开发者ID:CTU-FEE-Y39PHA-43-2010,项目名称:BombermanAdventure,代码行数:16,代码来源:LoadingScreen.cs

示例7: Load

        public static void Load(ScreenManager screenManager, bool loadingIsSlow,
                                float newPlayerPosition, params GameScreen[] screensToLoad )
        {
            // Tell all the current screens to transition off.
            foreach (GameScreen screen in screenManager.GetScreens())
                screen.ExitScreen();

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

            loadingScreen.newPlayerPosition = newPlayerPosition;

            screenManager.AddScreen(loadingScreen);
        }
开发者ID:abcfantasy,项目名称:Green-Time,代码行数:16,代码来源:LoadingScreen.cs

示例8: Load

        /// <summary>
        /// Activates the loading screen.
        /// </summary>
        public static void Load(ScreenManager screenManager, bool loadingIsSlow,
                                PlayerIndex? controllingPlayer,
                                params GameScreen[] screensToLoad)
        {
            ClientGame.winForm.Cursor = CustomCursors.Busy;
            // Tell all the current screens to transition off.
            foreach (var screen in screenManager.GetScreens())
                screen.ExitScreen();

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

            screenManager.AddScreen(loadingScreen, controllingPlayer);
            screenManager.EventManager.QueueEvent(new GameEvent(EventType.Loading));
            //  Set all characters to breathe
        }
开发者ID:jo215,项目名称:Iso,代码行数:20,代码来源:LoadingScreen.cs

示例9: Load

        /// <summary>
        /// Activa la Loading Screen
        /// </summary>
        /// <param name="screenManager">Manager para agregar las nuevas pantallas a la cola</param>
        /// <param name="loadingIsSlow">Activa modo de cargado lento para poder visualizar bien la pantalla de Loading</param>
        /// <param name="background_name">Nombre del fondo que tendrá esta pantalla. Puede ser vacio.</param>
        /// <param name="controllingPlayer">Player que gatillo la acción</param>
        /// <param name="screensToLoad">Lista de Screens a mostrar despues de Loading Screen</param>
        public static void Load(ScreenManager screenManager, bool loadingIsSlow,
                                string background_name,
                                PlayerIndex? controllingPlayer,
                                params GameScreen[] screensToLoad)
        {
            // Todas las Screens actuales deben hacer Transition Off
            foreach (GameScreen screen in screenManager.GetScreens())
                screen.ExitScreen();

            // Crea y activa la Loading Screen
            LoadingScreen loadingScreen = new LoadingScreen(loadingIsSlow,
                                                            background_name,
                                                            screensToLoad);

            // Añade Loading Screen a la cola de screens
            screenManager.AddScreen(loadingScreen, controllingPlayer);
        }
开发者ID:SpoonmanGames,项目名称:KingK-AGolbinDefenseGame,代码行数:25,代码来源:LoadingScreen.cs


注:本文中的ScreenManager.GetScreens方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。