예제 #1
0
 void Deselected(TabScreen tabScreen)
 {
     tabScreen.Deselected();
     if (tabScreen.AutoUnload && tabScreen.Activated)
     {
         tabScreen.Unload();
     }
 }
예제 #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();
 }