aboutsummaryrefslogtreecommitdiff
path: root/Histacom2/OS/Win98/Win98Apps
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-10-15 11:40:01 -0400
committerlempamo <[email protected]>2017-10-15 11:40:01 -0400
commit7ce95f837d4318397e6749250e53fe7a85fe8f77 (patch)
treebb91c6a3acc513238456d93c3941c0a6f5791833 /Histacom2/OS/Win98/Win98Apps
parent718fc7c680c17508b9d97cc92e8a3632cb999bb7 (diff)
downloadhistacom2-7ce95f837d4318397e6749250e53fe7a85fe8f77.tar.gz
histacom2-7ce95f837d4318397e6749250e53fe7a85fe8f77.tar.bz2
histacom2-7ce95f837d4318397e6749250e53fe7a85fe8f77.zip
hack3 made
Diffstat (limited to 'Histacom2/OS/Win98/Win98Apps')
-rw-r--r--Histacom2/OS/Win98/Win98Apps/Story/Hack3.cs19
-rw-r--r--Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.Designer.cs9
-rw-r--r--Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.cs15
-rw-r--r--Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.resx3
4 files changed, 46 insertions, 0 deletions
diff --git a/Histacom2/OS/Win98/Win98Apps/Story/Hack3.cs b/Histacom2/OS/Win98/Win98Apps/Story/Hack3.cs
new file mode 100644
index 0000000..9758a7e
--- /dev/null
+++ b/Histacom2/OS/Win98/Win98Apps/Story/Hack3.cs
@@ -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()
+ {
+
+ }
+ }
+}
diff --git a/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.Designer.cs b/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.Designer.cs
index 1b32d32..57ce08a 100644
--- a/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.Designer.cs
+++ b/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.Designer.cs
@@ -28,11 +28,13 @@
/// </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 @@
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 @@
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 Engine.UI.ClassicLabel classicLabel2;
private Engine.UI.ClassicLabel classicLabel3;
private Engine.UI.ClassicLabel classicLabel4;
+ private System.Windows.Forms.Timer timer1;
}
}
diff --git a/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.cs b/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.cs
index 62c055b..764a615 100644
--- a/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.cs
+++ b/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.cs
@@ -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.";
+ }
}
}
diff --git a/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.resx b/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.resx
index 1af7de1..1f666f2 100644
--- a/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.resx
+++ b/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.resx
@@ -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> \ No newline at end of file