private LoadingScreenLost(ScreenManager screenManager, bool loadingIsSlow, GameScreen[] screensToLoad) { this.loadingIsSlow = loadingIsSlow; this.screensToLoad = screensToLoad; TransitionOnTime = TimeSpan.FromSeconds(0.5); }
private LoadingScreen(ScreenManager screenManager, bool loadingIsSlow, bool toMainMenu, GameScreen[] screensToLoad) { this.loadingIsSlow = loadingIsSlow; this.screensToLoad = screensToLoad; this.toMainMenu = toMainMenu; this.readyToLoad = false; TransitionOnTime = TimeSpan.FromSeconds(0.5); }
public void AddScreen(GameScreen screen, PlayerIndex? controllingPlayer) { screen.ControllingPlayer = controllingPlayer; screen.ScreenManager = this; screen.IsExiting = false; if (isInitialized) { screen.LoadContent(); } screens.Add(screen); }
public void RemoveScreen(GameScreen screen) { if (isInitialized) { screen.UnloadContent(); } screens.Remove(screen); screensToUpdate.Remove(screen); }