aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-07-28 15:21:46 -0400
committerlempamo <[email protected]>2017-07-28 15:21:46 -0400
commit717f7caf678aeb08bc2d621988b771cc1ebd6070 (patch)
tree177212c65f2a90748c80beb8983070ddaae4d04d /TimeHACK.Main
parent9205136293b7bc77e570baaffdf0836c3aeef2aa (diff)
downloadhistacom2-717f7caf678aeb08bc2d621988b771cc1ebd6070.tar.gz
histacom2-717f7caf678aeb08bc2d621988b771cc1ebd6070.tar.bz2
histacom2-717f7caf678aeb08bc2d621988b771cc1ebd6070.zip
added seizure warning
Diffstat (limited to 'TimeHACK.Main')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.Designer.cs3
-rw-r--r--TimeHACK.Main/Properties/Resources.Designer.cs10
-rw-r--r--TimeHACK.Main/Properties/Resources.resx3
-rw-r--r--TimeHACK.Main/Resources/SeizureWarning.pngbin0 -> 8081 bytes
-rw-r--r--TimeHACK.Main/SeizureWarning.Designer.cs81
-rw-r--r--TimeHACK.Main/SeizureWarning.cs27
-rw-r--r--TimeHACK.Main/SeizureWarning.resx120
-rw-r--r--TimeHACK.Main/TimeHACK.Main.csproj10
-rw-r--r--TimeHACK.Main/TitleScreen.cs7
9 files changed, 260 insertions, 1 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.Designer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.Designer.cs
index f251094..184b7f5 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.Designer.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.Designer.cs
@@ -46,9 +46,10 @@
this.cmdPrompt.BackColor = System.Drawing.Color.Black;
this.cmdPrompt.Dock = System.Windows.Forms.DockStyle.Fill;
this.cmdPrompt.Font = new System.Drawing.Font("Lucida Console", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.cmdPrompt.ForeColor = System.Drawing.Color.White;
+ this.cmdPrompt.ForeColor = System.Drawing.Color.Silver;
this.cmdPrompt.Location = new System.Drawing.Point(0, 0);
this.cmdPrompt.Name = "cmdPrompt";
+ this.cmdPrompt.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedBoth;
this.cmdPrompt.ShowSelectionMargin = true;
this.cmdPrompt.Size = new System.Drawing.Size(459, 262);
this.cmdPrompt.TabIndex = 0;
diff --git a/TimeHACK.Main/Properties/Resources.Designer.cs b/TimeHACK.Main/Properties/Resources.Designer.cs
index 4abab30..b266891 100644
--- a/TimeHACK.Main/Properties/Resources.Designer.cs
+++ b/TimeHACK.Main/Properties/Resources.Designer.cs
@@ -467,6 +467,16 @@ namespace TimeHACK.Properties {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
+ internal static System.Drawing.Bitmap SeizureWarning {
+ get {
+ object obj = ResourceManager.GetObject("SeizureWarning", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
internal static System.Drawing.Bitmap sliversilver {
get {
object obj = ResourceManager.GetObject("sliversilver", resourceCulture);
diff --git a/TimeHACK.Main/Properties/Resources.resx b/TimeHACK.Main/Properties/Resources.resx
index 7a96a19..b7d6a68 100644
--- a/TimeHACK.Main/Properties/Resources.resx
+++ b/TimeHACK.Main/Properties/Resources.resx
@@ -681,6 +681,9 @@
<data name="ie4_mail" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\ie4_mail.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
+ <data name="SeizureWarning" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\SeizureWarning.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
<data name="Win95File" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\WinClassic\Win95File.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
diff --git a/TimeHACK.Main/Resources/SeizureWarning.png b/TimeHACK.Main/Resources/SeizureWarning.png
new file mode 100644
index 0000000..787d133
--- /dev/null
+++ b/TimeHACK.Main/Resources/SeizureWarning.png
Binary files differ
diff --git a/TimeHACK.Main/SeizureWarning.Designer.cs b/TimeHACK.Main/SeizureWarning.Designer.cs
new file mode 100644
index 0000000..fc86942
--- /dev/null
+++ b/TimeHACK.Main/SeizureWarning.Designer.cs
@@ -0,0 +1,81 @@
+namespace TimeHACK
+{
+ partial class SeizureWarning
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Component Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.pictureBox1 = new System.Windows.Forms.PictureBox();
+ this.button1 = new System.Windows.Forms.Button();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // pictureBox1
+ //
+ this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.pictureBox1.BackgroundImage = global::TimeHACK.Properties.Resources.SeizureWarning;
+ this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
+ this.pictureBox1.Location = new System.Drawing.Point(0, 0);
+ this.pictureBox1.Name = "pictureBox1";
+ this.pictureBox1.Size = new System.Drawing.Size(600, 331);
+ this.pictureBox1.TabIndex = 0;
+ this.pictureBox1.TabStop = false;
+ //
+ // button1
+ //
+ this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.button1.ForeColor = System.Drawing.Color.White;
+ this.button1.Location = new System.Drawing.Point(261, 275);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(75, 23);
+ this.button1.TabIndex = 1;
+ this.button1.Text = "OK";
+ this.button1.UseVisualStyleBackColor = true;
+ this.button1.Click += new System.EventHandler(this.button1_Click);
+ //
+ // SeizureWarning
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.BackColor = System.Drawing.Color.Black;
+ this.Controls.Add(this.button1);
+ this.Controls.Add(this.pictureBox1);
+ this.Name = "SeizureWarning";
+ this.Size = new System.Drawing.Size(600, 330);
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.PictureBox pictureBox1;
+ private System.Windows.Forms.Button button1;
+ }
+}
diff --git a/TimeHACK.Main/SeizureWarning.cs b/TimeHACK.Main/SeizureWarning.cs
new file mode 100644
index 0000000..ea14576
--- /dev/null
+++ b/TimeHACK.Main/SeizureWarning.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using System.IO;
+
+namespace TimeHACK
+{
+ public partial class SeizureWarning : UserControl
+ {
+ public SeizureWarning()
+ {
+ InitializeComponent();
+ }
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+ File.WriteAllText(Path.Combine(Engine.SaveSystem.DataDirectory, "o.k"), ".");
+ this.Hide();
+ }
+ }
+}
diff --git a/TimeHACK.Main/SeizureWarning.resx b/TimeHACK.Main/SeizureWarning.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/TimeHACK.Main/SeizureWarning.resx
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root> \ No newline at end of file
diff --git a/TimeHACK.Main/TimeHACK.Main.csproj b/TimeHACK.Main/TimeHACK.Main.csproj
index c6433e0..b496ec5 100644
--- a/TimeHACK.Main/TimeHACK.Main.csproj
+++ b/TimeHACK.Main/TimeHACK.Main.csproj
@@ -329,6 +329,12 @@
<Compile Include="SaveDialogs\SaveFileTroubleShooter.Designer.cs">
<DependentUpon>SaveFileTroubleShooter.cs</DependentUpon>
</Compile>
+ <Compile Include="SeizureWarning.cs">
+ <SubType>UserControl</SubType>
+ </Compile>
+ <Compile Include="SeizureWarning.Designer.cs">
+ <DependentUpon>SeizureWarning.cs</DependentUpon>
+ </Compile>
<Compile Include="TitleScreen.cs">
<SubType>Form</SubType>
</Compile>
@@ -449,6 +455,9 @@
<EmbeddedResource Include="SaveDialogs\SaveFileTroubleShooter.resx">
<DependentUpon>SaveFileTroubleShooter.cs</DependentUpon>
</EmbeddedResource>
+ <EmbeddedResource Include="SeizureWarning.resx">
+ <DependentUpon>SeizureWarning.cs</DependentUpon>
+ </EmbeddedResource>
<EmbeddedResource Include="TitleScreen.resx">
<DependentUpon>TitleScreen.cs</DependentUpon>
</EmbeddedResource>
@@ -519,6 +528,7 @@
<Content Include="Resources\modem_dial.wav" />
<None Include="Resources\MS-DOS-logo-1.png" />
<None Include="Resources\msdosprompt.png" />
+ <None Include="Resources\SeizureWarning.png" />
<Content Include="Resources\std_beep.wav" />
<Content Include="Resources\std_gobeep.wav" />
<None Include="Resources\termCopy.png" />
diff --git a/TimeHACK.Main/TitleScreen.cs b/TimeHACK.Main/TitleScreen.cs
index ef14a73..194776c 100644
--- a/TimeHACK.Main/TitleScreen.cs
+++ b/TimeHACK.Main/TitleScreen.cs
@@ -47,6 +47,13 @@ namespace TimeHACK
{
InitializeComponent();
this.startmenu.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
+ if (!File.Exists(Path.Combine(DataDirectory, "o.k")))
+ {
+ SeizureWarning sw = new SeizureWarning();
+ sw.Size = programContent.Size;
+ programContent.Controls.Add(sw);
+ sw.BringToFront();
+ }
}
public void StartGame()