public void SetActiveScreen(string screenName) { if (_screens.ContainsKey(screenName)) { if (_activeScreen != null) _activeScreen.Unload(); _activeScreen = _screens[screenName]; this.Resolution = new Vector2i((int)_activeScreen.Window.Size.X, (int)_activeScreen.Window.Size.Y); } }
public void AddScreen(string name, Screen screen) { if (!_screens.ContainsKey(name)) _screens.Add(name, screen); }