diff options
| author | EverythingWindows <[email protected]> | 2022-11-07 10:34:00 +0700 |
|---|---|---|
| committer | EverythingWindows <[email protected]> | 2022-11-07 10:34:00 +0700 |
| commit | 6e912644d2d89dfb93d9c5ae3735cceafc0a3955 (patch) | |
| tree | 5b3ac659408cea0d3a0a5d46a5f8a5f1b7559646 /ShiftOS-TheRevival-CS/MainForms | |
| parent | 5cf25f1409d40f7de6b13baf8b76751ae7b664ed (diff) | |
| download | shiftos-therevival-old-csharp.tar.gz shiftos-therevival-old-csharp.tar.bz2 shiftos-therevival-old-csharp.zip | |
Main Menu is now workingcsharp
Diffstat (limited to 'ShiftOS-TheRevival-CS/MainForms')
| -rw-r--r-- | ShiftOS-TheRevival-CS/MainForms/ShiftOSMenu.Designer.cs | 163 | ||||
| -rw-r--r-- | ShiftOS-TheRevival-CS/MainForms/ShiftOSMenu.cs | 62 | ||||
| -rw-r--r-- | ShiftOS-TheRevival-CS/MainForms/ShiftOSMenu.resx | 120 |
3 files changed, 345 insertions, 0 deletions
diff --git a/ShiftOS-TheRevival-CS/MainForms/ShiftOSMenu.Designer.cs b/ShiftOS-TheRevival-CS/MainForms/ShiftOSMenu.Designer.cs new file mode 100644 index 0000000..b722fdd --- /dev/null +++ b/ShiftOS-TheRevival-CS/MainForms/ShiftOSMenu.Designer.cs @@ -0,0 +1,163 @@ + +namespace ShiftOS_TheRevival_CS +{ + partial class ShiftOSMenu + { + /// <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 Windows Form 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.btn_FreeRoam = new System.Windows.Forms.Button(); + this.btn_StoryMode = new System.Windows.Forms.Button(); + this.btn_Exit = new System.Windows.Forms.Button(); + this.btn_Aboot = new System.Windows.Forms.Button(); + this.Label2 = new System.Windows.Forms.Label(); + this.Label1 = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.SuspendLayout(); + // + // pictureBox1 + // + this.pictureBox1.BackColor = System.Drawing.Color.Black; + this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Right; + this.pictureBox1.Location = new System.Drawing.Point(264, 0); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(360, 441); + this.pictureBox1.TabIndex = 0; + this.pictureBox1.TabStop = false; + // + // btn_FreeRoam + // + this.btn_FreeRoam.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_FreeRoam.Font = new System.Drawing.Font("Segoe UI", 8.25F); + this.btn_FreeRoam.ForeColor = System.Drawing.Color.White; + this.btn_FreeRoam.Location = new System.Drawing.Point(22, 137); + this.btn_FreeRoam.Name = "btn_FreeRoam"; + this.btn_FreeRoam.Size = new System.Drawing.Size(224, 23); + this.btn_FreeRoam.TabIndex = 8; + this.btn_FreeRoam.Text = "Free Roam Mode"; + this.btn_FreeRoam.UseVisualStyleBackColor = true; + this.btn_FreeRoam.Click += new System.EventHandler(this.btn_FreeRoam_Click); + // + // btn_StoryMode + // + this.btn_StoryMode.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_StoryMode.Font = new System.Drawing.Font("Segoe UI", 8.25F); + this.btn_StoryMode.ForeColor = System.Drawing.Color.White; + this.btn_StoryMode.Location = new System.Drawing.Point(22, 108); + this.btn_StoryMode.Name = "btn_StoryMode"; + this.btn_StoryMode.Size = new System.Drawing.Size(224, 23); + this.btn_StoryMode.TabIndex = 6; + this.btn_StoryMode.Text = "Story Mode"; + this.btn_StoryMode.UseVisualStyleBackColor = true; + this.btn_StoryMode.Click += new System.EventHandler(this.btn_StoryMode_Click); + // + // btn_Exit + // + this.btn_Exit.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_Exit.Font = new System.Drawing.Font("Segoe UI", 8.25F); + this.btn_Exit.ForeColor = System.Drawing.Color.White; + this.btn_Exit.Location = new System.Drawing.Point(22, 195); + this.btn_Exit.Name = "btn_Exit"; + this.btn_Exit.Size = new System.Drawing.Size(224, 23); + this.btn_Exit.TabIndex = 10; + this.btn_Exit.Text = "Exit"; + this.btn_Exit.UseVisualStyleBackColor = true; + this.btn_Exit.Click += new System.EventHandler(this.btn_Exit_Click); + // + // btn_Aboot + // + this.btn_Aboot.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_Aboot.Font = new System.Drawing.Font("Segoe UI", 8.25F); + this.btn_Aboot.ForeColor = System.Drawing.Color.White; + this.btn_Aboot.Location = new System.Drawing.Point(22, 166); + this.btn_Aboot.Name = "btn_Aboot"; + this.btn_Aboot.Size = new System.Drawing.Size(224, 23); + this.btn_Aboot.TabIndex = 9; + this.btn_Aboot.Text = "About"; + this.btn_Aboot.UseVisualStyleBackColor = true; + this.btn_Aboot.Click += new System.EventHandler(this.btn_Aboot_Click); + // + // Label2 + // + this.Label2.AutoSize = true; + this.Label2.Font = new System.Drawing.Font("Consolas", 12F); + this.Label2.ForeColor = System.Drawing.Color.White; + this.Label2.Location = new System.Drawing.Point(18, 65); + this.Label2.Name = "Label2"; + this.Label2.Size = new System.Drawing.Size(162, 19); + this.Label2.TabIndex = 7; + this.Label2.Text = "Shift it your way"; + // + // Label1 + // + this.Label1.AutoSize = true; + this.Label1.Font = new System.Drawing.Font("Consolas", 36F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Label1.ForeColor = System.Drawing.Color.White; + this.Label1.Location = new System.Drawing.Point(12, 9); + this.Label1.Name = "Label1"; + this.Label1.Size = new System.Drawing.Size(206, 56); + this.Label1.TabIndex = 5; + this.Label1.Text = "ShiftOS"; + // + // ShiftOSMenu + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.DimGray; + this.ClientSize = new System.Drawing.Size(624, 441); + this.Controls.Add(this.btn_FreeRoam); + this.Controls.Add(this.btn_StoryMode); + this.Controls.Add(this.btn_Exit); + this.Controls.Add(this.btn_Aboot); + this.Controls.Add(this.Label2); + this.Controls.Add(this.Label1); + this.Controls.Add(this.pictureBox1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.Name = "ShiftOSMenu"; + this.ShowIcon = false; + this.ShowInTaskbar = false; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "ShiftOS Menu"; + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.PictureBox pictureBox1; + internal System.Windows.Forms.Button btn_FreeRoam; + internal System.Windows.Forms.Button btn_StoryMode; + internal System.Windows.Forms.Button btn_Exit; + internal System.Windows.Forms.Button btn_Aboot; + internal System.Windows.Forms.Label Label2; + internal System.Windows.Forms.Label Label1; + } +} + diff --git a/ShiftOS-TheRevival-CS/MainForms/ShiftOSMenu.cs b/ShiftOS-TheRevival-CS/MainForms/ShiftOSMenu.cs new file mode 100644 index 0000000..661d799 --- /dev/null +++ b/ShiftOS-TheRevival-CS/MainForms/ShiftOSMenu.cs @@ -0,0 +1,62 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace ShiftOS_TheRevival_CS +{ + public partial class ShiftOSMenu : Form + { + public ShiftOSMenu() + { + InitializeComponent(); + } + + private void btn_Exit_Click(object sender, EventArgs e) + { + Close(); + } + + private void btn_StoryMode_Click(object sender, EventArgs e) + { + switch (btn_StoryMode.Text) { + case "Story Mode": + btn_StoryMode.Text = "New Game"; + btn_FreeRoam.Text = "Continue"; + btn_Aboot.Text = "Back"; + btn_Exit.Visible = false; + break; + case "New Game": + break; + } + } + + private void btn_FreeRoam_Click(object sender, EventArgs e) + { + switch (btn_FreeRoam.Text) + { + case "Free Roam Mode": + break; + case "Continue": + break; + } + } + + private void btn_Aboot_Click(object sender, EventArgs e) + { + switch (btn_Aboot.Text) { + case "Back": + btn_StoryMode.Text = "Story Mode"; + btn_FreeRoam.Text = "Free Roam Mode"; + btn_Aboot.Text = "About"; + btn_Exit.Visible = true; + break; + } + } + } +} diff --git a/ShiftOS-TheRevival-CS/MainForms/ShiftOSMenu.resx b/ShiftOS-TheRevival-CS/MainForms/ShiftOSMenu.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/ShiftOS-TheRevival-CS/MainForms/ShiftOSMenu.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 |
