aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-07-03 17:40:59 -0400
committerlempamo <[email protected]>2017-07-03 17:40:59 -0400
commit34ecd67921e7205bf9f7e271458bde6d325d2753 (patch)
treeb5f5d6a359f142c075f4dd10c289006d319dc824
parent1f95add1534c986ec793d20ad3bf4a9a1deae600 (diff)
downloadhistacom2-34ecd67921e7205bf9f7e271458bde6d325d2753.tar.gz
histacom2-34ecd67921e7205bf9f7e271458bde6d325d2753.tar.bz2
histacom2-34ecd67921e7205bf9f7e271458bde6d325d2753.zip
fixed up hack1
-rw-r--r--TimeHACK.Main/OS/BIOS/BIOS.Designer.cs2
-rw-r--r--TimeHACK.Main/OS/Win95/Win95.cs2
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs34
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs15
4 files changed, 31 insertions, 22 deletions
diff --git a/TimeHACK.Main/OS/BIOS/BIOS.Designer.cs b/TimeHACK.Main/OS/BIOS/BIOS.Designer.cs
index ec89495..1e77eaa 100644
--- a/TimeHACK.Main/OS/BIOS/BIOS.Designer.cs
+++ b/TimeHACK.Main/OS/BIOS/BIOS.Designer.cs
@@ -28,7 +28,7 @@
/// </summary>
private void InitializeComponent()
{
- this.BIOSConsole = new TimeHACK.OS.Win95.Win95Apps.WinClassicTerminal();
+ this.BIOSConsole = new TimeHACK.OS.Win95.Win95Apps.WinClassicTerminal(true);
this.SuspendLayout();
//
// BIOSConsole
diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs
index 9dbc395..b362c62 100644
--- a/TimeHACK.Main/OS/Win95/Win95.cs
+++ b/TimeHACK.Main/OS/Win95/Win95.cs
@@ -355,7 +355,7 @@ namespace TimeHACK.OS.Win95
private void MSDOSPromptToolStripMenuItem1_Click (object sender, EventArgs e)
{
- WinClassicTerminal msdos = new WinClassicTerminal();
+ WinClassicTerminal msdos = new WinClassicTerminal(false);
WinClassic app = wm.StartWin95(msdos, "MS-DOS Prompt", Properties.Resources.MS_DOS, true, true, false);
AddTaskBarItem(app, app.Tag.ToString(), "MS-DOS Prompt", Properties.Resources.MS_DOS);
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
index a743636..85b14f5 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
@@ -16,16 +16,16 @@ namespace TimeHACK.OS.Win95.Win95Apps.Story
static class Hack1 : Object
{
static WindowManager wm = new WindowManager();
- static Boolean ended = false;
+ static bool ended = false;
static Thread soundThread = new Thread(dialup_sound_play);
- static Boolean devMode = true;
+ static bool devMode = true;
// This is the very first story script!
public static void startObjective()
{
System.Windows.Forms.Timer tmr = new System.Windows.Forms.Timer();
- WinClassicTerminal Console = new WinClassicTerminal();
+ WinClassicTerminal Console = new WinClassicTerminal(true);
WinClassic app = wm.StartWin95(Console, "MS-DOS Prompt", null, true, true);
Console.WriteLine("telnet> 104.27.135.159 Connecting...");
@@ -50,34 +50,34 @@ namespace TimeHACK.OS.Win95.Win95Apps.Story
public static void continueObjective()
{
- WinClassicTerminal Console = new WinClassicTerminal();
+ WinClassicTerminal Console = new WinClassicTerminal(true);
wm.StartWin95(Console, "MS-DOS Prompt", null, true, true);
Application.DoEvents();
- Console.WriteLine("\ntelnet> 104.27.135.159 Connected.");
+ Console.WriteLine("telnet> 104.27.135.159 Connected.");
Thread.Sleep(2500);
- Console.WriteLine("\ntelnet> 104.27.135.159 set hostname to 'TheHiddenHacker'.");
+ Console.WriteLine("telnet> 104.27.135.159 set hostname to 'TheHiddenHacker'.");
Thread.Sleep(2500);
- Console.WriteLine("\nTheHiddenHacker> I see you have access to 12padams.com.");
+ Console.WriteLine("TheHiddenHacker> I see you have access to 12padams.com.");
Thread.Sleep(4500);
- Console.WriteLine("\nTheHiddenHacker> Though it doesn't seem obvious, only a very limited amount of people can access the site.");
+ Console.WriteLine("TheHiddenHacker> Though it doesn't seem obvious, only a very limited amount of people can access the site.");
Thread.Sleep(6000);
- Console.WriteLine("\nTheHiddenHacker> 12padams has a secret, and I need you to help me find it.");
+ Console.WriteLine("TheHiddenHacker> 12padams has a secret, and I need you to help me find it.");
Thread.Sleep(3500);
- Console.WriteLine("\nTheHiddenHacker> I was snooping around his website, when he blacklisted my IP address.");
+ Console.WriteLine("TheHiddenHacker> I was snooping around his website, when he blacklisted my IP address.");
Thread.Sleep(4000);
- Console.WriteLine("\nTheHiddenHacker> While I was serching, I noticed a file that I didn't have permission to download. I need you to get it for me.");
+ Console.WriteLine("TheHiddenHacker> While I was serching, I noticed a file that I didn't have permission to download. I need you to get it for me.");
Thread.Sleep(6500);
- Console.WriteLine("\nTheHiddenHacker> First, I'll need you to download an FTP client, avalible under the software section of 12padams' website.");
+ Console.WriteLine("TheHiddenHacker> First, I'll need you to download an FTP client, avalible under the software section of 12padams' website.");
Thread.Sleep(5000);
- Console.WriteLine("\nTheHiddenHacker> Once that's downloaded, You'll need to type in a Hostname, Username, and Password.");
+ Console.WriteLine("TheHiddenHacker> Once that's downloaded, You'll need to type in a Hostname, Username, and Password.");
Thread.Sleep(4500);
- Console.WriteLine("\nTheHiddenHacker> The hostname is 172.68.119.42, and the username is most likely 12padams. I'm not too sure what the password is, however.");
+ Console.WriteLine("TheHiddenHacker> The hostname is 172.68.119.42, and the username is most likely 12padams. I'm not too sure what the password is, however.");
Thread.Sleep(3500);
- Console.WriteLine("\nTheHiddenHacker> You'll need to figure out where you can get the password. Try looking for any odd text on the website.");
- Thread.Sleep(1000);
- Console.WriteLine("\nTheHiddenHacker> I don't have much time to talk - I'd quickly copy down those details into Notepad before this Terminal gets closed.");
+ Console.WriteLine("TheHiddenHacker> You'll need to figure out where you can get the password. Try looking for any odd text on the website.");
+ Thread.Sleep(3500);
+ Console.WriteLine("TheHiddenHacker> I don't have much time to talk - I'd quickly copy down those details into Notepad before this Terminal gets closed.");
Application.DoEvents();
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs
index 731bec1..70cd0f9 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs
@@ -26,7 +26,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
public static string startupDir = $"{Engine.SaveSystem.ProfileMyComputerDirectory}";
public string output = "";
- public WinClassicTerminal()
+ public WinClassicTerminal(bool readOnly)
{
InitializeComponent();
@@ -43,10 +43,19 @@ namespace TimeHACK.OS.Win95.Win95Apps
sizeSel.SelectedIndex = 0;
// Set the font and append the prefix text
- cmdPrompt.Font = new Font(TitleScreen.pfc.Families[1], 10F, System.Drawing.FontStyle.Regular);
- cmdPrompt.AppendText(prefix);
+ cmdPrompt.Font = new Font(TitleScreen.pfc.Families[1], 10F, FontStyle.Regular);
cmdPrompt.BringToFront();
+
+ if (readOnly)
+ {
+ actionPanel.Hide();
+ cmdPrompt.ReadOnly = true;
+ }
+ else
+ {
+ cmdPrompt.AppendText(prefix);
+ }
}
/// <summary>
/// Write text to the Terminal and create a new line. Very similar to the Win32 Console.WriteLine Function.