// Edit game constructor public MyGuiScreenWorldSettings(MyObjectBuilder_Checkpoint checkpoint, string path) : base(new Vector2(0.5f, 0.5f), MyGuiConstants.SCREEN_BACKGROUND_COLOR, CalcSize(checkpoint)) { MySandboxGame.Log.WriteLine("MyGuiScreenWorldSettings.ctor START"); EnabledBackgroundFade = true; Static = this; m_checkpoint = checkpoint; if (checkpoint == null || checkpoint.Mods == null) { m_mods = new List <MyObjectBuilder_Checkpoint.ModItem>(); } else { m_mods = checkpoint.Mods; } m_sessionPath = path; m_isNewGame = (checkpoint == null); RecreateControls(true); // If this screen is loaded from "Saved Games" it should not use the EnvironmentHostility logic m_isHostilityChanged = !m_isNewGame; MySandboxGame.Log.WriteLine("MyGuiScreenWorldSettings.ctor END"); }
public MyGuiScreenWorldGeneratorSettings(MyGuiScreenWorldSettings parent) : base(new Vector2(0.5f, 0.5f), MyGuiConstants.SCREEN_BACKGROUND_COLOR, CalcSize()) { m_parent = parent; RecreateControls(true); SetSettingsToControls(); }
public override bool CloseScreen() { 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()); }
// Edit game constructor public MyGuiScreenWorldSettings(MyObjectBuilder_Checkpoint checkpoint, string path) : base(new Vector2(0.5f, 0.5f), MyGuiConstants.SCREEN_BACKGROUND_COLOR, CalcSize(checkpoint)) { MySandboxGame.Log.WriteLine("MyGuiScreenWorldSettings.ctor START"); EnabledBackgroundFade = true; Static = this; m_checkpoint = checkpoint; if (checkpoint == null || checkpoint.Mods == null) { m_mods = new List <MyObjectBuilder_Checkpoint.ModItem>(); } else { m_mods = checkpoint.Mods; } m_sessionPath = path; m_isNewGame = (checkpoint == null); RecreateControls(true); MySandboxGame.Log.WriteLine("MyGuiScreenWorldSettings.ctor END"); }
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(); }
// Edit game constructor public MyGuiScreenWorldSettings(MyObjectBuilder_Checkpoint checkpoint, string path) : base(new Vector2(0.5f, 0.5f), MyGuiConstants.SCREEN_BACKGROUND_COLOR, CalcSize(checkpoint)) { MySandboxGame.Log.WriteLine("MyGuiScreenWorldSettings.ctor START"); EnabledBackgroundFade = true; Static = this; m_checkpoint = checkpoint; if (checkpoint == null || checkpoint.Mods == null) m_mods = new List<MyObjectBuilder_Checkpoint.ModItem>(); else m_mods = checkpoint.Mods; m_sessionPath = path; m_isNewGame = (checkpoint == null); RecreateControls(true); // If this screen is loaded from "Saved Games" it should not use the EnvironmentHostility logic m_isHostilityChanged = !m_isNewGame; MySandboxGame.Log.WriteLine("MyGuiScreenWorldSettings.ctor END"); }
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 MyGuiScreenAdvancedWorldSettings(MyGuiScreenWorldSettings parent) : base(new Vector2(0.5f, 0.5f), MyGuiConstants.SCREEN_BACKGROUND_COLOR, CalcSize(parent.Checkpoint)) { MySandboxGame.Log.WriteLine("MyGuiScreenAdvancedWorldSettings.ctor START"); m_parent = parent; EnabledBackgroundFade = true; m_isNewGame = (parent.Checkpoint == null); m_isConfirmed = false; RecreateControls(true); MySandboxGame.Log.WriteLine("MyGuiScreenAdvancedWorldSettings.ctor END"); }
// Edit game constructor public MyGuiScreenWorldSettings(MyObjectBuilder_Checkpoint checkpoint, string path) : base(new Vector2(0.5f, 0.5f), MyGuiConstants.SCREEN_BACKGROUND_COLOR, CalcSize(checkpoint)) { MySandboxGame.Log.WriteLine("MyGuiScreenWorldSettings.ctor START"); EnabledBackgroundFade = true; Static = this; m_checkpoint = checkpoint; if (checkpoint == null || checkpoint.Mods == null) m_mods = new List<MyObjectBuilder_Checkpoint.ModItem>(); else m_mods = checkpoint.Mods; m_sessionPath = path; m_isNewGame = (checkpoint == null); RecreateControls(true); MySandboxGame.Log.WriteLine("MyGuiScreenWorldSettings.ctor END"); }
public override bool CloseScreen() { if (Advanced != null) Advanced.CloseScreen(); Advanced = null; if (ModsScreen != null) ModsScreen.CloseScreen(); ModsScreen = null; Static = null; return base.CloseScreen(); }