Esempio n. 1
0
 private void SwitchScreen(Screen screen)
 {
     if (currentScreen != null)
     {
         currentScreen.Hide();
     }
     currentScreen = screen;
     currentScreen.Show();
 }
Esempio n. 2
0
 public ControlScreen(Screen previousScreen)
     : base()
 {
     backAction = new Action(() => { RM.SaveConfig(); Fribzel.BaseGame.ShowScreen(previousScreen); });
 }
Esempio n. 3
0
 /// <summary>
 /// Hide the current screen (if any), then show the given screen
 /// </summary>
 /// <param name="screen"></param>
 public void ShowScreen(Screen screen)
 {
     if (screen != null)
     {
         SwitchScreen(screen);
     }
 }
Esempio n. 4
0
 public static Screen ControlScreen(Screen screenToGoBackTo)
 {
     return new ControlScreen(screenToGoBackTo);
 }