aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/OobeStory.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-06-11 17:58:35 -0400
committerMichael <[email protected]>2017-06-11 17:58:35 -0400
commitc0017e35a46eb20e7ba2717009171eedaf9785e7 (patch)
tree0a980b2ecbd368c068a9b15539704f5989095f26 /ShiftOS.WinForms/OobeStory.cs
parent7ec048fe8536c9757eda47801af07956b826466d (diff)
downloadshiftos_thereturn-c0017e35a46eb20e7ba2717009171eedaf9785e7.tar.gz
shiftos_thereturn-c0017e35a46eb20e7ba2717009171eedaf9785e7.tar.bz2
shiftos_thereturn-c0017e35a46eb20e7ba2717009171eedaf9785e7.zip
Creation of new games is possible again!
Diffstat (limited to 'ShiftOS.WinForms/OobeStory.cs')
-rw-r--r--ShiftOS.WinForms/OobeStory.cs32
1 files changed, 31 insertions, 1 deletions
diff --git a/ShiftOS.WinForms/OobeStory.cs b/ShiftOS.WinForms/OobeStory.cs
index 8d86b9e..f2a4930 100644
--- a/ShiftOS.WinForms/OobeStory.cs
+++ b/ShiftOS.WinForms/OobeStory.cs
@@ -143,7 +143,37 @@ namespace ShiftOS.WinForms
Console.WriteLine();
Console.WriteLine("Next, let's get user information.");
Console.WriteLine();
- ShiftOS.Engine.OutOfBoxExperience.PromptForLogin();
+ Desktop.InvokeOnWorkerThread(() =>
+ {
+ var uSignUpDialog = new UniteSignupDialog((result) =>
+ {
+ var sve = new Save();
+ sve.SystemName = result.SystemName;
+ sve.Codepoints = 0;
+ sve.Upgrades = new Dictionary<string, bool>();
+ sve.ID = Guid.NewGuid();
+ sve.StoriesExperienced = new List<string>();
+ sve.StoriesExperienced.Add("mud_fundamentals");
+ sve.Users = new List<ClientSave>
+ {
+ new ClientSave
+ {
+ Username = "root",
+ Password = result.RootPassword,
+ Permissions = 0
+ }
+ };
+
+ sve.StoryPosition = 8675309;
+ SaveSystem.CurrentSave = sve;
+ Shiftorium.Silent = true;
+ SaveSystem.SaveGame();
+ Shiftorium.Silent = false;
+
+
+ });
+ AppearanceManager.SetupDialog(uSignUpDialog);
+ });
}
private static bool isValid(string text, string chars)