aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-26 10:11:58 -0500
committerMichael <[email protected]>2017-02-26 10:11:58 -0500
commit8d72f2c4d4ac742f942262159b5195bb44875846 (patch)
tree27432bb5e74d563761714b4a6d9a9b5dfe24b492
parent46d53ae12844a095913cd0fc784446d56d16048d (diff)
downloadshiftos_thereturn-8d72f2c4d4ac742f942262159b5195bb44875846.tar.gz
shiftos_thereturn-8d72f2c4d4ac742f942262159b5195bb44875846.tar.bz2
shiftos_thereturn-8d72f2c4d4ac742f942262159b5195bb44875846.zip
shiftletters improvements
-rw-r--r--ShiftOS.WinForms/Applications/ShiftLetters.Designer.cs2
-rw-r--r--ShiftOS.WinForms/Applications/ShiftLetters.cs121
-rw-r--r--ShiftOS.WinForms/Resources/Shiftorium.txt6
3 files changed, 90 insertions, 39 deletions
diff --git a/ShiftOS.WinForms/Applications/ShiftLetters.Designer.cs b/ShiftOS.WinForms/Applications/ShiftLetters.Designer.cs
index 48e77bf..0692244 100644
--- a/ShiftOS.WinForms/Applications/ShiftLetters.Designer.cs
+++ b/ShiftOS.WinForms/Applications/ShiftLetters.Designer.cs
@@ -68,8 +68,10 @@ namespace ShiftOS.WinForms.Applications
this.lblword.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.lblword.Size = new System.Drawing.Size(302, 22);
this.lblword.TabIndex = 1;
+ this.lblword.Tag = "header3";
this.lblword.Text = "Choose a wordlist from the box below.";
this.lblword.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.lblword.TextChanged += new System.EventHandler(this.lblword_TextChanged);
//
// tbguess
//
diff --git a/ShiftOS.WinForms/Applications/ShiftLetters.cs b/ShiftOS.WinForms/Applications/ShiftLetters.cs
index 7a3000a..e4adde2 100644
--- a/ShiftOS.WinForms/Applications/ShiftLetters.cs
+++ b/ShiftOS.WinForms/Applications/ShiftLetters.cs
@@ -52,6 +52,47 @@ namespace ShiftOS.WinForms.Applications
List<String> contributorsWordlist = new List<string> { "philipadams", "carverh", "computelinux", "lempamo",
"wowmom", "michaeltheshifter", "arencclc", "therandommelon", "pfg", "craftxbox"};
+ List<string> osWordlist = new List<string>
+ {
+ "windows",
+ "longhorn",
+ "memphis",
+ "neptune",
+ "vista",
+ "visopsys",
+ "ubuntu",
+ "linux",
+ "arch",
+ "debian",
+ "redhat",
+ "fedora",
+ "opensuse",
+ "kubuntu",
+ "lubuntu",
+ "xubuntu",
+ "mythbuntu",
+ "ubuntumate",
+ "zorin",
+ "lindows",
+ "msdos",
+ "freedos",
+ "freebsd",
+ "netbsd",
+ "pcbsd",
+ "android",
+ "ios",
+ "macos",
+ "mint",
+ "mikeos",
+ "raspbian",
+ "cosmos",
+ "chicago",
+ "vienna",
+ "whistler",
+ "windowsxp",
+ "windowsforworkgroups"
+ };
+
public ShiftLetters()
{
InitializeComponent();
@@ -67,50 +108,52 @@ namespace ShiftOS.WinForms.Applications
lblword.Visible = true;
btnrestart.Visible = false;
- var wordlist = new List<string>
- {
- "shiftos",
- "devx",
- "artpad",
- "shifter",
- "pong",
- "shiftorium",
- "codepoints",
- "shiftletters",
- "shops",
- "mud",
- "notification",
- "namechanger",
- "skinning",
- "skinloader",
- "calculator",
- "fileskimmer",
- "lua",
- "shiftnet",
- "terminal",
- "textpad"
- };
- foreach(var w in shiftWordlist)
+ bool isShiftOS = comboBox1.SelectedItem.ToString().ToLower() == "shiftos";
+ bool isContributors = comboBox1.SelectedItem.ToString().ToLower() == "contributors";
+ bool isOSes = comboBox1.SelectedItem.ToString().ToLower() == "operating systems";
+
+
+ var wordlist = new List<string>();
+ if (isOSes)
{
- if (!wordlist.Contains(w.ToLower()))
+ foreach (var w in osWordlist)
{
- wordlist.Add(w.ToLower());
+ if (!wordlist.Contains(w.ToLower()))
+ {
+ wordlist.Add(w.ToLower());
+ }
}
}
- foreach(var w in contributorsWordlist)
+ if (isShiftOS)
{
- if (!wordlist.Contains(w.ToLower()))
+ foreach (var w in shiftWordlist)
{
- wordlist.Add(w.ToLower());
+ if (!wordlist.Contains(w.ToLower()))
+ {
+ wordlist.Add(w.ToLower());
+ }
}
}
- //This can diversify the amount of ShiftOS-related words in the game.
- foreach(var upg in Shiftorium.GetDefaults())
+ else if (isContributors)
{
- foreach(var w in upg.Name.Split(' '))
+ foreach (var w in contributorsWordlist)
{
if (!wordlist.Contains(w.ToLower()))
+ {
wordlist.Add(w.ToLower());
+ }
+ }
+ }
+ if (isShiftOS)
+ {
+ //This can diversify the amount of ShiftOS-related words in the game.
+ foreach (var upg in Shiftorium.GetDefaults())
+ {
+ foreach (var w in upg.Name.Split(' '))
+ {
+ if (!wordlist.Contains(w.ToLower()))
+ wordlist.Add(w.ToLower());
+ }
}
}
word = wordlist[rng.Next(wordlist.Count)];
@@ -132,6 +175,7 @@ namespace ShiftOS.WinForms.Applications
tbguess.Visible = false;
comboBox1.Items.Add("ShiftOS");
if (ShiftoriumFrontend.UpgradeInstalled("sl_contributors_wordlist")) comboBox1.Items.Add("Contributors");
+ if (Shiftorium.UpgradeInstalled("sl_operating_systems_wordlist")) comboBox1.Items.Add("Operating Systems");
btnrestart.Visible = true;
}
@@ -170,15 +214,9 @@ namespace ShiftOS.WinForms.Applications
if (!lblword.Text.Contains("_"))
{
int oldlives = lives;
- tbguess.Visible = false;
- lives = 0;
- lbllives.Visible = true;
- btnrestart.Visible = true;
- btnrestart.Text = "Restart";
- comboBox1.Visible = true;
int cp = word.Length * oldlives;
- lbllives.Text = "You earned: " + cp + " codepoints!";
SaveSystem.TransferCodepointsFrom("shiftletters", cp);
+ StartGame();
}
}
}
@@ -211,5 +249,10 @@ namespace ShiftOS.WinForms.Applications
}
}
+
+ private void lblword_TextChanged(object sender, EventArgs e)
+ {
+ lblword.Left = (this.Width - lblword.Width) / 2;
+ }
}
}
diff --git a/ShiftOS.WinForms/Resources/Shiftorium.txt b/ShiftOS.WinForms/Resources/Shiftorium.txt
index 1945707..04cf6ac 100644
--- a/ShiftOS.WinForms/Resources/Shiftorium.txt
+++ b/ShiftOS.WinForms/Resources/Shiftorium.txt
@@ -7,6 +7,12 @@
Description: "Crazy math problems getting you down? Well, this calculator will take care of that!"
},
{
+ Name: "SL Operating Systems Wordlist",
+ Cost: 500,
+ Dependencies: "shiftletters",
+ Description: "Know a lot about computer operating systems? This upgrade adds a wordlist to ShiftLetters, full of various Linux distros, Windows codenames and other OS names. All for the low price of 500 Codepoints! It's an incredible value but it's true! Upgrade today... except out of ShiftOS!"
+ },
+ {
Name: "AL Calculator",
Cost: 350,
Dependencies: "calculator;app_launcher",