aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-04 13:21:38 -0500
committerMichael <[email protected]>2017-02-04 13:21:43 -0500
commit50971ea04e7ad7a7ae9dcbbe911b7b8bcf5dd7d3 (patch)
treea3824b76d963a0371074af7f1aa90f99df1d37d7 /ShiftOS.WinForms/Applications
parente92d575e6208850dd912c058cafd3f63a63819ff (diff)
downloadshiftos_thereturn-50971ea04e7ad7a7ae9dcbbe911b7b8bcf5dd7d3.tar.gz
shiftos_thereturn-50971ea04e7ad7a7ae9dcbbe911b7b8bcf5dd7d3.tar.bz2
shiftos_thereturn-50971ea04e7ad7a7ae9dcbbe911b7b8bcf5dd7d3.zip
Implement maximizing and minimizing
Fixes #24 and makes panel buttons useful.
Diffstat (limited to 'ShiftOS.WinForms/Applications')
-rw-r--r--ShiftOS.WinForms/Applications/Terminal.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/ShiftOS.WinForms/Applications/Terminal.cs b/ShiftOS.WinForms/Applications/Terminal.cs
index 7b55ec2..54a89d7 100644
--- a/ShiftOS.WinForms/Applications/Terminal.cs
+++ b/ShiftOS.WinForms/Applications/Terminal.cs
@@ -134,10 +134,13 @@ namespace ShiftOS.WinForms.Applications
TerminalBackend.PrefixEnabled = true;
TerminalBackend.InStory = false;
Console.Write($"{SaveSystem.CurrentSave.Username}@{SaveSystem.CurrentSave.SystemName}:~$ ");
- if (SaveSystem.CurrentSave.StoryPosition == 6)
+ if (Shiftorium.UpgradeInstalled("wm_free_placement"))
{
- Infobox.Show("Welcome to ShiftOS.", "Welcome to the ShiftOS multi-user domain. Your goal is to upgrade your system as much as possible, and gain as much wealth as possible. The first step is to get a feel for the environment. Go forth and explore, young Shifter.");
- SaveSystem.CurrentSave.StoryPosition++;
+ this.ParentForm.Width = 640;
+ this.ParentForm.Height = 480;
+ this.ParentForm.Left = (Screen.PrimaryScreen.Bounds.Width - 640) / 2;
+ this.ParentForm.Top = (Screen.PrimaryScreen.Bounds.Height - 480) / 2;
+
}
}));
}