mirror of
https://github.com/HistacomUnity/Histacom2-old.git
synced 2025-01-22 09:02:01 -05:00
webchat is working now
This commit is contained in:
parent
c29dcdaed4
commit
572da0f8f3
6 changed files with 27 additions and 15 deletions
|
@ -119,25 +119,25 @@
|
|||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="WinClassicBottomLeft" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\resources\winclassic\window\bottomleft.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<value>..\Resources\WinClassic\Window\BottomLeft.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="WinClassicBottomRight" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\resources\winclassic\window\bottomright.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<value>..\Resources\WinClassic\Window\BottomRight.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="WinClassicBottomSide" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\resources\winclassic\window\bottomside.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<value>..\Resources\WinClassic\Window\BottomSide.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="WinClassicLeftSide" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\resources\winclassic\window\leftside.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<value>..\Resources\WinClassic\Window\LeftSide.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="LeviWindows" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\resources\winclassic\window\leviwindows.ttf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>..\Resources\WinClassic\Window\LeviWindows.ttf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="LeviWindows1" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\resources\winclassic\window\leviwindows.ttf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>..\Resources\WinClassic\Window\LeviWindows.ttf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="nullIcon" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\resources\winclassic\window\nullicon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<value>..\Resources\WinClassic\Window\nullicon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="WinClassicRightSide" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\resources\winclassic\window\rightside.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
|
|
|
@ -40,6 +40,7 @@ public static async void ContinueObjective()
|
|||
{
|
||||
WinClassicTerminal Console = new WinClassicTerminal(true);
|
||||
WinClassic app = wm.Init(Console, "MS-DOS Prompt", null, true, true);
|
||||
TitleScreen.frm95.AddTaskBarItem(app, app.Tag.ToString(), "MS-DOS Prompt", null);
|
||||
|
||||
Console.WriteLine("telnet> 104.27.135.159 Connecting...");
|
||||
await Task.Delay(2500);
|
||||
|
|
|
@ -70,9 +70,9 @@ private void Chat_Tick(object sender, EventArgs e)
|
|||
{
|
||||
if (!guessing)
|
||||
{
|
||||
if (history.ScrollBars != ScrollBars.None) history.AppendText(wcmp.ParseMessage(resources.GetString("convo"), chat_index, TitleScreen.username));
|
||||
else history.Text = wcmp.ParseMessage(resources.GetString("convo"), chat_index, TitleScreen.username);
|
||||
switch (wcmp.GetSpecial(resources.GetString("convo"), chat_index))
|
||||
if (history.ScrollBars != ScrollBars.None) history.AppendText(wcmp.ParseMessage(Properties.Resources.webchat1998_convo, chat_index, TitleScreen.username));
|
||||
else history.Text = wcmp.ParseMessage(Properties.Resources.webchat1998_convo, chat_index, TitleScreen.username);
|
||||
switch (wcmp.GetSpecial(Properties.Resources.webchat1998_convo, chat_index))
|
||||
{
|
||||
case "addsh":
|
||||
listBox1.Items.Add("SkyHigh");
|
||||
|
@ -208,8 +208,8 @@ private void Chat_Tick(object sender, EventArgs e)
|
|||
if (msgsound) receive.Play();
|
||||
break;
|
||||
}
|
||||
if (TitleScreen.username == "devspeed") Chat.Interval = wcmp.GetMessageDelay(resources.GetString("convo"), chat_index) / 2;
|
||||
else Chat.Interval = wcmp.GetMessageDelay(resources.GetString("convo"), chat_index);
|
||||
if (TitleScreen.username == "devspeed") Chat.Interval = wcmp.GetMessageDelay(Properties.Resources.webchat1998_convo, chat_index) / 2;
|
||||
else Chat.Interval = wcmp.GetMessageDelay(Properties.Resources.webchat1998_convo, chat_index);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -223,7 +223,7 @@ private void Chat_Tick(object sender, EventArgs e)
|
|||
}
|
||||
guessing = false;
|
||||
receive.Play();
|
||||
Chat.Interval = wcmp.GetMessageDelay(resources.GetString("convo"), chat_index);
|
||||
Chat.Interval = wcmp.GetMessageDelay(Properties.Resources.webchat1998_convo, chat_index);
|
||||
}
|
||||
chat_index++;
|
||||
}
|
||||
|
|
|
@ -292,7 +292,7 @@ void OpenApplication(string appname, string path)
|
|||
break;
|
||||
case "web chat setup":
|
||||
Win95Installer inst = new Win95Installer("Web Chat 1998");
|
||||
inst.InstallCompleted += (sendr, args) => { TitleScreen.frm95.WebChatToolStripMenuItem.Visible = true; CurrentSave.installed95[0] = true; };
|
||||
inst.InstallCompleted += (sendr, args) => { TitleScreen.frm95.WebChatToolStripMenuItem.Visible = true; CurrentSave.installed95[0] = true; SaveGame(); };
|
||||
WinClassic appInstaller = wm.Init(inst, "Web Chat Setup", null, true, true);
|
||||
Program.AddTaskbarItem(appInstaller, appInstaller.Tag.ToString(), "Web Chat Setup", null);
|
||||
appInstaller.BringToFront();
|
||||
|
@ -307,6 +307,7 @@ void OpenApplication(string appname, string path)
|
|||
CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "12padams", "FTP Client"), "ftpclint.exe", "ftp client", 19, 58395);
|
||||
TitleScreen.frm95.FTPClientToolStripMenuItem.Visible = true;
|
||||
CurrentSave.installed95[1] = true;
|
||||
SaveGame();
|
||||
};
|
||||
WinClassic appFtp = wm.Init(instFtp, "FTP Client Setup", null, true, true);
|
||||
Program.AddTaskbarItem(appFtp, appFtp.Tag.ToString(), "FTP Client Setup", null);
|
||||
|
@ -322,6 +323,7 @@ void OpenApplication(string appname, string path)
|
|||
CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "12padams", "Time Distorter 0.1"), "tdistort.exe", "time distorter", 17, 23895);
|
||||
TitleScreen.frm95.TimeDistorterToolStripMenuItem.Visible = true;
|
||||
CurrentSave.installed95[5] = true;
|
||||
SaveGame();
|
||||
};
|
||||
WinClassic appTd = wm.Init(instTd, "Time Distorter Setup", null, true, true);
|
||||
Program.AddTaskbarItem(appTd, appTd.Tag.ToString(), "Time Distorter Setup", null);
|
||||
|
@ -341,6 +343,7 @@ void OpenApplication(string appname, string path)
|
|||
CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "12padams", "Guess The Number V1"), "guessnum.exe", "guess number", 18, 17483);
|
||||
TitleScreen.frm95.GuessTheNumberToolStripMenuItem.Visible = true;
|
||||
CurrentSave.installed95[6] = true;
|
||||
SaveGame();
|
||||
};
|
||||
WinClassic appGtn = wm.Init(instGtn, "Guess The Number Setup", null, true, true);
|
||||
Program.AddTaskbarItem(appGtn, appGtn.Tag.ToString(), "Guess The Number Setup", null);
|
||||
|
|
|
@ -1755,6 +1755,13 @@
|
|||
"message": "and let me remind you... MS-DOS IS USELESS! NEXT TIME, DONT PIRATE SOFTWARE!",
|
||||
"special": null,
|
||||
"userchat": true
|
||||
},
|
||||
{
|
||||
"user": "12padams",
|
||||
"delay": 5000,
|
||||
"message": "",
|
||||
"special": ".cmd-end",
|
||||
"userchat": false
|
||||
}
|
||||
]
|
||||
}</value>
|
||||
|
|
3
Histacom2/Properties/Resources1.Designer.cs
generated
3
Histacom2/Properties/Resources1.Designer.cs
generated
|
@ -1148,7 +1148,8 @@ public static System.Drawing.Bitmap TrueColor {
|
|||
/// "userchat": true
|
||||
/// },
|
||||
/// {
|
||||
/// [rest of string was truncated]";.
|
||||
/// "user": "SkyHigh",
|
||||
/// [rest of string was truncated]";.
|
||||
/// </summary>
|
||||
public static string webchat1998_convo {
|
||||
get {
|
||||
|
|
Loading…
Reference in a new issue