(b1ed113e0) Randomize map seed when opening the "new game" tab. Closes #1399
This commit is contained in:
@@ -181,6 +181,11 @@ namespace Barotrauma
|
|||||||
UpdateLoadMenu(saveFiles);
|
UpdateLoadMenu(saveFiles);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void RandomizeSeed()
|
||||||
|
{
|
||||||
|
seedBox.Text = ToolBox.RandomSeed(8);
|
||||||
|
}
|
||||||
|
|
||||||
private bool OnSubSelected(GUIComponent component, object obj)
|
private bool OnSubSelected(GUIComponent component, object obj)
|
||||||
{
|
{
|
||||||
if (subPreviewContainer == null) { return false; }
|
if (subPreviewContainer == null) { return false; }
|
||||||
|
|||||||
@@ -387,6 +387,7 @@ namespace Barotrauma
|
|||||||
{
|
{
|
||||||
case Tab.NewGame:
|
case Tab.NewGame:
|
||||||
campaignSetupUI.CreateDefaultSaveName();
|
campaignSetupUI.CreateDefaultSaveName();
|
||||||
|
campaignSetupUI.RandomizeSeed();
|
||||||
campaignSetupUI.UpdateTutorialSelection();
|
campaignSetupUI.UpdateTutorialSelection();
|
||||||
campaignSetupUI.UpdateSubList(Submarine.SavedSubmarines);
|
campaignSetupUI.UpdateSubList(Submarine.SavedSubmarines);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user