private void OnAdvancedClick(object sender) { Advanced = new MyGuiScreenAdvancedWorldSettings(this); Advanced.UpdateSurvivalState(GetGameMode() == MyGameModeEnum.Survival); Advanced.OnOkButtonClicked += Advanced_OnOkButtonClicked; MyGuiSandbox.AddScreen(Advanced); }
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(); }
public override bool CloseScreen() { if (Advanced != null) Advanced.CloseScreen(); Advanced = null; if (ModsScreen != null) ModsScreen.CloseScreen(); ModsScreen = null; Static = null; return base.CloseScreen(); }