aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-06-02 08:05:53 -0400
committerMichael <[email protected]>2017-06-02 08:05:53 -0400
commit5246798b0ad07ac1a2dd9a1369da4ecad2383488 (patch)
tree2178c8ec2372a5eee8b98433e2aa12dd14725dde /ShiftOS.WinForms
parent0b9ac754acd76348cd1a61fde14f0821e32a31c8 (diff)
downloadshiftos_thereturn-5246798b0ad07ac1a2dd9a1369da4ecad2383488.tar.gz
shiftos_thereturn-5246798b0ad07ac1a2dd9a1369da4ecad2383488.tar.bz2
shiftos_thereturn-5246798b0ad07ac1a2dd9a1369da4ecad2383488.zip
Make stories not happen until user is logged in.
Diffstat (limited to 'ShiftOS.WinForms')
-rw-r--r--ShiftOS.WinForms/WinformsDesktop.cs29
1 files changed, 4 insertions, 25 deletions
diff --git a/ShiftOS.WinForms/WinformsDesktop.cs b/ShiftOS.WinForms/WinformsDesktop.cs
index f1dbe48..4614842 100644
--- a/ShiftOS.WinForms/WinformsDesktop.cs
+++ b/ShiftOS.WinForms/WinformsDesktop.cs
@@ -196,38 +196,14 @@ namespace ShiftOS.WinForms
SetupControl(desktoppanel);
Shiftorium.Installed += () =>
{
- foreach(var widget in Widgets)
+ foreach (var widget in Widgets)
{
widget.OnUpgrade();
}
LoadIcons();
- //Only if the DevX Legions story hasn't been experienced yet.
- if (!Shiftorium.UpgradeInstalled("devx_legions"))
- {
- //Check for shiftnet story experience
- if (Shiftorium.UpgradeInstalled("shiftnet"))
- {
- //Check for saturation of the "GUI" upgrade set
- if (Shiftorium.IsCategoryEmptied("GUI"))
- {
- //Start the MUD Control Centre story.
- Story.Start("devx_legions");
- }
- }
- }
- if (!Shiftorium.UpgradeInstalled("victortran_shiftnet"))
- {
- if (SaveSystem.CurrentSave.Codepoints >= 50000)
- {
- if (Shiftorium.IsCategoryEmptied("Applications"))
- {
- Story.Start("victortran_shiftnet");
- }
- }
- }
};
this.TopMost = false;
@@ -294,6 +270,9 @@ namespace ShiftOS.WinForms
{
do
{
+ while (SaveSystem.CurrentUser == null)
+ Thread.Sleep(10);
+
if (SaveSystem.CurrentSave != null)
{
if (SaveSystem.CurrentSave.Codepoints != lastcp)