本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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
}
示例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);
}