Exemplo n.º 1
0
 public static void LoadContent(GameScreen gameScreen)
 {
     gameScreen.LoadScreenContent();
 }
Exemplo n.º 2
0
        /// <summary>
        /// Adds a new screen to the screen manager.
        /// </summary>
        public void AddScreen(GameScreen screen)
        {
            screen.ScreenManager = this;
            screen.IsExiting = false;
            _screens.Add(screen);

#if WINDOWS_PHONE
            // update the TouchPanel to respond to gestures this screen is interested in
            TouchPanel.EnabledGestures = screen.EnabledGestures;
#endif

            // If we have a graphics device, tell the screen to load content.
            if (_isInitialized)
            {
#if WINDOWS
                screen.LoadScreenContent();
#elif WINDOWS_PHONE
                screen.LoadScreenContent(false);
#endif
            }
        }
Exemplo n.º 3
0
 public static void LoadContent(GameScreen gameScreen, bool instancePreserved)
 {
     gameScreen.LoadScreenContent(instancePreserved);
 }