예제 #1
0
 public override bool CloseScreen()
 {
     if (WorldGenerator != null)
     {
         WorldGenerator.CloseScreen();
     }
     WorldGenerator = null;
     if (Advanced != null)
     {
         Advanced.CloseScreen();
     }
     Advanced = null;
     if (ModsScreen != null)
     {
         ModsScreen.CloseScreen();
     }
     ModsScreen = null;
     Static     = null;
     return(base.CloseScreen());
 }
예제 #2
0
        public override bool CloseScreen()
        {
            if (WorldGenerator != null)
            {
                WorldGenerator.CloseScreen();
            }
            WorldGenerator = null;
            if (Advanced != null)
            {
                Advanced.CloseScreen();
            }
            Advanced = null;
#if !XB1 // XB1_NOWORKSHOP
            if (ModsScreen != null)
            {
                ModsScreen.CloseScreen();
            }
            ModsScreen = null;
#endif // !XB1
            Static = null;
            return(base.CloseScreen());
        }
예제 #3
0
 private void OnWorldGeneratorClick(object sender)
 {
     WorldGenerator = new MyGuiScreenWorldGeneratorSettings(this);
     WorldGenerator.OnOkButtonClicked += WorldGenerator_OnOkButtonClicked;
     MyGuiSandbox.AddScreen(WorldGenerator);
 }
 private void OnWorldGeneratorClick(object sender)
 {
     WorldGenerator = new MyGuiScreenWorldGeneratorSettings(this);
     WorldGenerator.OnOkButtonClicked += WorldGenerator_OnOkButtonClicked;
     MyGuiSandbox.AddScreen(WorldGenerator);
 }
        public override bool CloseScreen()
        {
            if (WorldGenerator != null)
            {
                WorldGenerator.CloseScreen();
            }
            WorldGenerator = null;
            if (Advanced != null)
                Advanced.CloseScreen();
            Advanced = null;
#if !XB1 // XB1_NOWORKSHOP
            if (ModsScreen != null)
                ModsScreen.CloseScreen();
            ModsScreen = null;
#endif // !XB1
            Static = null;
            return base.CloseScreen();
        }
 public override bool CloseScreen()
 {
     if (WorldGenerator != null)
     {
         WorldGenerator.CloseScreen();
     }
     WorldGenerator = null;
     if (Advanced != null)
         Advanced.CloseScreen();
     Advanced = null;
     if (ModsScreen != null)
         ModsScreen.CloseScreen();
     ModsScreen = null;
     Static = null;
     return base.CloseScreen();
 }