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()); }
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()); }
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(); }