Пример #1
0
        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);
            }
        }
Пример #2
0
 public void AddScreen(string name, Screen screen)
 {
     if (!_screens.ContainsKey(name))
         _screens.Add(name, screen);
 }