mirror of
https://github.com/seriocomedy/ShiftOS-C-.git
synced 2025-01-22 02:22:25 -05:00
Fixed Bugs and Organized Items
This commit is contained in:
parent
65c2138272
commit
ce774a20fe
11 changed files with 1723 additions and 6542 deletions
|
@ -90,6 +90,7 @@ private void InitializeComponent()
|
|||
this.txtaddress.Size = new System.Drawing.Size(640, 20);
|
||||
this.txtaddress.TabIndex = 0;
|
||||
this.txtaddress.Text = "shiftnet://main";
|
||||
this.txtaddress.TextChanged += new System.EventHandler(this.txtaddress_TextChanged);
|
||||
//
|
||||
// wbshiftnet
|
||||
//
|
||||
|
|
|
@ -60,11 +60,17 @@ private void btnhome_Click(object sender, EventArgs e)
|
|||
wbshiftnet.DocumentText = WebLayer.VisitSite("shiftnet://main");
|
||||
txtaddress.Text = WebLayer.LastUrl;
|
||||
}
|
||||
|
||||
private void txtaddress_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public class WebLayer
|
||||
{
|
||||
private static string HtmlTemplate = "<html><head><title>Shiftnet Page</title><link rel=\"stylesheet\" href=\"http://playshiftos.ml/shiftnet.css\"/></head><body>#BODY#</body></html>";
|
||||
public static String serverurl = "http://playshiftos.ml";
|
||||
private static string HtmlTemplate = "<html><head><title>Shiftnet Page</title><link rel=\"stylesheet\" href=\"" + serverurl + "/shiftnet.css\"/></head><body>#BODY#</body></html>";
|
||||
public static string LastUrl = null;
|
||||
|
||||
public static string VisitSite(string url)
|
||||
|
@ -74,7 +80,7 @@ public static string VisitSite(string url)
|
|||
{
|
||||
try
|
||||
{
|
||||
string content = wc.DownloadString(url.Replace("shiftnet://", "http://www.playshiftos.ml/shiftnet/www/"));
|
||||
string content = wc.DownloadString(url.Replace("shiftnet://", serverurl + "/shiftnet/www/"));
|
||||
if (content.StartsWith("<!STML>"))
|
||||
{
|
||||
LastUrl = url;
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,785 +0,0 @@
|
|||
namespace ShiftOS
|
||||
{
|
||||
partial class HackUI
|
||||
{
|
||||
/// <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.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HackUI));
|
||||
this.tbui = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.pnlenemy = new System.Windows.Forms.Panel();
|
||||
this.lbenemycompromised = new System.Windows.Forms.Label();
|
||||
this.lbenemystats = new System.Windows.Forms.Label();
|
||||
this.txtyourconsole = new System.Windows.Forms.TextBox();
|
||||
this.pnlyou = new System.Windows.Forms.Panel();
|
||||
this.lbcompromised = new System.Windows.Forms.Label();
|
||||
this.lbstats = new System.Windows.Forms.Label();
|
||||
this.txtenemyconsole = new System.Windows.Forms.TextBox();
|
||||
this.btnnext = new System.Windows.Forms.Button();
|
||||
this.pnlbuy = new System.Windows.Forms.Panel();
|
||||
this.txthostname = new System.Windows.Forms.TextBox();
|
||||
this.lbhostname = new System.Windows.Forms.Label();
|
||||
this.txtgrade = new System.Windows.Forms.TextBox();
|
||||
this.lbgrade = new System.Windows.Forms.Label();
|
||||
this.lbmoduleinfo = new System.Windows.Forms.Label();
|
||||
this.cmbbuyable = new System.Windows.Forms.ComboBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.btndonebuying = new System.Windows.Forms.Button();
|
||||
this.pnldefensemanager = new System.Windows.Forms.Panel();
|
||||
this.btnbuy = new System.Windows.Forms.Button();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.cmbmodules = new System.Windows.Forms.ComboBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.pnlpcinfo = new System.Windows.Forms.Panel();
|
||||
this.lbtargets = new System.Windows.Forms.Label();
|
||||
this.btnpoweroff = new System.Windows.Forms.Button();
|
||||
this.btnupgrade = new System.Windows.Forms.Button();
|
||||
this.lbpcinfo = new System.Windows.Forms.Label();
|
||||
this.lbmoduletitle = new System.Windows.Forms.Label();
|
||||
this.btncloseinfo = new System.Windows.Forms.Button();
|
||||
this.flcontrols = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.btnaddmodule = new System.Windows.Forms.Button();
|
||||
this.lbcodepoints = new System.Windows.Forms.Label();
|
||||
this.btntogglemusic = new System.Windows.Forms.Button();
|
||||
this.lbsong = new System.Windows.Forms.Label();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.pgpong = new System.Windows.Forms.Panel();
|
||||
this.lblcountdown = new System.Windows.Forms.Label();
|
||||
this.ball = new System.Windows.Forms.Panel();
|
||||
this.paddleHuman = new System.Windows.Forms.PictureBox();
|
||||
this.paddleComputer = new System.Windows.Forms.Panel();
|
||||
this.lbllevelandtime = new System.Windows.Forms.Label();
|
||||
this.lblstatsY = new System.Windows.Forms.Label();
|
||||
this.lblstatsX = new System.Windows.Forms.Label();
|
||||
this.pnltutorial = new System.Windows.Forms.Panel();
|
||||
this.lbtutorial = new System.Windows.Forms.Label();
|
||||
this.tmrplayerhealthdetect = new System.Windows.Forms.Timer(this.components);
|
||||
this.tmrenemyhealthdetect = new System.Windows.Forms.Timer(this.components);
|
||||
this.tmrredraw = new System.Windows.Forms.Timer(this.components);
|
||||
this.tmrvisualizer = new System.Windows.Forms.Timer(this.components);
|
||||
this.pongGameTimer = new System.Windows.Forms.Timer(this.components);
|
||||
this.counter = new System.Windows.Forms.Timer(this.components);
|
||||
this.tmrcountdown = new System.Windows.Forms.Timer(this.components);
|
||||
this.tbui.SuspendLayout();
|
||||
this.pnlenemy.SuspendLayout();
|
||||
this.pnlyou.SuspendLayout();
|
||||
this.pnlbuy.SuspendLayout();
|
||||
this.pnldefensemanager.SuspendLayout();
|
||||
this.pnlpcinfo.SuspendLayout();
|
||||
this.flcontrols.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
this.pgpong.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.paddleHuman)).BeginInit();
|
||||
this.pnltutorial.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// tbui
|
||||
//
|
||||
this.tbui.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
|
||||
this.tbui.ColumnCount = 2;
|
||||
this.tbui.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
|
||||
this.tbui.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
|
||||
this.tbui.Controls.Add(this.pnlenemy, 1, 1);
|
||||
this.tbui.Controls.Add(this.txtyourconsole, 0, 1);
|
||||
this.tbui.Controls.Add(this.pnlyou, 0, 0);
|
||||
this.tbui.Controls.Add(this.txtenemyconsole, 1, 0);
|
||||
this.tbui.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tbui.Location = new System.Drawing.Point(0, 0);
|
||||
this.tbui.Name = "tbui";
|
||||
this.tbui.RowCount = 2;
|
||||
this.tbui.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
|
||||
this.tbui.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
|
||||
this.tbui.Size = new System.Drawing.Size(1339, 710);
|
||||
this.tbui.TabIndex = 0;
|
||||
//
|
||||
// pnlenemy
|
||||
//
|
||||
this.pnlenemy.BackColor = System.Drawing.Color.Black;
|
||||
this.pnlenemy.Controls.Add(this.lbenemycompromised);
|
||||
this.pnlenemy.Controls.Add(this.lbenemystats);
|
||||
this.pnlenemy.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pnlenemy.Font = new System.Drawing.Font("Lucida Console", 8.25F);
|
||||
this.pnlenemy.ForeColor = System.Drawing.Color.White;
|
||||
this.pnlenemy.Location = new System.Drawing.Point(673, 358);
|
||||
this.pnlenemy.Name = "pnlenemy";
|
||||
this.pnlenemy.Size = new System.Drawing.Size(662, 348);
|
||||
this.pnlenemy.TabIndex = 4;
|
||||
//
|
||||
// lbenemycompromised
|
||||
//
|
||||
this.lbenemycompromised.AutoSize = true;
|
||||
this.lbenemycompromised.Location = new System.Drawing.Point(161, 90);
|
||||
this.lbenemycompromised.Name = "lbenemycompromised";
|
||||
this.lbenemycompromised.Size = new System.Drawing.Size(47, 11);
|
||||
this.lbenemycompromised.TabIndex = 1;
|
||||
this.lbenemycompromised.Text = "label1";
|
||||
this.lbenemycompromised.Visible = false;
|
||||
//
|
||||
// lbenemystats
|
||||
//
|
||||
this.lbenemystats.AutoSize = true;
|
||||
this.lbenemystats.Location = new System.Drawing.Point(13, 13);
|
||||
this.lbenemystats.Name = "lbenemystats";
|
||||
this.lbenemystats.Size = new System.Drawing.Size(131, 11);
|
||||
this.lbenemystats.TabIndex = 0;
|
||||
this.lbenemystats.Text = "Enemy Health: 100%";
|
||||
//
|
||||
// txtyourconsole
|
||||
//
|
||||
this.txtyourconsole.BackColor = System.Drawing.Color.Black;
|
||||
this.txtyourconsole.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.txtyourconsole.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.txtyourconsole.ForeColor = System.Drawing.Color.LightGreen;
|
||||
this.txtyourconsole.Location = new System.Drawing.Point(4, 358);
|
||||
this.txtyourconsole.Multiline = true;
|
||||
this.txtyourconsole.Name = "txtyourconsole";
|
||||
this.txtyourconsole.Size = new System.Drawing.Size(662, 348);
|
||||
this.txtyourconsole.TabIndex = 3;
|
||||
//
|
||||
// pnlyou
|
||||
//
|
||||
this.pnlyou.BackColor = System.Drawing.Color.Black;
|
||||
this.pnlyou.Controls.Add(this.lbcompromised);
|
||||
this.pnlyou.Controls.Add(this.lbstats);
|
||||
this.pnlyou.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pnlyou.Font = new System.Drawing.Font("Lucida Console", 8.25F);
|
||||
this.pnlyou.ForeColor = System.Drawing.Color.White;
|
||||
this.pnlyou.Location = new System.Drawing.Point(4, 4);
|
||||
this.pnlyou.Name = "pnlyou";
|
||||
this.pnlyou.Size = new System.Drawing.Size(662, 347);
|
||||
this.pnlyou.TabIndex = 1;
|
||||
this.pnlyou.MouseDown += new System.Windows.Forms.MouseEventHandler(this.playfield_MouseDown);
|
||||
//
|
||||
// lbcompromised
|
||||
//
|
||||
this.lbcompromised.AutoSize = true;
|
||||
this.lbcompromised.Location = new System.Drawing.Point(66, 88);
|
||||
this.lbcompromised.Name = "lbcompromised";
|
||||
this.lbcompromised.Size = new System.Drawing.Size(103, 11);
|
||||
this.lbcompromised.TabIndex = 3;
|
||||
this.lbcompromised.Text = "SYSTEM DAMAGED";
|
||||
this.lbcompromised.Visible = false;
|
||||
//
|
||||
// lbstats
|
||||
//
|
||||
this.lbstats.AutoSize = true;
|
||||
this.lbstats.Location = new System.Drawing.Point(13, 13);
|
||||
this.lbstats.Name = "lbstats";
|
||||
this.lbstats.Size = new System.Drawing.Size(138, 11);
|
||||
this.lbstats.TabIndex = 0;
|
||||
this.lbstats.Text = "System Health: 100%";
|
||||
//
|
||||
// txtenemyconsole
|
||||
//
|
||||
this.txtenemyconsole.BackColor = System.Drawing.Color.Black;
|
||||
this.txtenemyconsole.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.txtenemyconsole.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.txtenemyconsole.ForeColor = System.Drawing.Color.LightGreen;
|
||||
this.txtenemyconsole.Location = new System.Drawing.Point(673, 4);
|
||||
this.txtenemyconsole.Multiline = true;
|
||||
this.txtenemyconsole.Name = "txtenemyconsole";
|
||||
this.txtenemyconsole.Size = new System.Drawing.Size(662, 347);
|
||||
this.txtenemyconsole.TabIndex = 2;
|
||||
//
|
||||
// btnnext
|
||||
//
|
||||
this.btnnext.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnnext.AutoSize = true;
|
||||
this.btnnext.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.btnnext.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnnext.Location = new System.Drawing.Point(294, 161);
|
||||
this.btnnext.Name = "btnnext";
|
||||
this.btnnext.Size = new System.Drawing.Size(66, 23);
|
||||
this.btnnext.TabIndex = 9;
|
||||
this.btnnext.Text = "Next >>";
|
||||
this.btnnext.UseVisualStyleBackColor = true;
|
||||
this.btnnext.Visible = false;
|
||||
this.btnnext.Click += new System.EventHandler(this.btnnext_Click);
|
||||
//
|
||||
// pnlbuy
|
||||
//
|
||||
this.pnlbuy.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.pnlbuy.Controls.Add(this.txthostname);
|
||||
this.pnlbuy.Controls.Add(this.lbhostname);
|
||||
this.pnlbuy.Controls.Add(this.txtgrade);
|
||||
this.pnlbuy.Controls.Add(this.lbgrade);
|
||||
this.pnlbuy.Controls.Add(this.lbmoduleinfo);
|
||||
this.pnlbuy.Controls.Add(this.cmbbuyable);
|
||||
this.pnlbuy.Controls.Add(this.label4);
|
||||
this.pnlbuy.Controls.Add(this.btndonebuying);
|
||||
this.pnlbuy.Location = new System.Drawing.Point(7, 405);
|
||||
this.pnlbuy.Name = "pnlbuy";
|
||||
this.pnlbuy.Size = new System.Drawing.Size(382, 299);
|
||||
this.pnlbuy.TabIndex = 6;
|
||||
this.pnlbuy.Visible = false;
|
||||
//
|
||||
// txthostname
|
||||
//
|
||||
this.txthostname.BackColor = System.Drawing.Color.Black;
|
||||
this.txthostname.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txthostname.ForeColor = System.Drawing.Color.White;
|
||||
this.txthostname.Location = new System.Drawing.Point(186, 236);
|
||||
this.txthostname.Name = "txthostname";
|
||||
this.txthostname.Size = new System.Drawing.Size(186, 18);
|
||||
this.txthostname.TabIndex = 10;
|
||||
//
|
||||
// lbhostname
|
||||
//
|
||||
this.lbhostname.AutoSize = true;
|
||||
this.lbhostname.Location = new System.Drawing.Point(112, 240);
|
||||
this.lbhostname.Name = "lbhostname";
|
||||
this.lbhostname.Size = new System.Drawing.Size(68, 11);
|
||||
this.lbhostname.TabIndex = 9;
|
||||
this.lbhostname.Text = "Hostname:";
|
||||
//
|
||||
// txtgrade
|
||||
//
|
||||
this.txtgrade.BackColor = System.Drawing.Color.Black;
|
||||
this.txtgrade.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtgrade.ForeColor = System.Drawing.Color.White;
|
||||
this.txtgrade.Location = new System.Drawing.Point(65, 236);
|
||||
this.txtgrade.Name = "txtgrade";
|
||||
this.txtgrade.Size = new System.Drawing.Size(40, 18);
|
||||
this.txtgrade.TabIndex = 8;
|
||||
this.txtgrade.TextChanged += new System.EventHandler(this.txtgrade_TextChanged);
|
||||
//
|
||||
// lbgrade
|
||||
//
|
||||
this.lbgrade.AutoSize = true;
|
||||
this.lbgrade.Location = new System.Drawing.Point(12, 240);
|
||||
this.lbgrade.Name = "lbgrade";
|
||||
this.lbgrade.Size = new System.Drawing.Size(47, 11);
|
||||
this.lbgrade.TabIndex = 7;
|
||||
this.lbgrade.Text = "Grade:";
|
||||
//
|
||||
// lbmoduleinfo
|
||||
//
|
||||
this.lbmoduleinfo.Location = new System.Drawing.Point(10, 63);
|
||||
this.lbmoduleinfo.Name = "lbmoduleinfo";
|
||||
this.lbmoduleinfo.Size = new System.Drawing.Size(367, 156);
|
||||
this.lbmoduleinfo.TabIndex = 6;
|
||||
this.lbmoduleinfo.Text = resources.GetString("lbmoduleinfo.Text");
|
||||
//
|
||||
// cmbbuyable
|
||||
//
|
||||
this.cmbbuyable.BackColor = System.Drawing.Color.Black;
|
||||
this.cmbbuyable.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmbbuyable.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.cmbbuyable.ForeColor = System.Drawing.Color.White;
|
||||
this.cmbbuyable.FormattingEnabled = true;
|
||||
this.cmbbuyable.Location = new System.Drawing.Point(12, 38);
|
||||
this.cmbbuyable.Name = "cmbbuyable";
|
||||
this.cmbbuyable.Size = new System.Drawing.Size(360, 19);
|
||||
this.cmbbuyable.TabIndex = 3;
|
||||
this.cmbbuyable.SelectedIndexChanged += new System.EventHandler(this.cmbbuyable_SelectedIndexChanged);
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(10, 12);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(75, 11);
|
||||
this.label4.TabIndex = 2;
|
||||
this.label4.Text = "Buy Module";
|
||||
//
|
||||
// btndonebuying
|
||||
//
|
||||
this.btndonebuying.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btndonebuying.AutoSize = true;
|
||||
this.btndonebuying.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.btndonebuying.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btndonebuying.Location = new System.Drawing.Point(341, 273);
|
||||
this.btndonebuying.Name = "btndonebuying";
|
||||
this.btndonebuying.Size = new System.Drawing.Size(38, 23);
|
||||
this.btndonebuying.TabIndex = 1;
|
||||
this.btndonebuying.Text = "Buy";
|
||||
this.btndonebuying.UseVisualStyleBackColor = true;
|
||||
this.btndonebuying.Click += new System.EventHandler(this.btndonebuying_Click);
|
||||
//
|
||||
// pnldefensemanager
|
||||
//
|
||||
this.pnldefensemanager.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.pnldefensemanager.Controls.Add(this.btnbuy);
|
||||
this.pnldefensemanager.Controls.Add(this.label3);
|
||||
this.pnldefensemanager.Controls.Add(this.cmbmodules);
|
||||
this.pnldefensemanager.Controls.Add(this.label1);
|
||||
this.pnldefensemanager.Controls.Add(this.button1);
|
||||
this.pnldefensemanager.Location = new System.Drawing.Point(395, 424);
|
||||
this.pnldefensemanager.Name = "pnldefensemanager";
|
||||
this.pnldefensemanager.Size = new System.Drawing.Size(382, 280);
|
||||
this.pnldefensemanager.TabIndex = 5;
|
||||
this.pnldefensemanager.Visible = false;
|
||||
//
|
||||
// btnbuy
|
||||
//
|
||||
this.btnbuy.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnbuy.AutoSize = true;
|
||||
this.btnbuy.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.btnbuy.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnbuy.Location = new System.Drawing.Point(199, 254);
|
||||
this.btnbuy.Name = "btnbuy";
|
||||
this.btnbuy.Size = new System.Drawing.Size(122, 23);
|
||||
this.btnbuy.TabIndex = 7;
|
||||
this.btnbuy.Text = "Buy new module.";
|
||||
this.btnbuy.UseVisualStyleBackColor = true;
|
||||
this.btnbuy.Click += new System.EventHandler(this.btnbuy_Click);
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.Location = new System.Drawing.Point(12, 95);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(367, 156);
|
||||
this.label3.TabIndex = 6;
|
||||
this.label3.Text = resources.GetString("label3.Text");
|
||||
//
|
||||
// cmbmodules
|
||||
//
|
||||
this.cmbmodules.BackColor = System.Drawing.Color.Black;
|
||||
this.cmbmodules.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmbmodules.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.cmbmodules.ForeColor = System.Drawing.Color.White;
|
||||
this.cmbmodules.FormattingEnabled = true;
|
||||
this.cmbmodules.Location = new System.Drawing.Point(12, 38);
|
||||
this.cmbmodules.Name = "cmbmodules";
|
||||
this.cmbmodules.Size = new System.Drawing.Size(360, 19);
|
||||
this.cmbmodules.TabIndex = 3;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(10, 12);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(75, 11);
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "Add Module";
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.button1.AutoSize = true;
|
||||
this.button1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button1.Location = new System.Drawing.Point(327, 254);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(52, 23);
|
||||
this.button1.TabIndex = 1;
|
||||
this.button1.Text = "Done.";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click_1);
|
||||
//
|
||||
// pnlpcinfo
|
||||
//
|
||||
this.pnlpcinfo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.pnlpcinfo.Controls.Add(this.lbtargets);
|
||||
this.pnlpcinfo.Controls.Add(this.btnpoweroff);
|
||||
this.pnlpcinfo.Controls.Add(this.btnupgrade);
|
||||
this.pnlpcinfo.Controls.Add(this.lbpcinfo);
|
||||
this.pnlpcinfo.Controls.Add(this.lbmoduletitle);
|
||||
this.pnlpcinfo.Controls.Add(this.btncloseinfo);
|
||||
this.pnlpcinfo.Location = new System.Drawing.Point(783, 424);
|
||||
this.pnlpcinfo.Name = "pnlpcinfo";
|
||||
this.pnlpcinfo.Size = new System.Drawing.Size(382, 280);
|
||||
this.pnlpcinfo.TabIndex = 7;
|
||||
this.pnlpcinfo.Visible = false;
|
||||
//
|
||||
// lbtargets
|
||||
//
|
||||
this.lbtargets.Location = new System.Drawing.Point(12, 165);
|
||||
this.lbtargets.Name = "lbtargets";
|
||||
this.lbtargets.Size = new System.Drawing.Size(367, 86);
|
||||
this.lbtargets.TabIndex = 9;
|
||||
this.lbtargets.Text = "Targets";
|
||||
//
|
||||
// btnpoweroff
|
||||
//
|
||||
this.btnpoweroff.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnpoweroff.AutoSize = true;
|
||||
this.btnpoweroff.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.btnpoweroff.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnpoweroff.Location = new System.Drawing.Point(85, 254);
|
||||
this.btnpoweroff.Name = "btnpoweroff";
|
||||
this.btnpoweroff.Size = new System.Drawing.Size(80, 23);
|
||||
this.btnpoweroff.TabIndex = 8;
|
||||
this.btnpoweroff.Text = "Power Off";
|
||||
this.btnpoweroff.UseVisualStyleBackColor = true;
|
||||
this.btnpoweroff.Click += new System.EventHandler(this.btnpoweroff_Click);
|
||||
//
|
||||
// btnupgrade
|
||||
//
|
||||
this.btnupgrade.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnupgrade.AutoSize = true;
|
||||
this.btnupgrade.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.btnupgrade.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnupgrade.Location = new System.Drawing.Point(171, 254);
|
||||
this.btnupgrade.Name = "btnupgrade";
|
||||
this.btnupgrade.Size = new System.Drawing.Size(150, 23);
|
||||
this.btnupgrade.TabIndex = 7;
|
||||
this.btnupgrade.Text = "Upgrade This Module";
|
||||
this.btnupgrade.UseVisualStyleBackColor = true;
|
||||
this.btnupgrade.Click += new System.EventHandler(this.btnupgrade_Click);
|
||||
//
|
||||
// lbpcinfo
|
||||
//
|
||||
this.lbpcinfo.Location = new System.Drawing.Point(12, 41);
|
||||
this.lbpcinfo.Name = "lbpcinfo";
|
||||
this.lbpcinfo.Size = new System.Drawing.Size(367, 86);
|
||||
this.lbpcinfo.TabIndex = 6;
|
||||
this.lbpcinfo.Text = resources.GetString("lbpcinfo.Text");
|
||||
//
|
||||
// lbmoduletitle
|
||||
//
|
||||
this.lbmoduletitle.AutoSize = true;
|
||||
this.lbmoduletitle.Location = new System.Drawing.Point(10, 12);
|
||||
this.lbmoduletitle.Name = "lbmoduletitle";
|
||||
this.lbmoduletitle.Size = new System.Drawing.Size(75, 11);
|
||||
this.lbmoduletitle.TabIndex = 2;
|
||||
this.lbmoduletitle.Text = "Add Module";
|
||||
//
|
||||
// btncloseinfo
|
||||
//
|
||||
this.btncloseinfo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btncloseinfo.AutoSize = true;
|
||||
this.btncloseinfo.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.btncloseinfo.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btncloseinfo.Location = new System.Drawing.Point(327, 254);
|
||||
this.btncloseinfo.Name = "btncloseinfo";
|
||||
this.btncloseinfo.Size = new System.Drawing.Size(52, 23);
|
||||
this.btncloseinfo.TabIndex = 1;
|
||||
this.btncloseinfo.Text = "Done.";
|
||||
this.btncloseinfo.UseVisualStyleBackColor = true;
|
||||
this.btncloseinfo.Click += new System.EventHandler(this.btncloseinfo_Click);
|
||||
//
|
||||
// flcontrols
|
||||
//
|
||||
this.flcontrols.Controls.Add(this.btnaddmodule);
|
||||
this.flcontrols.Controls.Add(this.lbcodepoints);
|
||||
this.flcontrols.Controls.Add(this.btntogglemusic);
|
||||
this.flcontrols.Controls.Add(this.lbsong);
|
||||
this.flcontrols.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.flcontrols.Location = new System.Drawing.Point(0, 710);
|
||||
this.flcontrols.Name = "flcontrols";
|
||||
this.flcontrols.Size = new System.Drawing.Size(1339, 31);
|
||||
this.flcontrols.TabIndex = 4;
|
||||
//
|
||||
// btnaddmodule
|
||||
//
|
||||
this.btnaddmodule.AutoSize = true;
|
||||
this.btnaddmodule.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.btnaddmodule.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnaddmodule.Location = new System.Drawing.Point(3, 3);
|
||||
this.btnaddmodule.Name = "btnaddmodule";
|
||||
this.btnaddmodule.Size = new System.Drawing.Size(87, 23);
|
||||
this.btnaddmodule.TabIndex = 0;
|
||||
this.btnaddmodule.Text = "Add Module";
|
||||
this.btnaddmodule.UseVisualStyleBackColor = true;
|
||||
this.btnaddmodule.Click += new System.EventHandler(this.btnaddmodule_Click);
|
||||
//
|
||||
// lbcodepoints
|
||||
//
|
||||
this.lbcodepoints.Location = new System.Drawing.Point(96, 0);
|
||||
this.lbcodepoints.Name = "lbcodepoints";
|
||||
this.lbcodepoints.Size = new System.Drawing.Size(127, 26);
|
||||
this.lbcodepoints.TabIndex = 1;
|
||||
this.lbcodepoints.Text = "Codepoints:";
|
||||
this.lbcodepoints.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// btntogglemusic
|
||||
//
|
||||
this.btntogglemusic.AutoSize = true;
|
||||
this.btntogglemusic.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.btntogglemusic.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btntogglemusic.Location = new System.Drawing.Point(229, 3);
|
||||
this.btntogglemusic.Name = "btntogglemusic";
|
||||
this.btntogglemusic.Size = new System.Drawing.Size(101, 23);
|
||||
this.btntogglemusic.TabIndex = 2;
|
||||
this.btntogglemusic.Text = "Toggle Music";
|
||||
this.btntogglemusic.UseVisualStyleBackColor = true;
|
||||
this.btntogglemusic.Click += new System.EventHandler(this.button2_Click);
|
||||
//
|
||||
// lbsong
|
||||
//
|
||||
this.lbsong.Location = new System.Drawing.Point(336, 0);
|
||||
this.lbsong.Name = "lbsong";
|
||||
this.lbsong.Size = new System.Drawing.Size(414, 26);
|
||||
this.lbsong.TabIndex = 3;
|
||||
this.lbsong.Text = "Codepoints:";
|
||||
this.lbsong.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.Controls.Add(this.pgpong);
|
||||
this.panel2.Controls.Add(this.pnltutorial);
|
||||
this.panel2.Controls.Add(this.pnlbuy);
|
||||
this.panel2.Controls.Add(this.pnlpcinfo);
|
||||
this.panel2.Controls.Add(this.pnldefensemanager);
|
||||
this.panel2.Controls.Add(this.tbui);
|
||||
this.panel2.Controls.Add(this.flcontrols);
|
||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel2.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(1339, 741);
|
||||
this.panel2.TabIndex = 1;
|
||||
//
|
||||
// pgpong
|
||||
//
|
||||
this.pgpong.BackColor = System.Drawing.Color.Black;
|
||||
this.pgpong.Controls.Add(this.lblcountdown);
|
||||
this.pgpong.Controls.Add(this.ball);
|
||||
this.pgpong.Controls.Add(this.paddleHuman);
|
||||
this.pgpong.Controls.Add(this.paddleComputer);
|
||||
this.pgpong.Controls.Add(this.lbllevelandtime);
|
||||
this.pgpong.Controls.Add(this.lblstatsY);
|
||||
this.pgpong.Controls.Add(this.lblstatsX);
|
||||
this.pgpong.ForeColor = System.Drawing.Color.White;
|
||||
this.pgpong.Location = new System.Drawing.Point(0, 0);
|
||||
this.pgpong.Name = "pgpong";
|
||||
this.pgpong.Size = new System.Drawing.Size(700, 400);
|
||||
this.pgpong.TabIndex = 22;
|
||||
this.pgpong.Visible = false;
|
||||
this.pgpong.MouseMove += new System.Windows.Forms.MouseEventHandler(this.pongMain_MouseMove);
|
||||
//
|
||||
// lblcountdown
|
||||
//
|
||||
this.lblcountdown.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblcountdown.Location = new System.Drawing.Point(187, 152);
|
||||
this.lblcountdown.Name = "lblcountdown";
|
||||
this.lblcountdown.Size = new System.Drawing.Size(315, 49);
|
||||
this.lblcountdown.TabIndex = 7;
|
||||
this.lblcountdown.Text = "3";
|
||||
this.lblcountdown.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.lblcountdown.Visible = false;
|
||||
//
|
||||
// ball
|
||||
//
|
||||
this.ball.BackColor = System.Drawing.Color.Gray;
|
||||
this.ball.Location = new System.Drawing.Point(300, 152);
|
||||
this.ball.Name = "ball";
|
||||
this.ball.Size = new System.Drawing.Size(20, 20);
|
||||
this.ball.TabIndex = 2;
|
||||
//
|
||||
// paddleHuman
|
||||
//
|
||||
this.paddleHuman.BackColor = System.Drawing.Color.Gray;
|
||||
this.paddleHuman.Location = new System.Drawing.Point(10, 134);
|
||||
this.paddleHuman.Name = "paddleHuman";
|
||||
this.paddleHuman.Size = new System.Drawing.Size(20, 100);
|
||||
this.paddleHuman.TabIndex = 3;
|
||||
this.paddleHuman.TabStop = false;
|
||||
//
|
||||
// paddleComputer
|
||||
//
|
||||
this.paddleComputer.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.paddleComputer.BackColor = System.Drawing.Color.Gray;
|
||||
this.paddleComputer.Location = new System.Drawing.Point(666, 134);
|
||||
this.paddleComputer.MaximumSize = new System.Drawing.Size(20, 100);
|
||||
this.paddleComputer.Name = "paddleComputer";
|
||||
this.paddleComputer.Size = new System.Drawing.Size(20, 100);
|
||||
this.paddleComputer.TabIndex = 1;
|
||||
//
|
||||
// lbllevelandtime
|
||||
//
|
||||
this.lbllevelandtime.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.lbllevelandtime.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lbllevelandtime.Location = new System.Drawing.Point(0, 0);
|
||||
this.lbllevelandtime.Name = "lbllevelandtime";
|
||||
this.lbllevelandtime.Size = new System.Drawing.Size(700, 22);
|
||||
this.lbllevelandtime.TabIndex = 4;
|
||||
this.lbllevelandtime.Text = "Level: 1";
|
||||
this.lbllevelandtime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lblstatsY
|
||||
//
|
||||
this.lblstatsY.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.lblstatsY.Font = new System.Drawing.Font("Georgia", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblstatsY.Location = new System.Drawing.Point(542, 356);
|
||||
this.lblstatsY.Name = "lblstatsY";
|
||||
this.lblstatsY.Size = new System.Drawing.Size(144, 35);
|
||||
this.lblstatsY.TabIndex = 11;
|
||||
this.lblstatsY.Text = "Yspeed:";
|
||||
this.lblstatsY.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lblstatsX
|
||||
//
|
||||
this.lblstatsX.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.lblstatsX.Font = new System.Drawing.Font("Georgia", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblstatsX.Location = new System.Drawing.Point(3, 356);
|
||||
this.lblstatsX.Name = "lblstatsX";
|
||||
this.lblstatsX.Size = new System.Drawing.Size(144, 35);
|
||||
this.lblstatsX.TabIndex = 5;
|
||||
this.lblstatsX.Text = "Xspeed: ";
|
||||
this.lblstatsX.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// pnltutorial
|
||||
//
|
||||
this.pnltutorial.Controls.Add(this.btnnext);
|
||||
this.pnltutorial.Controls.Add(this.lbtutorial);
|
||||
this.pnltutorial.Location = new System.Drawing.Point(174, 161);
|
||||
this.pnltutorial.Name = "pnltutorial";
|
||||
this.pnltutorial.Size = new System.Drawing.Size(363, 187);
|
||||
this.pnltutorial.TabIndex = 10;
|
||||
this.pnltutorial.Visible = false;
|
||||
//
|
||||
// lbtutorial
|
||||
//
|
||||
this.lbtutorial.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.lbtutorial.Location = new System.Drawing.Point(-2, 50);
|
||||
this.lbtutorial.Name = "lbtutorial";
|
||||
this.lbtutorial.Size = new System.Drawing.Size(367, 86);
|
||||
this.lbtutorial.TabIndex = 9;
|
||||
this.lbtutorial.Text = resources.GetString("lbtutorial.Text");
|
||||
this.lbtutorial.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.lbtutorial.Visible = false;
|
||||
//
|
||||
// tmrplayerhealthdetect
|
||||
//
|
||||
this.tmrplayerhealthdetect.Tick += new System.EventHandler(this.tmrplayerhealthdetect_Tick);
|
||||
//
|
||||
// tmrenemyhealthdetect
|
||||
//
|
||||
this.tmrenemyhealthdetect.Tick += new System.EventHandler(this.tmrenemyhealthdetect_Tick);
|
||||
//
|
||||
// tmrredraw
|
||||
//
|
||||
this.tmrredraw.Tick += new System.EventHandler(this.tmrredraw_Tick);
|
||||
//
|
||||
// tmrvisualizer
|
||||
//
|
||||
this.tmrvisualizer.Tick += new System.EventHandler(this.tmrvisualizer_Tick);
|
||||
//
|
||||
// pongGameTimer
|
||||
//
|
||||
this.pongGameTimer.Interval = 30;
|
||||
this.pongGameTimer.Tick += new System.EventHandler(this.pongGameTimer_Tick);
|
||||
//
|
||||
// counter
|
||||
//
|
||||
this.counter.Interval = 1000;
|
||||
this.counter.Tick += new System.EventHandler(this.counter_Tick);
|
||||
//
|
||||
// tmrcountdown
|
||||
//
|
||||
this.tmrcountdown.Interval = 1000;
|
||||
this.tmrcountdown.Tick += new System.EventHandler(this.tmrcountdown_Tick);
|
||||
//
|
||||
// HackUI
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 11F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.Black;
|
||||
this.ClientSize = new System.Drawing.Size(1339, 741);
|
||||
this.Controls.Add(this.panel2);
|
||||
this.Font = new System.Drawing.Font("Lucida Console", 8.25F);
|
||||
this.ForeColor = System.Drawing.Color.LightGreen;
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Name = "HackUI";
|
||||
this.Text = "HackUI";
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.this_Closing);
|
||||
this.Load += new System.EventHandler(this.HackUI_Load);
|
||||
this.tbui.ResumeLayout(false);
|
||||
this.tbui.PerformLayout();
|
||||
this.pnlenemy.ResumeLayout(false);
|
||||
this.pnlenemy.PerformLayout();
|
||||
this.pnlyou.ResumeLayout(false);
|
||||
this.pnlyou.PerformLayout();
|
||||
this.pnlbuy.ResumeLayout(false);
|
||||
this.pnlbuy.PerformLayout();
|
||||
this.pnldefensemanager.ResumeLayout(false);
|
||||
this.pnldefensemanager.PerformLayout();
|
||||
this.pnlpcinfo.ResumeLayout(false);
|
||||
this.pnlpcinfo.PerformLayout();
|
||||
this.flcontrols.ResumeLayout(false);
|
||||
this.flcontrols.PerformLayout();
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.pgpong.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.paddleHuman)).EndInit();
|
||||
this.pnltutorial.ResumeLayout(false);
|
||||
this.pnltutorial.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.TableLayoutPanel tbui;
|
||||
private System.Windows.Forms.Panel pnlyou;
|
||||
private System.Windows.Forms.Panel pnlbuy;
|
||||
private System.Windows.Forms.TextBox txthostname;
|
||||
private System.Windows.Forms.Label lbhostname;
|
||||
private System.Windows.Forms.TextBox txtgrade;
|
||||
private System.Windows.Forms.Label lbgrade;
|
||||
private System.Windows.Forms.Label lbmoduleinfo;
|
||||
private System.Windows.Forms.ComboBox cmbbuyable;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Button btndonebuying;
|
||||
private System.Windows.Forms.Panel pnldefensemanager;
|
||||
private System.Windows.Forms.Button btnbuy;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.ComboBox cmbmodules;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Button btnnext;
|
||||
private System.Windows.Forms.Panel pnlpcinfo;
|
||||
private System.Windows.Forms.Label lbtargets;
|
||||
private System.Windows.Forms.Button btnpoweroff;
|
||||
private System.Windows.Forms.Button btnupgrade;
|
||||
private System.Windows.Forms.Label lbpcinfo;
|
||||
private System.Windows.Forms.Label lbmoduletitle;
|
||||
private System.Windows.Forms.Button btncloseinfo;
|
||||
private System.Windows.Forms.FlowLayoutPanel flcontrols;
|
||||
private System.Windows.Forms.Button btnaddmodule;
|
||||
private System.Windows.Forms.Label lbcompromised;
|
||||
private System.Windows.Forms.Label lbstats;
|
||||
private System.Windows.Forms.TextBox txtyourconsole;
|
||||
private System.Windows.Forms.TextBox txtenemyconsole;
|
||||
private System.Windows.Forms.Panel pnlenemy;
|
||||
private System.Windows.Forms.Label lbenemycompromised;
|
||||
private System.Windows.Forms.Label lbenemystats;
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
private System.Windows.Forms.Timer tmrplayerhealthdetect;
|
||||
private System.Windows.Forms.Timer tmrenemyhealthdetect;
|
||||
private System.Windows.Forms.Timer tmrredraw;
|
||||
private System.Windows.Forms.Label lbcodepoints;
|
||||
private System.Windows.Forms.Button btntogglemusic;
|
||||
private System.Windows.Forms.Label lbsong;
|
||||
private System.Windows.Forms.Panel pnltutorial;
|
||||
private System.Windows.Forms.Label lbtutorial;
|
||||
private System.Windows.Forms.Timer tmrvisualizer;
|
||||
internal System.Windows.Forms.Panel pgpong;
|
||||
internal System.Windows.Forms.Label lblcountdown;
|
||||
internal System.Windows.Forms.Panel ball;
|
||||
internal System.Windows.Forms.PictureBox paddleHuman;
|
||||
internal System.Windows.Forms.Panel paddleComputer;
|
||||
internal System.Windows.Forms.Label lbllevelandtime;
|
||||
internal System.Windows.Forms.Label lblstatsY;
|
||||
internal System.Windows.Forms.Label lblstatsX;
|
||||
internal System.Windows.Forms.Timer pongGameTimer;
|
||||
internal System.Windows.Forms.Timer counter;
|
||||
internal System.Windows.Forms.Timer tmrcountdown;
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -1,177 +0,0 @@
|
|||
<?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>
|
||||
<data name="lbmoduleinfo.Text" xml:space="preserve">
|
||||
<value>When you press 'Done', simply click where you'd like to place the new module. You can right-click the playing field to cancel the deployment.
|
||||
|
||||
Some modules have a range of effect. For example, an Antivirus will only heal modules within it's area of effect and only if their HP is below 10. This can be upgraded.
|
||||
|
||||
To upgrade a module, simply right-click it on the playing field and choose 'Upgrade this module'.
|
||||
|
||||
If you would like to buy a new module, click 'Buy new module'.</value>
|
||||
</data>
|
||||
<data name="label3.Text" xml:space="preserve">
|
||||
<value>When you press 'Done', simply click where you'd like to place the new module. You can right-click the playing field to cancel the deployment.
|
||||
|
||||
Some modules have a range of effect. For example, an Antivirus will only heal modules within it's area of effect and only if their HP is below 10. This can be upgraded.
|
||||
|
||||
To upgrade a module, simply right-click it on the playing field and choose 'Upgrade this module'.
|
||||
|
||||
If you would like to buy a new module, click 'Buy new module'.</value>
|
||||
</data>
|
||||
<data name="lbpcinfo.Text" xml:space="preserve">
|
||||
<value>When you press 'Done', simply click where you'd like to place the new module. You can right-click the playing field to cancel the deployment.
|
||||
|
||||
Some modules have a range of effect. For example, an Antivirus will only heal modules within it's area of effect and only if their HP is below 10. This can be upgraded.
|
||||
|
||||
To upgrade a module, simply right-click it on the playing field and choose 'Upgrade this module'.
|
||||
|
||||
If you would like to buy a new module, click 'Buy new module'.</value>
|
||||
</data>
|
||||
<data name="lbtutorial.Text" xml:space="preserve">
|
||||
<value>When you press 'Done', simply click where you'd like to place the new module. You can right-click the playing field to cancel the deployment.
|
||||
|
||||
Some modules have a range of effect. For example, an Antivirus will only heal modules within it's area of effect and only if their HP is below 10. This can be upgraded.
|
||||
|
||||
To upgrade a module, simply right-click it on the playing field and choose 'Upgrade this module'.
|
||||
|
||||
If you would like to buy a new module, click 'Buy new module'.</value>
|
||||
</data>
|
||||
<metadata name="tmrplayerhealthdetect.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="tmrenemyhealthdetect.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>63, 42</value>
|
||||
</metadata>
|
||||
<metadata name="tmrredraw.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>191, 17</value>
|
||||
</metadata>
|
||||
<metadata name="tmrvisualizer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>238, 42</value>
|
||||
</metadata>
|
||||
<metadata name="pongGameTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>358, 42</value>
|
||||
</metadata>
|
||||
<metadata name="counter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>501, 42</value>
|
||||
</metadata>
|
||||
<metadata name="tmrcountdown.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>594, 42</value>
|
||||
</metadata>
|
||||
</root>
|
|
@ -1,810 +0,0 @@
|
|||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace ShiftOS
|
||||
{
|
||||
/// <summary>
|
||||
/// Hacker battles and stuff like that.
|
||||
/// </summary>
|
||||
public class Hacking
|
||||
{
|
||||
public static List<Character> Characters = new List<Character>();
|
||||
public static List<HackTool> Tools = new List<HackTool>();
|
||||
public static List<EnemyHacker> EnemyHackers = new List<EnemyHacker>();
|
||||
public static List<Module> MyNetwork = new List<Module>();
|
||||
public static bool Failure = false;
|
||||
public static DateTime FailDate = DateTime.Now;
|
||||
internal static string HackerBattleAward = null;
|
||||
public static Timer RepairTimer = null;
|
||||
|
||||
public static Module MyCore
|
||||
{
|
||||
get
|
||||
{
|
||||
var m = new Module(SystemType.Core, 1, "invalid");
|
||||
foreach(var mod in MyNetwork)
|
||||
{
|
||||
if(mod.Hostname == "localhost")
|
||||
{
|
||||
m = mod;
|
||||
}
|
||||
}
|
||||
return m;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gives a shiftorium upgrade for free.
|
||||
/// </summary>
|
||||
/// <param name="id">Upgrade ID.</param>
|
||||
public static void GiveUpgrade(string id)
|
||||
{
|
||||
API.Upgrades[id] = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Increases skill of a character.
|
||||
/// </summary>
|
||||
/// <param name="cid">The character ID.</param>
|
||||
public static void IncreaseSkill(int cid)
|
||||
{
|
||||
var rnd = new Random();
|
||||
int newspeed = rnd.Next(0, 5);
|
||||
int newskill = rnd.Next(0, 10);
|
||||
Characters[cid].Speed += newspeed;
|
||||
Characters[cid].Skill += newskill;
|
||||
SaveCharacters();
|
||||
API.CreateInfoboxSession("Hack complete.", $"{Characters[cid].Name} has successfully completed their hack. {Characters[cid].Name} has gained {newspeed} Speed Points, and {newskill} Skill Points.", infobox.InfoboxMode.Info);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Applies a hack.
|
||||
/// </summary>
|
||||
/// <param name="hack">Type of hack to apply.</param>
|
||||
public static void GiveHack(Hack hack)
|
||||
{
|
||||
switch (hack)
|
||||
{
|
||||
case Hack.PayoutIncrease:
|
||||
API.CurrentSave.CodepointMultiplier += 1;
|
||||
break;
|
||||
case Hack.PriceDrop:
|
||||
API.CurrentSave.PriceDivider += 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Add a new character.
|
||||
/// </summary>
|
||||
/// <param name="ch">The new character.</param>
|
||||
public static void AddCharacter(Character ch)
|
||||
{
|
||||
bool c = true;
|
||||
foreach(var character in Characters)
|
||||
{
|
||||
if(character.Name == ch.Name)
|
||||
{
|
||||
c = false;
|
||||
}
|
||||
}
|
||||
if(c == true)
|
||||
{
|
||||
Characters.Add(ch);
|
||||
SaveCharacters();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds a new hacking tool.
|
||||
/// </summary>
|
||||
/// <param name="ch">The hacking tool.</param>
|
||||
public static void AddTool(HackTool ch)
|
||||
{
|
||||
if (!Tools.Contains(ch))
|
||||
{
|
||||
Tools.Add(ch);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a random hack type.
|
||||
/// </summary>
|
||||
/// <returns>The hack type.</returns>
|
||||
public static Hack GetRandomHack()
|
||||
{
|
||||
var t = new List<Hack>(Enum.GetValues(typeof(Hack)).Cast<Hack>());
|
||||
var rnd = new Random();
|
||||
return t[rnd.Next(0, t.Count - 1)];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Start a hack with a character.
|
||||
/// </summary>
|
||||
/// <param name="cid">Character to hire.</param>
|
||||
/// <param name="hack">Type of hack to pull off.</param>
|
||||
public static void StartHackWithCharacter(int cid, Hack hack)
|
||||
{
|
||||
var h = Characters[cid];
|
||||
var f = new Form();
|
||||
f.BackColor = Color.Black;
|
||||
f.ForeColor = Color.White;
|
||||
f.Font = new Font(OSInfo.GetMonospaceFont(), 9);
|
||||
var l = new Label();
|
||||
int p = 0;
|
||||
int speed = 10000 / h.Speed; //If a hacker has a speed of one, it will take 10,000 milliseconds to move 1% in the hack progress. Divide it by a thousand, you get 1,000 seconds.
|
||||
var t = new Timer();
|
||||
t.Interval = speed;
|
||||
f.FormBorderStyle = FormBorderStyle.None;
|
||||
f.Show();
|
||||
switch (API.CurrentSkin.desktoppanelposition)
|
||||
{
|
||||
case "Top":
|
||||
f.Location = new Point(5, API.CurrentSkin.desktoppanelheight + 5);
|
||||
break;
|
||||
case "Bottom":
|
||||
f.Location = new Point(5, 5);
|
||||
break;
|
||||
}
|
||||
|
||||
f.Controls.Add(l);
|
||||
l.Show();
|
||||
l.TextAlign = ContentAlignment.MiddleCenter;
|
||||
f.Height = 25;
|
||||
f.TopMost = true;
|
||||
l.Text = $"Progress: {p}%";
|
||||
l.Dock = DockStyle.Fill;
|
||||
t.Tick += (object s, EventArgs a) =>
|
||||
{
|
||||
if (l.Text != "Hack failed.")
|
||||
{
|
||||
if (p <= 100)
|
||||
{
|
||||
l.Text = $"Progress: {p}%";
|
||||
int fail = new Random().Next(0, h.Skill * h.Speed);
|
||||
if (fail == 1)
|
||||
{
|
||||
l.Text = "Hack failed.";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
GiveHack(hack);
|
||||
f.Close();
|
||||
t.Stop();
|
||||
IncreaseSkill(cid);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
f.Close();
|
||||
t.Stop();
|
||||
}
|
||||
|
||||
p += 1;
|
||||
};
|
||||
t.Start();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Hacker Battles: List of modules the user can buy.
|
||||
/// </summary>
|
||||
/// <returns>The list that was created by the method. What did you think it would return? A boolean?</returns>
|
||||
public static List<FutureModule> GetFutureModules()
|
||||
{
|
||||
var lst = new List<FutureModule>();
|
||||
lst.Add(new FutureModule("Antivirus", 15, "This module will heal any other module within it's area of effect to 10 HP. Higher grades can improve it's area of effect.", SystemType.Antivirus));
|
||||
lst.Add(new FutureModule("Enslaver", 75, "The Enslaver is a scary module for an opposing network. At any time, the Enslaver can take over any module on the enemy network and turn it against them.", SystemType.Enslaver));
|
||||
lst.Add(new FutureModule("Module Thief", 100, "The Module Thief can hack into the enemy's network and attempt to steal one of their modules and bring them into your network temporarily though. Be careful though, it might not work all the time!", SystemType.ModuleStealer));
|
||||
lst.Add(new FutureModule("Dedicated DDoS module", 10, "This module will attempt to disable the enemy network by sending a DDoS attack allowing you to take a breather.", SystemType.DedicatedDDoS));
|
||||
lst.Add(new FutureModule("Turret", 5, "It's not super-effective, but the Turret will blast through any Grade 1 defenses pretty quickly. The higher the grade, the higher the strength.", SystemType.Turret));
|
||||
lst.Add(new FutureModule("Firewall", 20, "Will decrease the amount of damage taken by any module within it's area of effect. The higher the grade, the bigger the area of effect and more protection it offers.", SystemType.Firewall));
|
||||
lst.Add(new FutureModule("Repair Module", 150, "Slowly repairs all modules within the area of effect to the same HP as the repair module.", SystemType.RepairModule));
|
||||
lst.Add(new FutureModule("Server Stack", 250, "Capable of sending a worm attack to the entire enemy network, preventing it from attacking until it can recover.", SystemType.ServerStack));
|
||||
return lst;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Hire a character to attempt to hack a Shiftorium Upgrade.
|
||||
/// </summary>
|
||||
/// <param name="cid">The character.</param>
|
||||
/// <param name="upgrade">The upgrade ID.</param>
|
||||
public static void StartHackWithCharacter(int cid, string upgrade)
|
||||
{
|
||||
if (upgrade == "random")
|
||||
{
|
||||
StartHackWithCharacter(cid, GetRandomHack());
|
||||
}
|
||||
else {
|
||||
var h = Characters[cid];
|
||||
var f = new Form();
|
||||
f.BackColor = Color.Black;
|
||||
f.ForeColor = Color.White;
|
||||
f.Font = new Font(OSInfo.GetMonospaceFont(), 9);
|
||||
var l = new Label();
|
||||
int p = 0;
|
||||
int speed = 10000 / h.Speed; //If a hacker has a speed of one, it will take 10,000 milliseconds to move 1% in the hack progress. Divide it by a thousand, you get 1,000 seconds.
|
||||
var t = new Timer();
|
||||
t.Interval = speed;
|
||||
f.FormBorderStyle = FormBorderStyle.None;
|
||||
f.Show();
|
||||
switch (API.CurrentSkin.desktoppanelposition)
|
||||
{
|
||||
case "Top":
|
||||
f.Location = new Point(5, API.CurrentSkin.desktoppanelheight + 5);
|
||||
break;
|
||||
case "Bottom":
|
||||
f.Location = new Point(5, 5);
|
||||
break;
|
||||
}
|
||||
|
||||
f.Controls.Add(l);
|
||||
l.Show();
|
||||
l.TextAlign = ContentAlignment.MiddleCenter;
|
||||
f.Height = 25;
|
||||
f.TopMost = true;
|
||||
l.Text = $"Progress: {p}%";
|
||||
l.Dock = DockStyle.Fill;
|
||||
t.Tick += (object s, EventArgs a) =>
|
||||
{
|
||||
if (l.Text != "Hack failed.")
|
||||
{
|
||||
if (p <= 100)
|
||||
{
|
||||
l.Text = $"Progress: {p}%";
|
||||
int fail = new Random().Next(0, h.Skill * h.Speed);
|
||||
if (fail == 1)
|
||||
{
|
||||
l.Text = "Hack failed.";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
GiveUpgrade(upgrade);
|
||||
f.Close();
|
||||
t.Stop();
|
||||
IncreaseSkill(cid);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
f.Close();
|
||||
t.Stop();
|
||||
}
|
||||
|
||||
p += 1;
|
||||
};
|
||||
t.Start();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Start a hack with a tool.
|
||||
/// </summary>
|
||||
/// <param name="cid">Tool ID.</param>
|
||||
/// <param name="hack">The hack type.</param>
|
||||
public static void StartHack(int cid, Hack hack)
|
||||
{
|
||||
var h = Tools[cid];
|
||||
switch (h.Name)
|
||||
{
|
||||
case "Destabilizer Attack":
|
||||
var t = new Timer();
|
||||
t.Interval = 100;
|
||||
var rnd = new Random();
|
||||
t.Tick += (object s, EventArgs a) =>
|
||||
{
|
||||
int r = rnd.Next(0, 100);
|
||||
if (r == 90)
|
||||
{
|
||||
t.Stop();
|
||||
|
||||
API.CreateInfoboxSession("Hack complete.", "The hack has been completed.", infobox.InfoboxMode.Info);
|
||||
GiveHack(hack);
|
||||
}
|
||||
else
|
||||
{
|
||||
try {
|
||||
int p = rnd.Next(0, 10);
|
||||
switch (p)
|
||||
{
|
||||
case 1:
|
||||
API.OpenProgram("shiftorium");
|
||||
break;
|
||||
case 2:
|
||||
API.OpenProgram("ki");
|
||||
break;
|
||||
case 3:
|
||||
API.CreateInfoboxSession(API.Encryption.Encrypt("Praise Lord Michael"), API.Encryption.Encrypt("You will bow down to me."), infobox.InfoboxMode.Info);
|
||||
break;
|
||||
case 4:
|
||||
API.PlaySound(Properties.Resources._3beepvirus);
|
||||
break;
|
||||
case 5:
|
||||
API.CurrentSession.BackColor = Color.White;
|
||||
break;
|
||||
case 6:
|
||||
API.CurrentSession.BackColor = Color.Black;
|
||||
break;
|
||||
case 7:
|
||||
API.PlaySound(Properties.Resources.dial_up_modem_02);
|
||||
break;
|
||||
case 8:
|
||||
API.PlaySound(Properties.Resources.writesound);
|
||||
break;
|
||||
case 9:
|
||||
API.PlaySound(Properties.Resources.typesound);
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
t.Stop();
|
||||
var tr = new Terminal();
|
||||
tr.Show();
|
||||
tr.WindowState = FormWindowState.Maximized;
|
||||
tr.txtterm.BackColor = Color.Red;
|
||||
tr.Crash();
|
||||
}
|
||||
}
|
||||
};
|
||||
t.Start();
|
||||
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Start a hack with a tool, to attempt to get an upgrade.
|
||||
/// </summary>
|
||||
/// <param name="cid">Tool ID.</param>
|
||||
/// <param name="upgrade">Upgrade ID.</param>
|
||||
public static void StartHack(int cid, string upgrade)
|
||||
{
|
||||
if (upgrade == "random")
|
||||
{
|
||||
StartHack(cid, GetRandomHack());
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Tools.Count <= cid)
|
||||
{
|
||||
API.CreateInfoboxSession("Failed!", "No Hacking Tools Avalible!", infobox.InfoboxMode.Info);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
HackTool h = Tools[cid];
|
||||
switch (h.Name)
|
||||
{
|
||||
case "Destabilizer Attack":
|
||||
var t = new Timer();
|
||||
t.Interval = 1000 / h.Effectiveness;
|
||||
var rnd = new Random();
|
||||
t.Tick += (object s, EventArgs a) =>
|
||||
{
|
||||
int r = rnd.Next(0, 100);
|
||||
if (r == 90)
|
||||
{
|
||||
t.Stop();
|
||||
API.CreateInfoboxSession("Hack complete.", "The hack has been completed.", infobox.InfoboxMode.Info);
|
||||
GiveUpgrade(upgrade);
|
||||
}
|
||||
else
|
||||
{
|
||||
int p = rnd.Next(0, 10);
|
||||
switch (p)
|
||||
{
|
||||
case 1:
|
||||
API.OpenProgram("shiftorium");
|
||||
break;
|
||||
case 2:
|
||||
API.OpenProgram("ki");
|
||||
break;
|
||||
case 3:
|
||||
API.CreateInfoboxSession(API.Encryption.Encrypt("Praise Lord Michael"), API.Encryption.Encrypt("You will bow down to me."), infobox.InfoboxMode.Info);
|
||||
break;
|
||||
case 4:
|
||||
API.PlaySound(Properties.Resources._3beepvirus);
|
||||
break;
|
||||
case 5:
|
||||
API.CurrentSession.BackColor = Color.White;
|
||||
break;
|
||||
case 6:
|
||||
API.CurrentSession.BackColor = Color.Black;
|
||||
break;
|
||||
case 7:
|
||||
API.PlaySound(Properties.Resources.dial_up_modem_02);
|
||||
break;
|
||||
case 8:
|
||||
API.PlaySound(Properties.Resources.writesound);
|
||||
break;
|
||||
case 9:
|
||||
API.PlaySound(Properties.Resources.typesound);
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
t.Start();
|
||||
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initiates the Hacker Battle training simulation.
|
||||
/// </summary>
|
||||
public static void StartBattleTutorial()
|
||||
{
|
||||
var e = new EnemyHacker("Tutorial", "Tutorial hacker", "Tutorial hacker", 0, 0, "easy");
|
||||
var y = new HackUI(e);
|
||||
y.IsTutorial = true;
|
||||
API.CreateForm(y, "You", Properties.Resources.iconTerminal);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads characters and other data from the save file.
|
||||
/// </summary>
|
||||
public static void GetCharacters()
|
||||
{
|
||||
if (File.Exists(Paths.SystemDir + "_hackers.json"))
|
||||
{
|
||||
Characters = JsonConvert.DeserializeObject<List<Character>>(API.Encryption.Decrypt(File.ReadAllText(Paths.SystemDir + "_hackers.json")));
|
||||
}
|
||||
else
|
||||
{
|
||||
var c = new Character("BinaryFire", "I may not be good, but it's what I like to do. You don't need to pay me.", 25, 10, 0);
|
||||
AddCharacter(c);
|
||||
File.WriteAllText(Paths.SystemDir + "_hackers.json", API.Encryption.Encrypt(JsonConvert.SerializeObject(Characters)));
|
||||
}
|
||||
if(File.Exists(Paths.SystemDir + "_hacktools.json"))
|
||||
{
|
||||
Tools = JsonConvert.DeserializeObject<List<HackTool>>(API.Encryption.Decrypt(File.ReadAllText(Paths.SystemDir + "_hacktools.json")));
|
||||
}
|
||||
else
|
||||
{
|
||||
var c = new HackTool("Destabilizer Attack", 10, "Destabilize ShiftOS by causing it to go beyond what it can do, opening many programs at once, and making it do things it was NEVER intended to do.");
|
||||
AddTool(c);
|
||||
File.WriteAllText(Paths.SystemDir + "_hacktools.json", API.Encryption.Encrypt(JsonConvert.SerializeObject(Tools)));
|
||||
|
||||
}
|
||||
if (File.Exists(Paths.SystemDir + "_enemies.json"))
|
||||
{
|
||||
EnemyHackers = JsonConvert.DeserializeObject<List<EnemyHacker>>(API.Encryption.Decrypt(File.ReadAllText(Paths.SystemDir + "_enemies.json")));
|
||||
}
|
||||
else
|
||||
{
|
||||
var c = new EnemyHacker("Tutorial", "Enter the Tutorial Sequence.", "", 0, 0, "Easy");
|
||||
EnemyHackers.Add(c);
|
||||
File.WriteAllText(Paths.SystemDir + "enemies.json", API.Encryption.Encrypt(JsonConvert.SerializeObject(EnemyHackers)));
|
||||
|
||||
}
|
||||
if (File.Exists(Paths.Drivers + "Network.dri"))
|
||||
{
|
||||
MyNetwork = JsonConvert.DeserializeObject<List<Module>>(API.Encryption.Decrypt(File.ReadAllText(Paths.Drivers + "Network.dri")));
|
||||
}
|
||||
else
|
||||
{
|
||||
var c = new Module(SystemType.Core, 1, "localhost");
|
||||
c.HP = 100; //bugfix: core not appearing during battle on new save
|
||||
c.X = 0;
|
||||
c.Y = 0;
|
||||
MyNetwork.Add(c);
|
||||
File.WriteAllText(Paths.Drivers + "Network.dri", API.Encryption.Encrypt(JsonConvert.SerializeObject(MyNetwork)));
|
||||
|
||||
}
|
||||
List<Module> coresToRemove = new List<Module>();
|
||||
foreach(var m in MyNetwork)
|
||||
{
|
||||
if(m.Type == SystemType.Core && m != MyCore)
|
||||
{
|
||||
coresToRemove.Add(m);
|
||||
}
|
||||
}
|
||||
foreach(var m in coresToRemove)
|
||||
{
|
||||
MyNetwork.Remove(m);
|
||||
}
|
||||
RepairTimer = new Timer();
|
||||
RepairTimer.Interval = 2000;
|
||||
var r = new Random();
|
||||
RepairTimer.Tick += (object s, EventArgs a) =>
|
||||
{
|
||||
var repairable = new List<Module>();
|
||||
foreach(var mod in MyNetwork)
|
||||
{
|
||||
if(mod.HP < mod.GetTotalHP())
|
||||
{
|
||||
repairable.Add(mod);
|
||||
}
|
||||
}
|
||||
int index = r.Next(0, repairable.Count);
|
||||
try
|
||||
{
|
||||
int increase = 1;
|
||||
foreach(var mod in MyNetwork)
|
||||
{
|
||||
if(mod.Type == SystemType.RepairModule)
|
||||
{
|
||||
increase += mod.HP / 4;
|
||||
}
|
||||
}
|
||||
|
||||
var m = repairable[index];
|
||||
while(m.HP + increase > m.GetTotalHP())
|
||||
{
|
||||
increase -= 1;
|
||||
}
|
||||
if(m.HP < m.GetTotalHP())
|
||||
{
|
||||
m.HP += increase;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
}
|
||||
};
|
||||
RepairTimer.Start();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Saves characters and other data to the save file.
|
||||
/// </summary>
|
||||
public static void SaveCharacters()
|
||||
{
|
||||
if (MyNetwork == null)
|
||||
{
|
||||
MyNetwork = new List<Module>();
|
||||
var c = new Module(SystemType.Core, 1, "localhost");
|
||||
c.HP = 100; //bugfix: core not appearing during battle on new save
|
||||
c.X = 0;
|
||||
c.Y = 0;
|
||||
MyNetwork.Add(c);
|
||||
}
|
||||
File.WriteAllText(Paths.SystemDir + "_hackers.json", API.Encryption.Encrypt(JsonConvert.SerializeObject(Characters)));
|
||||
File.WriteAllText(Paths.SystemDir + "_hacktools.json", API.Encryption.Encrypt(JsonConvert.SerializeObject(Tools)));
|
||||
File.WriteAllText(Paths.Drivers + "Network.dri", API.Encryption.Encrypt(JsonConvert.SerializeObject(MyNetwork)));
|
||||
File.WriteAllText(Paths.SystemDir + "_enemies.json", API.Encryption.Encrypt(JsonConvert.SerializeObject(EnemyHackers)));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tells user about the 'help hacking' command.
|
||||
/// </summary>
|
||||
public static void StartTutorial()
|
||||
{
|
||||
API.CreateInfoboxSession("Upgrade Category Not Available", "This upgrade category requires more capability from the OS, and is locked. You can type 'help hacking' in the Terminal for more info.", infobox.InfoboxMode.Info);
|
||||
}
|
||||
}
|
||||
|
||||
public class Character
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new hirable character.
|
||||
/// </summary>
|
||||
/// <param name="name">The name of the character.</param>
|
||||
/// <param name="bio">The bio of the character.</param>
|
||||
/// <param name="skill">Starting skill level.</param>
|
||||
/// <param name="speed">Starting speed level.</param>
|
||||
/// <param name="cost">Amount of Codepoints required to hire the hacker.</param>
|
||||
public Character(string name, string bio, int skill, int speed, int cost)
|
||||
{
|
||||
Name = name;
|
||||
Skill = skill;
|
||||
Speed = speed;
|
||||
Cost = cost;
|
||||
Bio = bio;
|
||||
}
|
||||
|
||||
public string Name { get; set; }
|
||||
public int Speed { get; set; }
|
||||
public int Skill { get; set; }
|
||||
public int Cost { get; set; }
|
||||
public string Bio { get; set; }
|
||||
}
|
||||
|
||||
public class HackTool
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new hacking tool.
|
||||
/// </summary>
|
||||
/// <param name="name">Tool name.</param>
|
||||
/// <param name="effectiveness">Effectiveness level.</param>
|
||||
/// <param name="description">Tool description.</param>
|
||||
public HackTool(string name, int effectiveness, string description)
|
||||
{
|
||||
Name = name;
|
||||
Effectiveness = effectiveness;
|
||||
Description = description;
|
||||
}
|
||||
|
||||
public string Name { get; set; }
|
||||
public int Effectiveness { get; set; }
|
||||
public string Description { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Enum representing a type of hack.
|
||||
/// </summary>
|
||||
public enum Hack
|
||||
{
|
||||
PriceDrop,
|
||||
PayoutIncrease,
|
||||
}
|
||||
|
||||
public class Module
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new module.
|
||||
/// </summary>
|
||||
/// <param name="t">Type of module.</param>
|
||||
/// <param name="grade">Starting grade level.</param>
|
||||
/// <param name="hname">Hostname.</param>
|
||||
public Module(SystemType t, int grade, string hname)
|
||||
{
|
||||
Hostname = hname;
|
||||
Type = t;
|
||||
Grade = grade;
|
||||
}
|
||||
|
||||
public string Hostname { get; set; }
|
||||
public ModuleType ModuleType { get; set; }
|
||||
public SystemType Type { get; set; }
|
||||
public int HP { get; set; }
|
||||
public int Grade { get; set; }
|
||||
/// <summary>
|
||||
/// X position on the virtual network.
|
||||
/// </summary>
|
||||
public int X { get; set; }
|
||||
/// <summary>
|
||||
/// Y position on the virtual network.
|
||||
/// </summary>
|
||||
public int Y { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Deploys the module to a Computer control that can actually do things.
|
||||
/// </summary>
|
||||
/// <returns>The new computer.</returns>
|
||||
public Computer Deploy()
|
||||
{
|
||||
var c = new Computer();
|
||||
c.TotalHP = GetTotalHP(); //for proper status display
|
||||
c.Hostname = Hostname;
|
||||
c.Type = Type;
|
||||
c.HP = HP;
|
||||
c.Visible = true;
|
||||
c.Grade = Grade;
|
||||
if(X != 0 && Y != 0)
|
||||
{
|
||||
c.Location = new Point(X, Y);
|
||||
}
|
||||
return c;
|
||||
}
|
||||
|
||||
public int GetTotalHP()
|
||||
{
|
||||
switch (Type)
|
||||
{
|
||||
case SystemType.Core:
|
||||
return 100;
|
||||
default:
|
||||
switch (Grade)
|
||||
{
|
||||
case 1:
|
||||
return 10;
|
||||
case 2:
|
||||
return 20;
|
||||
case 3:
|
||||
return 40;
|
||||
case 4:
|
||||
return 80;
|
||||
default:
|
||||
return 10;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unused...
|
||||
/// </summary>
|
||||
public enum ModuleType
|
||||
{
|
||||
Offensive,
|
||||
Defensive
|
||||
}
|
||||
|
||||
public class EnemyHacker
|
||||
{
|
||||
/// <summary>
|
||||
/// An enemy network.
|
||||
/// </summary>
|
||||
/// <param name="name">Leader or network name.</param>
|
||||
/// <param name="description">Network Description</param>
|
||||
/// <param name="fdesc">If the leader becomes a friend, what will his bio be?</param>
|
||||
/// <param name="fskill">If the leader becomes a friend, what will his skill be?</param>
|
||||
/// <param name="fspeed">If the leader becomes a friend, what will his speed be?</param>
|
||||
/// <param name="difficulty">Arbitrary value that means absolutely nothing.</param>
|
||||
public EnemyHacker(string name, string description, string fdesc, int fskill, int fspeed, string difficulty)
|
||||
{
|
||||
Name = name;
|
||||
Description = description;
|
||||
FriendDesc = fdesc;
|
||||
FriendSkill = fskill;
|
||||
FriendSpeed = fspeed;
|
||||
Difficulty = difficulty;
|
||||
Network = new List<Module>();
|
||||
var m = new Module(SystemType.Core, 1, name.ToLower().Replace(" ", "_"));
|
||||
m.X = 0;
|
||||
m.Y = 0;
|
||||
Network.Add(m); //Hacker will always have a core system.
|
||||
}
|
||||
|
||||
public bool IsLeader = false;
|
||||
public string Name { get; set; }
|
||||
public string FriendDesc { get; set; }
|
||||
public string Description { get; set; }
|
||||
public int FriendSpeed { get; set; }
|
||||
public int FriendSkill { get; set; }
|
||||
public string Difficulty { get; set; }
|
||||
public List<Module> Network { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Add a new module to this hacker's network.
|
||||
/// </summary>
|
||||
/// <param name="m">The module to add.</param>
|
||||
public void AddModule(Module m)
|
||||
{
|
||||
Network.Add(m);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Befriends the leader.
|
||||
/// </summary>
|
||||
/// <param name="cost">How much will it cost to hire him?</param>
|
||||
public void Befriend(int cost)
|
||||
{
|
||||
var c = new Character(Name, FriendDesc, FriendSpeed, FriendSkill, cost);
|
||||
Hacking.AddCharacter(c);
|
||||
Hacking.SaveCharacters();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class FutureModule
|
||||
{
|
||||
/// <summary>
|
||||
/// A purchasable module.
|
||||
/// </summary>
|
||||
/// <param name="name">Module name.</param>
|
||||
/// <param name="cost">Cost in Codepoints</param>
|
||||
/// <param name="description">Module description</param>
|
||||
/// <param name="type">Module type.</param>
|
||||
public FutureModule(string name, int cost, string description, SystemType type)
|
||||
{
|
||||
Name = name;
|
||||
Description = description;
|
||||
Type = type;
|
||||
Cost = cost;
|
||||
}
|
||||
|
||||
public string Name { get; set; }
|
||||
public int Cost { get; set; }
|
||||
public string Description { get; set; }
|
||||
public SystemType Type { get; set; }
|
||||
}
|
||||
}
|
|
@ -1,116 +0,0 @@
|
|||
using System;
|
||||
|
||||
namespace ShiftOS
|
||||
{
|
||||
partial class HijackScreen
|
||||
{
|
||||
/// <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.components = new System.ComponentModel.Container();
|
||||
this.lblHijack = new System.Windows.Forms.Label();
|
||||
this.conversationtimer = new System.Windows.Forms.Timer(this.components);
|
||||
this.textgen = new System.Windows.Forms.Timer(this.components);
|
||||
this.lblhackwords = new System.Windows.Forms.Label();
|
||||
this.hackeffecttimer = new System.Windows.Forms.Timer(this.components);
|
||||
this.BackgroundWorker1 = new System.ComponentModel.BackgroundWorker();
|
||||
this.btnskip = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// lblHijack
|
||||
//
|
||||
this.lblHijack.Anchor = System.Windows.Forms.AnchorStyles.None;
|
||||
this.lblHijack.AutoSize = true;
|
||||
this.lblHijack.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.lblHijack.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblHijack.ForeColor = System.Drawing.Color.DimGray;
|
||||
this.lblHijack.Location = new System.Drawing.Point(143, 193);
|
||||
this.lblHijack.Name = "lblHijack";
|
||||
this.lblHijack.Size = new System.Drawing.Size(18, 25);
|
||||
this.lblHijack.TabIndex = 0;
|
||||
this.lblHijack.Text = "\\";
|
||||
//
|
||||
// textgen
|
||||
//
|
||||
this.textgen.Interval = 20;
|
||||
//
|
||||
// lblhackwords
|
||||
//
|
||||
this.lblhackwords.AutoSize = true;
|
||||
this.lblhackwords.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblhackwords.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblhackwords.ForeColor = System.Drawing.SystemColors.ButtonFace;
|
||||
this.lblhackwords.Location = new System.Drawing.Point(0, 0);
|
||||
this.lblhackwords.Name = "lblhackwords";
|
||||
this.lblhackwords.Size = new System.Drawing.Size(127, 18);
|
||||
this.lblhackwords.TabIndex = 1;
|
||||
this.lblhackwords.Text = "Hijack in progress";
|
||||
//
|
||||
// hackeffecttimer
|
||||
//
|
||||
this.hackeffecttimer.Interval = 50;
|
||||
//
|
||||
// btnskip
|
||||
//
|
||||
this.btnskip.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnskip.ForeColor = System.Drawing.Color.White;
|
||||
this.btnskip.Location = new System.Drawing.Point(566, 422);
|
||||
this.btnskip.Name = "btnskip";
|
||||
this.btnskip.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnskip.TabIndex = 2;
|
||||
this.btnskip.Text = "Skip";
|
||||
this.btnskip.UseVisualStyleBackColor = true;
|
||||
this.btnskip.Visible = false;
|
||||
this.btnskip.Click += new System.EventHandler(this.btnskip_Click);
|
||||
//
|
||||
// HijackScreen
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.Silver;
|
||||
this.ClientSize = new System.Drawing.Size(653, 457);
|
||||
this.Controls.Add(this.btnskip);
|
||||
this.Controls.Add(this.lblhackwords);
|
||||
this.Controls.Add(this.lblHijack);
|
||||
this.Name = "HijackScreen";
|
||||
this.Text = "ShiftOS";
|
||||
this.TransparencyKey = System.Drawing.Color.White;
|
||||
this.Load += new System.EventHandler(this.HijackScreen_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
internal System.Windows.Forms.Label lblHijack;
|
||||
internal System.Windows.Forms.Timer conversationtimer;
|
||||
internal System.Windows.Forms.Timer textgen;
|
||||
internal System.Windows.Forms.Label lblhackwords;
|
||||
internal System.Windows.Forms.Timer hackeffecttimer;
|
||||
internal System.ComponentModel.BackgroundWorker BackgroundWorker1;
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button btnskip;
|
||||
}
|
||||
}
|
|
@ -1,723 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace ShiftOS
|
||||
{
|
||||
public partial class HijackScreen : Form
|
||||
{
|
||||
public HijackScreen()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
|
||||
string rtext;
|
||||
string gtexttotype;
|
||||
int charcount;
|
||||
int currentletter;
|
||||
int slashcount;
|
||||
int conversationcount = 0;
|
||||
Label textgeninput;
|
||||
bool needtoclose = false;
|
||||
public bool upgraded = false;
|
||||
FileStream fs;
|
||||
int hackeffect;
|
||||
int percentcount;
|
||||
|
||||
// ERROR: Handles clauses are not supported in C#
|
||||
private void HijackScreen_Load(object sender, EventArgs e)
|
||||
{
|
||||
hackeffecttimer.Tick += new EventHandler(hackeffecttimer_Tick);
|
||||
conversationtimer.Tick += new EventHandler(conversationtimer_Tick);
|
||||
textgen.Tick += new EventHandler(textgen_Tick);
|
||||
|
||||
this.FormBorderStyle = FormBorderStyle.None;
|
||||
this.WindowState = FormWindowState.Maximized;
|
||||
BackgroundWorker1.RunWorkerAsync();
|
||||
conversationtimer.Start();
|
||||
hackeffecttimer.Start();
|
||||
}
|
||||
|
||||
private void TextType(string texttotype)
|
||||
{
|
||||
conversationtimer.Stop();
|
||||
charcount = texttotype.Length;
|
||||
gtexttotype = texttotype;
|
||||
currentletter = 0;
|
||||
slashcount = 1;
|
||||
textgen.Start();
|
||||
}
|
||||
|
||||
|
||||
// ERROR: Handles clauses are not supported in C#
|
||||
private void textgen_Tick(object sender, EventArgs e)
|
||||
{
|
||||
switch (slashcount)
|
||||
{
|
||||
case 1:
|
||||
if (currentletter < gtexttotype.Length)
|
||||
{
|
||||
textgeninput.Text = rtext + "\\";
|
||||
}
|
||||
|
||||
break;
|
||||
case 2:
|
||||
if (currentletter < gtexttotype.Length)
|
||||
{
|
||||
textgeninput.Text = rtext + "|";
|
||||
}
|
||||
|
||||
break;
|
||||
case 3:
|
||||
if (currentletter < gtexttotype.Length)
|
||||
{
|
||||
textgeninput.Text = rtext + "/";
|
||||
}
|
||||
|
||||
break;
|
||||
case 4:
|
||||
if (currentletter < gtexttotype.Length)
|
||||
{
|
||||
rtext = rtext + gtexttotype.Substring(currentletter, 1);
|
||||
currentletter = currentletter + 1;
|
||||
textgeninput.Text = rtext;
|
||||
API.PlaySound(Properties.Resources.typesound);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
slashcount = slashcount + 1;
|
||||
|
||||
if (slashcount == 5)
|
||||
slashcount = 1;
|
||||
if (currentletter == gtexttotype.Length)
|
||||
{
|
||||
gtexttotype = "";
|
||||
conversationtimer.Start();
|
||||
textgen.Stop();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// ERROR: Handles clauses are not supported in C#
|
||||
private void conversationtimer_Tick(object sender, EventArgs e)
|
||||
{
|
||||
switch (conversationcount)
|
||||
{
|
||||
case 0:
|
||||
if (needtoclose == true)
|
||||
this.Close();
|
||||
break;
|
||||
case 1:
|
||||
|
||||
textgeninput = lblHijack;
|
||||
TextType("Your computer is now being Hijacked");
|
||||
conversationtimer.Interval = 1000;
|
||||
|
||||
break;
|
||||
case 3:
|
||||
textgeninput = lblhackwords;
|
||||
textgen.Interval = 10;
|
||||
rtext = "";
|
||||
btnskip.Show();
|
||||
TextType("Congratulations, you have been involuntarily selected to be an Alpha Tester for ShiftOS." + Environment.NewLine + Environment.NewLine);
|
||||
break;
|
||||
case 4:
|
||||
TextType("At this current point in time I do not wish to reveal my identity or future intentions." + Environment.NewLine + Environment.NewLine);
|
||||
break;
|
||||
case 5:
|
||||
TextType("I just need to use you and your computer as an external test bed to evolve my experimental operating system." + Environment.NewLine + Environment.NewLine);
|
||||
break;
|
||||
case 6:
|
||||
TextType("Right now ShiftOS is practically non-existent but I’ll work on coding it remotely as you use it." + Environment.NewLine + Environment.NewLine);
|
||||
break;
|
||||
case 7:
|
||||
TextType("Your hard drive will now be formatted in preparation for the installation of ShiftOS" + Environment.NewLine + Environment.NewLine);
|
||||
break;
|
||||
case 8:
|
||||
TextType("Starting Format.");
|
||||
conversationtimer.Interval = 500;
|
||||
break;
|
||||
case 9:
|
||||
case 10:
|
||||
case 11:
|
||||
case 12:
|
||||
case 13:
|
||||
case 14:
|
||||
case 15:
|
||||
case 16:
|
||||
case 17:
|
||||
case 18:
|
||||
TextType(".");
|
||||
break;
|
||||
case 19:
|
||||
rtext = "";
|
||||
break;
|
||||
case 20:
|
||||
TextType("Scanning System Drive...");
|
||||
break;
|
||||
case 21:
|
||||
TextType(Environment.NewLine + Environment.NewLine + "Current OS: " + OSInfo.GetPlatformID().Replace("microsoft", "Windows"));
|
||||
break;
|
||||
case 22:
|
||||
if(OSInfo.GetPlatformID() == "microsoft")
|
||||
{
|
||||
var dinf = new DriveInfo(Environment.GetFolderPath(Environment.SpecialFolder.Windows).Substring(0, 3));
|
||||
TextType(Environment.NewLine + $"Mountpoint and File System: {dinf.Name} ({dinf.DriveFormat})");
|
||||
}
|
||||
break;
|
||||
case 23:
|
||||
if (OSInfo.GetPlatformID() == "microsoft")
|
||||
{
|
||||
var dinf = new DriveInfo(Environment.GetFolderPath(Environment.SpecialFolder.Windows).Substring(0, 3));
|
||||
TextType(Environment.NewLine + $"Size: {dinf.TotalFreeSpace} free, {dinf.TotalSize} total");
|
||||
}
|
||||
break;
|
||||
case 24:
|
||||
TextType(Environment.NewLine + "New File System: ShiftFS");
|
||||
break;
|
||||
case 25:
|
||||
TextType(Environment.NewLine + Environment.NewLine + "Formatting system drive - ");
|
||||
conversationtimer.Interval = 100;
|
||||
break;
|
||||
case 26:
|
||||
case 28:
|
||||
case 30:
|
||||
case 32:
|
||||
case 36:
|
||||
case 38:
|
||||
case 40:
|
||||
case 42:
|
||||
case 44:
|
||||
case 46:
|
||||
case 48:
|
||||
case 50:
|
||||
case 52:
|
||||
case 54:
|
||||
case 56:
|
||||
case 58:
|
||||
case 60:
|
||||
case 62:
|
||||
case 64:
|
||||
case 66:
|
||||
case 68:
|
||||
case 70:
|
||||
case 72:
|
||||
case 74:
|
||||
case 76:
|
||||
case 78:
|
||||
case 80:
|
||||
case 82:
|
||||
case 84:
|
||||
case 86:
|
||||
case 88:
|
||||
case 90:
|
||||
case 92:
|
||||
case 94:
|
||||
case 96:
|
||||
case 98:
|
||||
case 100:
|
||||
case 102:
|
||||
case 104:
|
||||
case 106:
|
||||
case 108:
|
||||
case 110:
|
||||
case 112:
|
||||
case 114:
|
||||
case 116:
|
||||
case 118:
|
||||
case 120:
|
||||
case 122:
|
||||
case 124:
|
||||
case 126:
|
||||
textgeninput.Text = rtext + percentcount + "%";
|
||||
if (percentcount < 101)
|
||||
{
|
||||
percentcount += 2;
|
||||
API.PlaySound(Properties.Resources.writesound);
|
||||
}
|
||||
break;
|
||||
case 127:
|
||||
rtext = rtext + "100%";
|
||||
conversationtimer.Interval = 1000;
|
||||
break;
|
||||
case 128:
|
||||
TextType(Environment.NewLine + "Format Complete");
|
||||
break;
|
||||
case 129:
|
||||
rtext = "";
|
||||
percentcount = 0;
|
||||
TextType("Installing ShiftOS Alpha 0.0.1 - ");
|
||||
conversationtimer.Interval = 200;
|
||||
break;
|
||||
case 130:
|
||||
case 131:
|
||||
case 132:
|
||||
case 133:
|
||||
case 134:
|
||||
case 135:
|
||||
case 136:
|
||||
case 137:
|
||||
case 138:
|
||||
case 139:
|
||||
case 140:
|
||||
case 141:
|
||||
case 142:
|
||||
case 143:
|
||||
case 144:
|
||||
case 145:
|
||||
case 146:
|
||||
case 147:
|
||||
case 148:
|
||||
case 149:
|
||||
case 150:
|
||||
case 151:
|
||||
case 152:
|
||||
case 153:
|
||||
case 154:
|
||||
case 155:
|
||||
case 156:
|
||||
case 157:
|
||||
case 158:
|
||||
case 159:
|
||||
case 160:
|
||||
case 161:
|
||||
case 162:
|
||||
case 163:
|
||||
case 164:
|
||||
case 165:
|
||||
case 166:
|
||||
case 167:
|
||||
case 168:
|
||||
case 169:
|
||||
case 170:
|
||||
case 171:
|
||||
case 172:
|
||||
case 173:
|
||||
case 174:
|
||||
case 175:
|
||||
case 176:
|
||||
case 177:
|
||||
case 178:
|
||||
case 179:
|
||||
case 180:
|
||||
case 181:
|
||||
case 182:
|
||||
case 183:
|
||||
case 184:
|
||||
case 185:
|
||||
case 186:
|
||||
case 187:
|
||||
case 188:
|
||||
case 189:
|
||||
case 190:
|
||||
case 191:
|
||||
case 192:
|
||||
case 193:
|
||||
case 194:
|
||||
case 195:
|
||||
case 196:
|
||||
case 197:
|
||||
case 198:
|
||||
case 199:
|
||||
case 200:
|
||||
case 201:
|
||||
case 202:
|
||||
case 203:
|
||||
case 204:
|
||||
case 205:
|
||||
case 206:
|
||||
case 207:
|
||||
case 208:
|
||||
case 209:
|
||||
case 210:
|
||||
case 211:
|
||||
case 212:
|
||||
case 213:
|
||||
case 214:
|
||||
case 215:
|
||||
case 216:
|
||||
case 217:
|
||||
case 218:
|
||||
case 219:
|
||||
case 220:
|
||||
case 221:
|
||||
case 222:
|
||||
case 223:
|
||||
case 224:
|
||||
case 225:
|
||||
case 226:
|
||||
case 227:
|
||||
case 228:
|
||||
case 229:
|
||||
case 230:
|
||||
|
||||
textgeninput.Text = rtext + percentcount + "%" + Environment.NewLine + Environment.NewLine;
|
||||
if (percentcount < 101)
|
||||
{
|
||||
percentcount = percentcount + 1;
|
||||
API.PlaySound(Properties.Resources.writesound);
|
||||
}
|
||||
switch (percentcount)
|
||||
{
|
||||
case 1:
|
||||
case 2:
|
||||
textgeninput.Text = textgeninput.Text + "/Home";
|
||||
if ((!System.IO.Directory.Exists(Paths.Home)))
|
||||
System.IO.Directory.CreateDirectory(Paths.Home);
|
||||
break;
|
||||
case 3:
|
||||
case 4:
|
||||
textgeninput.Text = textgeninput.Text + "/Home/Documents";
|
||||
if ((!System.IO.Directory.Exists(Paths.Documents)))
|
||||
System.IO.Directory.CreateDirectory(Paths.Documents);
|
||||
break;
|
||||
case 5:
|
||||
case 6:
|
||||
case 7:
|
||||
case 8:
|
||||
case 9:
|
||||
case 10:
|
||||
case 11:
|
||||
case 12:
|
||||
textgeninput.Text = textgeninput.Text + "/Home/Music";
|
||||
if ((!System.IO.Directory.Exists(Paths.Music)))
|
||||
System.IO.Directory.CreateDirectory(Paths.Music);
|
||||
break;
|
||||
case 13:
|
||||
case 14:
|
||||
case 15:
|
||||
textgeninput.Text = textgeninput.Text + "/Home/Pictures";
|
||||
if ((!System.IO.Directory.Exists(Paths.Pictures)))
|
||||
System.IO.Directory.CreateDirectory(Paths.Pictures);
|
||||
break;
|
||||
case 16:
|
||||
case 17:
|
||||
case 18:
|
||||
textgeninput.Text = textgeninput.Text + "/Shiftum42";
|
||||
if ((!System.IO.Directory.Exists(Paths.SystemDir)))
|
||||
System.IO.Directory.CreateDirectory(Paths.SystemDir);
|
||||
break;
|
||||
case 19:
|
||||
case 20:
|
||||
textgeninput.Text = textgeninput.Text + "/Shiftum42/Drivers";
|
||||
if ((!System.IO.Directory.Exists(Paths.Drivers)))
|
||||
System.IO.Directory.CreateDirectory(Paths.Drivers);
|
||||
break;
|
||||
case 21:
|
||||
case 22:
|
||||
case 23:
|
||||
case 24:
|
||||
case 25:
|
||||
case 26:
|
||||
case 27:
|
||||
textgeninput.Text = textgeninput.Text + "/Shiftum42/Drivers/HDD.dri";
|
||||
break;
|
||||
case 28:
|
||||
case 29:
|
||||
case 30:
|
||||
case 31:
|
||||
case 32:
|
||||
case 33:
|
||||
case 34:
|
||||
case 35:
|
||||
textgeninput.Text = textgeninput.Text + "/Shiftum42/Drivers/Keyboard.dri";
|
||||
fs = File.Create(Paths.Drivers + "Keyboard.dri");
|
||||
fs.Close();
|
||||
break;
|
||||
case 36:
|
||||
case 37:
|
||||
case 38:
|
||||
case 39:
|
||||
case 40:
|
||||
case 41:
|
||||
case 42:
|
||||
case 43:
|
||||
case 44:
|
||||
textgeninput.Text = textgeninput.Text + "/Shiftum42/Drivers/Monitor.dri";
|
||||
fs = File.Create(Paths.Drivers + "Monitor.dri");
|
||||
fs.Close();
|
||||
break;
|
||||
case 45:
|
||||
case 46:
|
||||
case 47:
|
||||
case 48:
|
||||
case 49:
|
||||
case 50:
|
||||
case 51:
|
||||
case 52:
|
||||
textgeninput.Text = textgeninput.Text + "/Shiftum42/Drivers/Mouse.dri";
|
||||
fs = File.Create(Paths.Drivers + "Mouse.dri");
|
||||
fs.Close();
|
||||
break;
|
||||
case 53:
|
||||
case 54:
|
||||
case 55:
|
||||
case 56:
|
||||
case 57:
|
||||
case 58:
|
||||
case 59:
|
||||
case 60:
|
||||
textgeninput.Text = textgeninput.Text + "/Shiftum42/Drivers/Printer.dri";
|
||||
fs = File.Create(Paths.Drivers + "Printer.dri");
|
||||
fs.Close();
|
||||
break;
|
||||
case 61:
|
||||
case 62:
|
||||
case 63:
|
||||
case 64:
|
||||
case 65:
|
||||
case 66:
|
||||
case 67:
|
||||
case 68:
|
||||
textgeninput.Text = textgeninput.Text + "/Shiftum42/Languages/";
|
||||
if ((!System.IO.Directory.Exists(Paths.SystemDir + "Languages")))
|
||||
System.IO.Directory.CreateDirectory(Paths.SystemDir + "Languages");
|
||||
break;
|
||||
case 69:
|
||||
case 70:
|
||||
case 71:
|
||||
case 72:
|
||||
case 73:
|
||||
case 74:
|
||||
case 75:
|
||||
case 76:
|
||||
textgeninput.Text = textgeninput.Text + "/Shiftum42/Languages/Current.lang";
|
||||
fs = File.Create(Paths.SystemDir + "Languages/Current.lang");
|
||||
fs.Close();
|
||||
break;
|
||||
case 77:
|
||||
case 78:
|
||||
case 79:
|
||||
case 80:
|
||||
case 81:
|
||||
case 82:
|
||||
case 83:
|
||||
case 84:
|
||||
textgeninput.Text = textgeninput.Text + "/Shiftum42/HDAccess.sft";
|
||||
break;
|
||||
case 85:
|
||||
case 86:
|
||||
case 87:
|
||||
case 88:
|
||||
case 89:
|
||||
textgeninput.Text = textgeninput.Text + "/Shiftum42/ShiftGUI.sft";
|
||||
fs = File.Create(Paths.SystemDir + "ShiftGUI.sft");
|
||||
fs.Close();
|
||||
break;
|
||||
case 90:
|
||||
case 91:
|
||||
case 92:
|
||||
case 93:
|
||||
textgeninput.Text = textgeninput.Text + "/Shiftum42/SKernal.sft";
|
||||
fs = File.Create(Paths.SystemDir + "SKernal.sft");
|
||||
fs.Close();
|
||||
break;
|
||||
case 94:
|
||||
case 95:
|
||||
case 96:
|
||||
case 97:
|
||||
textgeninput.Text = textgeninput.Text + "/Shiftum42/SRead.sft";
|
||||
fs = File.Create(Paths.SystemDir + "SRead.sft");
|
||||
fs.Close();
|
||||
break;
|
||||
case 98:
|
||||
case 99:
|
||||
case 100:
|
||||
case 101:
|
||||
textgeninput.Text = textgeninput.Text + "/Shiftum42/SWrite.sft";
|
||||
fs = File.Create(Paths.SystemDir + "SWrite.sft");
|
||||
fs.Close();
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case 231:
|
||||
textgeninput.Text = rtext + "100%" + Environment.NewLine + Environment.NewLine + "/Shiftum42/SWrite.sft";
|
||||
conversationtimer.Interval = 1000;
|
||||
API.PlaySound(Properties.Resources.writesound);
|
||||
break;
|
||||
case 232:
|
||||
textgeninput.Text = rtext + "100%" + Environment.NewLine + Environment.NewLine + "ShiftOS Installation Complete!";
|
||||
API.PlaySound(Properties.Resources.typesound);
|
||||
if ((!System.IO.Directory.Exists(Paths.SoftwareData)))
|
||||
System.IO.Directory.CreateDirectory(Paths.SoftwareData);
|
||||
if ((!System.IO.Directory.Exists(Paths.KnowledgeInput)))
|
||||
System.IO.Directory.CreateDirectory(Paths.KnowledgeInput);
|
||||
break;
|
||||
case 234:
|
||||
SaveSystem.Utilities.LoadedSave.newgame = false;
|
||||
API.CurrentSession.Opacity = 100;
|
||||
Terminal term = new Terminal();
|
||||
term.Show();
|
||||
term.tmrfirstrun.Start();
|
||||
this.Close();
|
||||
|
||||
break;
|
||||
}
|
||||
conversationcount = conversationcount + 1;
|
||||
}
|
||||
|
||||
// ERROR: Handles clauses are not supported in C#
|
||||
private void hackeffecttimer_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (hackeffect < 101)
|
||||
{
|
||||
switch (hackeffect)
|
||||
{
|
||||
case 1:
|
||||
case 3:
|
||||
case 5:
|
||||
case 7:
|
||||
case 9:
|
||||
case 11:
|
||||
case 13:
|
||||
case 15:
|
||||
case 17:
|
||||
case 19:
|
||||
case 21:
|
||||
case 23:
|
||||
case 25:
|
||||
case 27:
|
||||
case 29:
|
||||
case 31:
|
||||
case 33:
|
||||
case 35:
|
||||
case 37:
|
||||
case 39:
|
||||
case 41:
|
||||
case 43:
|
||||
case 45:
|
||||
case 47:
|
||||
case 49:
|
||||
case 51:
|
||||
case 53:
|
||||
case 55:
|
||||
case 57:
|
||||
case 59:
|
||||
case 61:
|
||||
case 63:
|
||||
case 65:
|
||||
case 67:
|
||||
case 69:
|
||||
case 71:
|
||||
case 73:
|
||||
case 75:
|
||||
case 77:
|
||||
case 79:
|
||||
case 81:
|
||||
case 83:
|
||||
case 85:
|
||||
case 87:
|
||||
case 89:
|
||||
case 91:
|
||||
case 93:
|
||||
case 95:
|
||||
this.BackColor = Color.Magenta;
|
||||
this.TransparencyKey = Color.Magenta;
|
||||
API.PlaySound(Properties.Resources.writesound);
|
||||
this.TopMost = true;
|
||||
break;
|
||||
case 2:
|
||||
case 4:
|
||||
case 6:
|
||||
case 8:
|
||||
case 10:
|
||||
case 12:
|
||||
case 14:
|
||||
case 16:
|
||||
case 18:
|
||||
case 20:
|
||||
case 22:
|
||||
case 24:
|
||||
case 26:
|
||||
case 28:
|
||||
this.BackColor = Color.Magenta;
|
||||
API.PlaySound(Properties.Resources.typesound);
|
||||
break;
|
||||
case 30:
|
||||
case 32:
|
||||
case 34:
|
||||
case 36:
|
||||
case 38:
|
||||
case 40:
|
||||
case 42:
|
||||
case 44:
|
||||
case 46:
|
||||
case 48:
|
||||
case 50:
|
||||
this.BackColor = Color.Magenta;
|
||||
API.PlaySound(Properties.Resources.typesound);
|
||||
break;
|
||||
case 52:
|
||||
case 54:
|
||||
case 56:
|
||||
case 58:
|
||||
case 60:
|
||||
case 62:
|
||||
case 64:
|
||||
case 66:
|
||||
case 68:
|
||||
case 70:
|
||||
case 72:
|
||||
case 74:
|
||||
case 76:
|
||||
this.BackColor = Color.Magenta;
|
||||
API.PlaySound(Properties.Resources.typesound);
|
||||
|
||||
break;
|
||||
case 78:
|
||||
case 80:
|
||||
case 82:
|
||||
case 84:
|
||||
case 86:
|
||||
case 88:
|
||||
case 90:
|
||||
case 92:
|
||||
case 94:
|
||||
this.BackColor = Color.DimGray;
|
||||
API.PlaySound(Properties.Resources.typesound);
|
||||
|
||||
break;
|
||||
case 96:
|
||||
lblHijack.BackColor = Color.LightGray;
|
||||
break;
|
||||
case 97:
|
||||
lblHijack.BackColor = Color.DarkGray;
|
||||
break;
|
||||
case 98:
|
||||
lblHijack.BackColor = Color.DimGray;
|
||||
break;
|
||||
case 99:
|
||||
this.BackColor = Color.Black;
|
||||
lblHijack.BackColor = Color.Black;
|
||||
lblHijack.ForeColor = Color.DimGray;
|
||||
break;
|
||||
case 100:
|
||||
lblHijack.Hide();
|
||||
break;
|
||||
}
|
||||
}
|
||||
else {
|
||||
hackeffecttimer.Stop();
|
||||
}
|
||||
hackeffect = hackeffect + 1;
|
||||
}
|
||||
|
||||
private void btnskip_Click(object sender, EventArgs e)
|
||||
{
|
||||
conversationcount = 19;
|
||||
btnskip.Hide();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,132 +0,0 @@
|
|||
<?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>
|
||||
<metadata name="conversationtimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="textgen.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>167, 17</value>
|
||||
</metadata>
|
||||
<metadata name="hackeffecttimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>260, 17</value>
|
||||
</metadata>
|
||||
<metadata name="BackgroundWorker1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>396, 17</value>
|
||||
</metadata>
|
||||
</root>
|
|
@ -216,17 +216,17 @@
|
|||
<Compile Include="Dialogs\Graphic_Picker.Designer.cs">
|
||||
<DependentUpon>Graphic_Picker.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Gameplay\Hacking.cs" />
|
||||
<Compile Include="Gameplay\HackUI.cs">
|
||||
<Compile Include="Hacking\Hacking.cs" />
|
||||
<Compile Include="Hacking\HackUI.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Gameplay\HackUI.Designer.cs">
|
||||
<Compile Include="Hacking\HackUI.Designer.cs">
|
||||
<DependentUpon>HackUI.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Gameplay\HijackScreen.cs">
|
||||
<Compile Include="Hacking\HijackScreen.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Gameplay\HijackScreen.Designer.cs">
|
||||
<Compile Include="Hacking\HijackScreen.Designer.cs">
|
||||
<DependentUpon>HijackScreen.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Apps\HoloChat.cs">
|
||||
|
@ -464,10 +464,10 @@
|
|||
<EmbeddedResource Include="Dialogs\Graphic_Picker.resx">
|
||||
<DependentUpon>Graphic_Picker.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Gameplay\HackUI.resx">
|
||||
<EmbeddedResource Include="Hacking\HackUI.resx">
|
||||
<DependentUpon>HackUI.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Gameplay\HijackScreen.resx">
|
||||
<EmbeddedResource Include="Hacking\HijackScreen.resx">
|
||||
<DependentUpon>HijackScreen.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Apps\HoloChat.resx">
|
||||
|
|
Loading…
Reference in a new issue