public ArchipelagoSelectionScreen(ScreenManager screenManager, GameScreen videoScreen) : base(screenManager, videoScreen) { difficultyMenu = screenManager.FirstOrDefault <GameDifficultyMenuScreen>(); saveSelectScreen = screenManager.FirstOrDefault <SaveSelectScreen>(); #if DEBUG values[ServerIndex] = "localhost"; #else values[ServerIndex] = "archipelago.gg:"; #endif values[UserIndex] = ""; values[PasswordIndex] = ""; }
public static GameScreen Create(ScreenManager screenManager) { GCM gcm = screenManager.AsDynamic().GCM; void Noop() { var gameplayScreen = screenManager.FirstOrDefault <GameplayScreen>(); if (gameplayScreen != null && gameplayScreen.Settings != null) { gcm.UpdateMinimapColors(gameplayScreen.Settings); } } gcm.LoadAllResources(screenManager.AsDynamic().GeneralContentManager, screenManager.GraphicsDevice); return((GameScreen)Activator.CreateInstance(JournalMenuType, GameSave.DemoSave, gcm, (Action)Noop)); }
public override void Initialize(ItemLocationMap itemLocationMap, GCM gameContentManager) { gcm = gameContentManager; if (!IsUsedAsGameSettingsMenu) { return; } Dynamic._menuTitle = "Game Settings"; var gameplayScreen = ScreenManager.FirstOrDefault <GameplayScreen>(); save = gameplayScreen?.Save; settings = IsInGame ? gameplayScreen.Settings : GameSettingsLoader.LoadSettingsFromFile(); ResetMenu(); }
public MinimapScreen(ScreenManager screenManager, GameScreen screen) : base(screenManager, screen) { settings = screenManager.FirstOrDefault <GameplayScreen>().Settings; }
public GameSettingsScreen(ScreenManager screenManager, GameScreen passwordMenuScreen) : base(screenManager, passwordMenuScreen) { seedSelectionScreen = screenManager.FirstOrDefault <SeedSelectionMenuScreen>(); optionsMenuScreen = screenManager.FirstOrDefault <OptionsMenuScreen>(); }