hack3 made

This commit is contained in:
lempamo 2017-10-15 11:40:01 -04:00
parent 718fc7c680
commit 7ce95f837d
10 changed files with 60 additions and 6 deletions

View file

@ -138,6 +138,9 @@
<EmbeddedResource Include="Template\WinXP.resx">
<DependentUpon>WinXP.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UI\ClassicLabel.resx">
<DependentUpon>ClassicLabel.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Content Include="Resources\chord.wav" />

View file

@ -14,7 +14,7 @@ public class ClassicLabel : Control
{
public ClassicLabel()
{
TextChanged += (s, e) => Invalidate();
}
protected override void OnPaint(PaintEventArgs e)

View file

@ -322,6 +322,7 @@
<Compile Include="OS\Win98\Win98Apps\IE4Sites\IENoPage.Designer.cs">
<DependentUpon>IENoPage.cs</DependentUpon>
</Compile>
<Compile Include="OS\Win98\Win98Apps\Story\Hack3.cs" />
<Compile Include="OS\Win98\Win98Apps\WebChat1999.cs">
<SubType>UserControl</SubType>
</Compile>
@ -868,7 +869,6 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="OS\Win98\Win98Apps\Story\" />
<Folder Include="OS\WinXP\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

View file

@ -29,7 +29,7 @@ protected override void Dispose(bool disposing)
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WebChat1998));
this.resources = new System.ComponentModel.ComponentResourceManager(typeof(WebChat1998));
this.Chat = new System.Windows.Forms.Timer(this.components);
this.listBox1 = new System.Windows.Forms.ListBox();
this.label1 = new Histacom2.Engine.UI.ClassicLabel();

View file

@ -704,6 +704,7 @@ private void InitializeComponent()
this.TimeDistorterToolStripMenuItem.Size = new System.Drawing.Size(181, 28);
this.TimeDistorterToolStripMenuItem.Text = "Time Distorter";
this.TimeDistorterToolStripMenuItem.Visible = false;
this.TimeDistorterToolStripMenuItem.Click += new System.EventHandler(TimeDistorterToolStripMenuItem_Click);
//
// DocumentsToolStripMenuItem
//

View file

@ -21,7 +21,7 @@ public partial class Windows98 : Form
public WindowManager wm = new WindowManager();
public List<WinClassic> nonimportantapps = new List<WinClassic>();
public WinClassic webchat;
public WebChat1999 webchat;
public WinClassic ie;
public TaskBarController tb = new TaskBarController();
@ -331,13 +331,16 @@ private void infoboxTestToolStripMenuItem_Click(object sender, EventArgs e)
}
private void WebChatToolStripMenuItem_Click(object sender, EventArgs e)
{
WebChat1999 wc = new WebChat1999();
WinClassic app = wm.Init(wc, "Web Chat 1999", null, true, true);
if (webchat != null) return;
webchat = new WebChat1999();
WinClassic app = wm.Init(webchat, "Web Chat 1999", null, true, true);
AddTaskBarItem(app, app.Tag.ToString(), "Web Chat 1999", null);
app.BringToFront();
startmenu.Hide();
app.FormClosing += (s, fe) => webchat = null;
}
public void NonImportantApp_Closing(object sender, FormClosingEventArgs e)
{
@ -456,6 +459,7 @@ private void PropertiesToolStripMenuItem1_Click(object sender, EventArgs e)
private void TimeDistorterToolStripMenuItem_Click(object sender, EventArgs e)
{
if (distort != null) return;
distort = new WinClassicTimeDistorter2();
WinClassic app = wm.Init(distort, "Time Distorter", null, false, false, false);
AddTaskBarItem(app, app.Tag.ToString(), "Time Distorter", null);

View file

@ -0,0 +1,19 @@
using Histacom2.Engine;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Histacom2.OS.Win98.Win98Apps.Story
{
public class Hack3 : object
{
static WindowManager wm = new WindowManager();
public static async void StartObjective()
{
}
}
}

View file

@ -28,11 +28,13 @@ protected override void Dispose(bool disposing)
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.classicButton1 = new Histacom2.Engine.UI.ClassicButton();
this.classicLabel1 = new Histacom2.Engine.UI.ClassicLabel();
this.classicLabel2 = new Histacom2.Engine.UI.ClassicLabel();
this.classicLabel3 = new Histacom2.Engine.UI.ClassicLabel();
this.classicLabel4 = new Histacom2.Engine.UI.ClassicLabel();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.SuspendLayout();
//
// classicButton1
@ -50,6 +52,7 @@ private void InitializeComponent()
this.classicButton1.Size = new System.Drawing.Size(276, 23);
this.classicButton1.TabIndex = 0;
this.classicButton1.Text = "Take me to 2000!";
this.classicButton1.Click += new System.EventHandler(this.classicButton1_Click);
//
// classicLabel1
//
@ -90,6 +93,11 @@ private void InitializeComponent()
this.classicLabel4.Text = "Preparing to travel. ETA: N/A secs.";
this.classicLabel4.Visible = false;
//
// timer1
//
this.timer1.Interval = 1000;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// WinClassicTimeDistorter2
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -113,5 +121,6 @@ private void InitializeComponent()
private Engine.UI.ClassicLabel classicLabel2;
private Engine.UI.ClassicLabel classicLabel3;
private Engine.UI.ClassicLabel classicLabel4;
private System.Windows.Forms.Timer timer1;
}
}

View file

@ -12,9 +12,24 @@ namespace Histacom2.OS.Win98.Win98Apps
{
public partial class WinClassicTimeDistorter2 : UserControl
{
public int secsLeft = 180;
public WinClassicTimeDistorter2()
{
InitializeComponent();
}
private void classicButton1_Click(object sender, EventArgs e)
{
classicButton1.Hide();
classicLabel4.Show();
classicLabel4.Text = "Preparing to travel. ETA: 180 secs.";
timer1.Start();
}
private void timer1_Tick(object sender, EventArgs e)
{
classicLabel4.Text = $"Preparing to travel. ETA: {secsLeft--} secs.";
}
}
}

View file

@ -117,4 +117,7 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>