Exemple #1
0
 void Deselected(TabScreen tabScreen)
 {
     tabScreen.Deselected();
     if (tabScreen.AutoUnload && tabScreen.Activated)
     {
         tabScreen.Unload();
     }
 }
Exemple #2
0
 void Activate(TabScreen tabScreen, bool instancePreserved)
 {
     if (!tabScreen.Activated)
     {
         tabScreen.Activated = true;
         if (tabScreen.content == null)
         {
             tabScreen.content = new ContentManager(ScreenManager.Game.Services, content.RootDirectory);
         }
         tabScreen.Activate(instancePreserved);
     }
     tabScreen.Selected();
 }