mirror of
https://github.com/HistacomUnity/Histacom2-old.git
synced 2025-01-22 09:02:01 -05:00
Make achievements screen resize properly, make load screen look much better, other small adjustments
This commit is contained in:
parent
5b22de799a
commit
cc322eeb8e
9 changed files with 1695 additions and 1775 deletions
45
Histacom2/AchievementScreen.Designer.cs
generated
45
Histacom2/AchievementScreen.Designer.cs
generated
|
@ -29,12 +29,12 @@ protected override void Dispose(bool disposing)
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
this.components = new System.ComponentModel.Container();
|
this.components = new System.ComponentModel.Container();
|
||||||
System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem("??? Ending", 1);
|
System.Windows.Forms.ListViewItem listViewItem6 = new System.Windows.Forms.ListViewItem("??? Ending", 1);
|
||||||
System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem("??? Ending", "WinClassicEndingsLocked.png");
|
System.Windows.Forms.ListViewItem listViewItem7 = new System.Windows.Forms.ListViewItem("??? Ending", "WinClassicEndingsLocked.png");
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AchievementScreen));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AchievementScreen));
|
||||||
System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem("Mines Swept Away", 1);
|
System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem("Mines Swept Away", 1);
|
||||||
System.Windows.Forms.ListViewItem listViewItem4 = new System.Windows.Forms.ListViewItem("Time Hacked", "WinClassicEndingsLocked.png");
|
System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem("Time Hacked", "WinClassicEndingsLocked.png");
|
||||||
System.Windows.Forms.ListViewItem listViewItem5 = new System.Windows.Forms.ListViewItem("I\'ve Got Survivalism", "WinClassicEndingsLocked.png");
|
System.Windows.Forms.ListViewItem listViewItem8 = new System.Windows.Forms.ListViewItem("I\'ve Got Survivalism", "WinClassicEndingsLocked.png");
|
||||||
this.listView1 = new System.Windows.Forms.ListView();
|
this.listView1 = new System.Windows.Forms.ListView();
|
||||||
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
|
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
|
||||||
this.button1 = new System.Windows.Forms.Button();
|
this.button1 = new System.Windows.Forms.Button();
|
||||||
|
@ -45,18 +45,22 @@ private void InitializeComponent()
|
||||||
//
|
//
|
||||||
// listView1
|
// listView1
|
||||||
//
|
//
|
||||||
|
this.listView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Left)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.listView1.BackColor = System.Drawing.Color.White;
|
this.listView1.BackColor = System.Drawing.Color.White;
|
||||||
this.listView1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
this.listView1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
this.listView1.ForeColor = System.Drawing.Color.Black;
|
this.listView1.ForeColor = System.Drawing.Color.Black;
|
||||||
listViewItem1.Tag = "piracy";
|
listViewItem6.Tag = "piracy";
|
||||||
this.listView1.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
|
this.listView1.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
|
||||||
listViewItem1,
|
listViewItem6,
|
||||||
listViewItem2});
|
listViewItem7});
|
||||||
this.listView1.LargeImageList = this.imageList1;
|
this.listView1.LargeImageList = this.imageList1;
|
||||||
this.listView1.Location = new System.Drawing.Point(12, 24);
|
this.listView1.Location = new System.Drawing.Point(12, 24);
|
||||||
|
this.listView1.Margin = new System.Windows.Forms.Padding(3, 3, 100, 3);
|
||||||
this.listView1.MultiSelect = false;
|
this.listView1.MultiSelect = false;
|
||||||
this.listView1.Name = "listView1";
|
this.listView1.Name = "listView1";
|
||||||
this.listView1.Size = new System.Drawing.Size(156, 196);
|
this.listView1.Size = new System.Drawing.Size(192, 196);
|
||||||
this.listView1.TabIndex = 0;
|
this.listView1.TabIndex = 0;
|
||||||
this.listView1.TileSize = new System.Drawing.Size(150, 36);
|
this.listView1.TileSize = new System.Drawing.Size(150, 36);
|
||||||
this.listView1.UseCompatibleStateImageBehavior = false;
|
this.listView1.UseCompatibleStateImageBehavior = false;
|
||||||
|
@ -71,6 +75,7 @@ private void InitializeComponent()
|
||||||
//
|
//
|
||||||
// button1
|
// button1
|
||||||
//
|
//
|
||||||
|
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
this.button1.Location = new System.Drawing.Point(13, 226);
|
this.button1.Location = new System.Drawing.Point(13, 226);
|
||||||
this.button1.Name = "button1";
|
this.button1.Name = "button1";
|
||||||
this.button1.Size = new System.Drawing.Size(75, 23);
|
this.button1.Size = new System.Drawing.Size(75, 23);
|
||||||
|
@ -90,23 +95,26 @@ private void InitializeComponent()
|
||||||
//
|
//
|
||||||
// listView2
|
// listView2
|
||||||
//
|
//
|
||||||
|
this.listView2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Left)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.listView2.BackColor = System.Drawing.Color.White;
|
this.listView2.BackColor = System.Drawing.Color.White;
|
||||||
this.listView2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
this.listView2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
this.listView2.ForeColor = System.Drawing.Color.Black;
|
this.listView2.ForeColor = System.Drawing.Color.Black;
|
||||||
listViewItem3.Tag = "mines";
|
listViewItem1.Tag = "mines";
|
||||||
listViewItem3.ToolTipText = "Complete Minesweeper\'s Hard Mode";
|
listViewItem1.ToolTipText = "Complete Minesweeper\'s Hard Mode";
|
||||||
listViewItem4.ToolTipText = "Complete All Endings";
|
listViewItem2.ToolTipText = "Complete All Endings";
|
||||||
listViewItem5.ToolTipText = "Get the only good ending in \"Survive The Day\".";
|
listViewItem8.ToolTipText = "Get the only good ending in \"Survive The Day\".";
|
||||||
this.listView2.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
|
this.listView2.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
|
||||||
listViewItem3,
|
listViewItem1,
|
||||||
listViewItem4,
|
listViewItem2,
|
||||||
listViewItem5});
|
listViewItem8});
|
||||||
this.listView2.LargeImageList = this.imageList1;
|
this.listView2.LargeImageList = this.imageList1;
|
||||||
this.listView2.Location = new System.Drawing.Point(174, 24);
|
this.listView2.Location = new System.Drawing.Point(174, 24);
|
||||||
this.listView2.MultiSelect = false;
|
this.listView2.MultiSelect = false;
|
||||||
this.listView2.Name = "listView2";
|
this.listView2.Name = "listView2";
|
||||||
this.listView2.ShowItemToolTips = true;
|
this.listView2.ShowItemToolTips = true;
|
||||||
this.listView2.Size = new System.Drawing.Size(156, 196);
|
this.listView2.Size = new System.Drawing.Size(192, 196);
|
||||||
this.listView2.TabIndex = 3;
|
this.listView2.TabIndex = 3;
|
||||||
this.listView2.TileSize = new System.Drawing.Size(150, 36);
|
this.listView2.TileSize = new System.Drawing.Size(150, 36);
|
||||||
this.listView2.UseCompatibleStateImageBehavior = false;
|
this.listView2.UseCompatibleStateImageBehavior = false;
|
||||||
|
@ -126,13 +134,14 @@ private void InitializeComponent()
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.BackColor = System.Drawing.Color.Silver;
|
this.BackColor = System.Drawing.Color.Silver;
|
||||||
this.ClientSize = new System.Drawing.Size(343, 261);
|
this.ClientSize = new System.Drawing.Size(379, 261);
|
||||||
this.Controls.Add(this.label2);
|
this.Controls.Add(this.label2);
|
||||||
this.Controls.Add(this.listView2);
|
this.Controls.Add(this.listView2);
|
||||||
this.Controls.Add(this.label1);
|
this.Controls.Add(this.label1);
|
||||||
this.Controls.Add(this.button1);
|
this.Controls.Add(this.button1);
|
||||||
this.Controls.Add(this.listView1);
|
this.Controls.Add(this.listView1);
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
|
this.MinimumSize = new System.Drawing.Size(395, 300);
|
||||||
this.Name = "AchievementScreen";
|
this.Name = "AchievementScreen";
|
||||||
this.Text = "Achievements";
|
this.Text = "Achievements";
|
||||||
this.Load += new System.EventHandler(this.AchievementScreen_Load);
|
this.Load += new System.EventHandler(this.AchievementScreen_Load);
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -9,9 +9,9 @@
|
||||||
[assembly: AssemblyTitle("Histacom2")]
|
[assembly: AssemblyTitle("Histacom2")]
|
||||||
[assembly: AssemblyDescription("Revival of the original hacking simulator!")]
|
[assembly: AssemblyDescription("Revival of the original hacking simulator!")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("Histacom2Devs")]
|
[assembly: AssemblyCompany("Michael Webb")]
|
||||||
[assembly: AssemblyProduct("Histacom2")]
|
[assembly: AssemblyProduct("Histacom2")]
|
||||||
[assembly: AssemblyCopyright("Copyright © Histacom2Devs 2017")]
|
[assembly: AssemblyCopyright("Copyright © Michael Webb and contributors, 2019.")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("2.0.1")]
|
[assembly: AssemblyVersion("2.0.2")]
|
||||||
[assembly: AssemblyFileVersion("2.0.1")]
|
[assembly: AssemblyFileVersion("2.0.2")]
|
||||||
[assembly: NeutralResourcesLanguage("en-US")]
|
[assembly: NeutralResourcesLanguage("en-US")]
|
||||||
|
|
||||||
|
|
1
Histacom2/SaveDialogs/LoadGameDialog.Designer.cs
generated
1
Histacom2/SaveDialogs/LoadGameDialog.Designer.cs
generated
|
@ -73,6 +73,7 @@ private void InitializeComponent()
|
||||||
this.Profiles.AutoScroll = true;
|
this.Profiles.AutoScroll = true;
|
||||||
this.Profiles.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.Profiles.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.Profiles.Location = new System.Drawing.Point(0, 0);
|
this.Profiles.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.Profiles.Margin = new System.Windows.Forms.Padding(0);
|
||||||
this.Profiles.Name = "Profiles";
|
this.Profiles.Name = "Profiles";
|
||||||
this.Profiles.Size = new System.Drawing.Size(516, 340);
|
this.Profiles.Size = new System.Drawing.Size(516, 340);
|
||||||
this.Profiles.TabIndex = 2;
|
this.Profiles.TabIndex = 2;
|
||||||
|
|
|
@ -39,7 +39,7 @@ private void button1_Click(object sender, EventArgs e)
|
||||||
|
|
||||||
private void button3_Click(object sender, EventArgs e)
|
private void button3_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
MessageBox.Show("Here you can control all your profiles! Use can open a profile by hovering over it and clicking 'Load Profile!'");
|
MessageBox.Show("Here, you can control all of your profiles! You can load a profile by hovering over it and clicking 'Load Profile!'");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LoadGameDialog_Load(object sender, EventArgs e)
|
private void LoadGameDialog_Load(object sender, EventArgs e)
|
||||||
|
@ -50,6 +50,7 @@ private void LoadGameDialog_Load(object sender, EventArgs e)
|
||||||
newItem.Tag = Path.GetFileName(dir);
|
newItem.Tag = Path.GetFileName(dir);
|
||||||
newItem.Dock = DockStyle.Top;
|
newItem.Dock = DockStyle.Top;
|
||||||
Profiles.Controls.Add(newItem);
|
Profiles.Controls.Add(newItem);
|
||||||
|
newItem.BorderStyle = BorderStyle.Fixed3D;
|
||||||
newItem.Show();
|
newItem.Show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
140
Histacom2/SaveDialogs/LoadGameProfileItem.Designer.cs
generated
140
Histacom2/SaveDialogs/LoadGameProfileItem.Designer.cs
generated
|
@ -34,128 +34,132 @@ private void InitializeComponent()
|
||||||
this.exampleNameBtn = new System.Windows.Forms.Button();
|
this.exampleNameBtn = new System.Windows.Forms.Button();
|
||||||
this.profileName = new System.Windows.Forms.Label();
|
this.profileName = new System.Windows.Forms.Label();
|
||||||
this.pnlConfirm = new System.Windows.Forms.Panel();
|
this.pnlConfirm = new System.Windows.Forms.Panel();
|
||||||
this.label1 = new System.Windows.Forms.Label();
|
this.btnNo = new System.Windows.Forms.Button();
|
||||||
this.button1 = new System.Windows.Forms.Button();
|
this.btnYes = new System.Windows.Forms.Button();
|
||||||
this.button2 = new System.Windows.Forms.Button();
|
this.lblProfile = new System.Windows.Forms.Label();
|
||||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
this.txtProfileName = new System.Windows.Forms.TextBox();
|
||||||
this.sidebar.SuspendLayout();
|
this.sidebar.SuspendLayout();
|
||||||
this.pnlConfirm.SuspendLayout();
|
this.pnlConfirm.SuspendLayout();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// sidebar
|
// sidebar
|
||||||
//
|
//
|
||||||
this.sidebar.BackColor = System.Drawing.Color.Gray;
|
this.sidebar.BackColor = System.Drawing.SystemColors.MenuHighlight;
|
||||||
this.sidebar.Controls.Add(this.exampleLoadProfile);
|
this.sidebar.Controls.Add(this.exampleLoadProfile);
|
||||||
this.sidebar.Controls.Add(this.exampleDelete);
|
this.sidebar.Controls.Add(this.exampleDelete);
|
||||||
this.sidebar.Controls.Add(this.exampleNameBtn);
|
this.sidebar.Controls.Add(this.exampleNameBtn);
|
||||||
this.sidebar.Dock = System.Windows.Forms.DockStyle.Right;
|
this.sidebar.Dock = System.Windows.Forms.DockStyle.Right;
|
||||||
this.sidebar.Location = new System.Drawing.Point(245, 0);
|
this.sidebar.Location = new System.Drawing.Point(366, 0);
|
||||||
this.sidebar.Name = "sidebar";
|
this.sidebar.Name = "sidebar";
|
||||||
this.sidebar.Size = new System.Drawing.Size(102, 82);
|
this.sidebar.Size = new System.Drawing.Size(129, 134);
|
||||||
this.sidebar.TabIndex = 2;
|
this.sidebar.TabIndex = 2;
|
||||||
this.sidebar.Visible = false;
|
this.sidebar.Visible = false;
|
||||||
//
|
//
|
||||||
// exampleLoadProfile
|
// exampleLoadProfile
|
||||||
//
|
//
|
||||||
this.exampleLoadProfile.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
|
this.exampleLoadProfile.BackColor = System.Drawing.Color.Silver;
|
||||||
this.exampleLoadProfile.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
this.exampleLoadProfile.FlatAppearance.BorderSize = 0;
|
||||||
this.exampleLoadProfile.Location = new System.Drawing.Point(3, 1);
|
this.exampleLoadProfile.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.exampleLoadProfile.Location = new System.Drawing.Point(4, 5);
|
||||||
this.exampleLoadProfile.Name = "exampleLoadProfile";
|
this.exampleLoadProfile.Name = "exampleLoadProfile";
|
||||||
this.exampleLoadProfile.Size = new System.Drawing.Size(94, 23);
|
this.exampleLoadProfile.Size = new System.Drawing.Size(122, 38);
|
||||||
this.exampleLoadProfile.TabIndex = 0;
|
this.exampleLoadProfile.TabIndex = 0;
|
||||||
this.exampleLoadProfile.Text = "Load Profile!";
|
this.exampleLoadProfile.Text = "Load Profile!";
|
||||||
this.exampleLoadProfile.UseVisualStyleBackColor = false;
|
this.exampleLoadProfile.UseVisualStyleBackColor = true;
|
||||||
this.exampleLoadProfile.Click += new System.EventHandler(this.exampleLoadProfile_Click);
|
this.exampleLoadProfile.Click += new System.EventHandler(this.exampleLoadProfile_Click);
|
||||||
//
|
//
|
||||||
// exampleDelete
|
// exampleDelete
|
||||||
//
|
//
|
||||||
this.exampleDelete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
|
this.exampleDelete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
|
||||||
this.exampleDelete.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
this.exampleDelete.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.exampleDelete.Location = new System.Drawing.Point(3, 54);
|
this.exampleDelete.Location = new System.Drawing.Point(4, 93);
|
||||||
this.exampleDelete.Name = "exampleDelete";
|
this.exampleDelete.Name = "exampleDelete";
|
||||||
this.exampleDelete.Size = new System.Drawing.Size(93, 23);
|
this.exampleDelete.Size = new System.Drawing.Size(122, 38);
|
||||||
this.exampleDelete.TabIndex = 0;
|
this.exampleDelete.TabIndex = 0;
|
||||||
this.exampleDelete.Text = "Delete";
|
this.exampleDelete.Text = "Delete";
|
||||||
this.exampleDelete.UseVisualStyleBackColor = false;
|
this.exampleDelete.UseVisualStyleBackColor = true;
|
||||||
this.exampleDelete.Click += new System.EventHandler(this.exampleDelete_Click);
|
this.exampleDelete.Click += new System.EventHandler(this.exampleDelete_Click);
|
||||||
//
|
//
|
||||||
// exampleNameBtn
|
// exampleNameBtn
|
||||||
//
|
//
|
||||||
this.exampleNameBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
|
this.exampleNameBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
|
||||||
this.exampleNameBtn.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
this.exampleNameBtn.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.exampleNameBtn.Location = new System.Drawing.Point(3, 27);
|
this.exampleNameBtn.Location = new System.Drawing.Point(4, 49);
|
||||||
this.exampleNameBtn.Name = "exampleNameBtn";
|
this.exampleNameBtn.Name = "exampleNameBtn";
|
||||||
this.exampleNameBtn.Size = new System.Drawing.Size(93, 23);
|
this.exampleNameBtn.Size = new System.Drawing.Size(122, 38);
|
||||||
this.exampleNameBtn.TabIndex = 0;
|
this.exampleNameBtn.TabIndex = 0;
|
||||||
this.exampleNameBtn.Text = "Change Name";
|
this.exampleNameBtn.Text = "Change Name";
|
||||||
this.exampleNameBtn.UseVisualStyleBackColor = false;
|
this.exampleNameBtn.UseVisualStyleBackColor = true;
|
||||||
this.exampleNameBtn.Click += new System.EventHandler(this.exampleNameBtn_Click);
|
this.exampleNameBtn.Click += new System.EventHandler(this.exampleNameBtn_Click);
|
||||||
//
|
//
|
||||||
// profileName
|
// profileName
|
||||||
//
|
//
|
||||||
this.profileName.BackColor = System.Drawing.Color.Gray;
|
this.profileName.BackColor = System.Drawing.SystemColors.MenuHighlight;
|
||||||
this.profileName.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.profileName.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.profileName.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.profileName.Font = new System.Drawing.Font("Segoe UI Semibold", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.profileName.Location = new System.Drawing.Point(0, 0);
|
this.profileName.Location = new System.Drawing.Point(0, 0);
|
||||||
this.profileName.Name = "profileName";
|
this.profileName.Name = "profileName";
|
||||||
this.profileName.Size = new System.Drawing.Size(245, 82);
|
this.profileName.Padding = new System.Windows.Forms.Padding(44);
|
||||||
|
this.profileName.Size = new System.Drawing.Size(366, 134);
|
||||||
this.profileName.TabIndex = 1;
|
this.profileName.TabIndex = 1;
|
||||||
this.profileName.Text = "Profile Name";
|
this.profileName.Text = "Profile Name";
|
||||||
//
|
//
|
||||||
// pnlConfirm
|
// pnlConfirm
|
||||||
//
|
//
|
||||||
this.pnlConfirm.BackColor = System.Drawing.Color.Gray;
|
this.pnlConfirm.BackColor = System.Drawing.SystemColors.MenuHighlight;
|
||||||
this.pnlConfirm.Controls.Add(this.button2);
|
this.pnlConfirm.Controls.Add(this.btnNo);
|
||||||
this.pnlConfirm.Controls.Add(this.button1);
|
this.pnlConfirm.Controls.Add(this.btnYes);
|
||||||
this.pnlConfirm.Controls.Add(this.label1);
|
this.pnlConfirm.Controls.Add(this.lblProfile);
|
||||||
this.pnlConfirm.Controls.Add(this.textBox1);
|
this.pnlConfirm.Controls.Add(this.txtProfileName);
|
||||||
this.pnlConfirm.Dock = System.Windows.Forms.DockStyle.Bottom;
|
this.pnlConfirm.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||||
this.pnlConfirm.Location = new System.Drawing.Point(0, 32);
|
this.pnlConfirm.Location = new System.Drawing.Point(0, 69);
|
||||||
this.pnlConfirm.Name = "pnlConfirm";
|
this.pnlConfirm.Name = "pnlConfirm";
|
||||||
this.pnlConfirm.Size = new System.Drawing.Size(245, 50);
|
this.pnlConfirm.Size = new System.Drawing.Size(366, 65);
|
||||||
this.pnlConfirm.TabIndex = 1;
|
this.pnlConfirm.TabIndex = 1;
|
||||||
this.pnlConfirm.Visible = false;
|
this.pnlConfirm.Visible = false;
|
||||||
//
|
//
|
||||||
// label1
|
// btnNo
|
||||||
//
|
//
|
||||||
this.label1.AutoSize = true;
|
this.btnNo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
||||||
this.label1.Location = new System.Drawing.Point(3, 5);
|
this.btnNo.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.label1.Name = "label1";
|
this.btnNo.Location = new System.Drawing.Point(121, 29);
|
||||||
this.label1.Size = new System.Drawing.Size(240, 13);
|
this.btnNo.Name = "btnNo";
|
||||||
this.label1.TabIndex = 1;
|
this.btnNo.Size = new System.Drawing.Size(109, 29);
|
||||||
this.label1.Text = "Are you really sure you want to delete this Profile?";
|
this.btnNo.TabIndex = 1;
|
||||||
|
this.btnNo.Text = "No";
|
||||||
|
this.btnNo.UseVisualStyleBackColor = true;
|
||||||
|
this.btnNo.Click += new System.EventHandler(this.button2_Click);
|
||||||
//
|
//
|
||||||
// button1
|
// btnYes
|
||||||
//
|
//
|
||||||
this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
|
this.btnYes.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
|
||||||
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
this.btnYes.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.button1.Location = new System.Drawing.Point(10, 20);
|
this.btnYes.Location = new System.Drawing.Point(7, 29);
|
||||||
this.button1.Name = "button1";
|
this.btnYes.Name = "btnYes";
|
||||||
this.button1.Size = new System.Drawing.Size(109, 22);
|
this.btnYes.Size = new System.Drawing.Size(109, 29);
|
||||||
this.button1.TabIndex = 1;
|
this.btnYes.TabIndex = 1;
|
||||||
this.button1.Text = "Yes";
|
this.btnYes.Text = "Yes";
|
||||||
this.button1.UseVisualStyleBackColor = false;
|
this.btnYes.UseVisualStyleBackColor = true;
|
||||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
this.btnYes.Click += new System.EventHandler(this.button1_Click);
|
||||||
//
|
//
|
||||||
// cancelButton
|
// lblProfile
|
||||||
//
|
//
|
||||||
this.button2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
this.lblProfile.AutoSize = true;
|
||||||
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
this.lblProfile.BackColor = System.Drawing.Color.Transparent;
|
||||||
this.button2.Location = new System.Drawing.Point(136, 20);
|
this.lblProfile.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.button2.Name = "cancelButton";
|
this.lblProfile.Location = new System.Drawing.Point(3, 5);
|
||||||
this.button2.Size = new System.Drawing.Size(109, 23);
|
this.lblProfile.Name = "lblProfile";
|
||||||
this.button2.TabIndex = 1;
|
this.lblProfile.Size = new System.Drawing.Size(357, 21);
|
||||||
this.button2.Text = "No";
|
this.lblProfile.TabIndex = 1;
|
||||||
this.button2.UseVisualStyleBackColor = false;
|
this.lblProfile.Text = "Are you really sure you want to delete this Profile?";
|
||||||
this.button2.Click += new System.EventHandler(this.button2_Click);
|
|
||||||
//
|
//
|
||||||
// textBox1
|
// txtProfileName
|
||||||
//
|
//
|
||||||
this.textBox1.Location = new System.Drawing.Point(3, 22);
|
this.txtProfileName.Location = new System.Drawing.Point(6, 33);
|
||||||
this.textBox1.Name = "textBox1";
|
this.txtProfileName.Name = "txtProfileName";
|
||||||
this.textBox1.Size = new System.Drawing.Size(130, 20);
|
this.txtProfileName.Size = new System.Drawing.Size(109, 20);
|
||||||
this.textBox1.TabIndex = 1;
|
this.txtProfileName.TabIndex = 1;
|
||||||
this.textBox1.Visible = false;
|
this.txtProfileName.Visible = false;
|
||||||
//
|
//
|
||||||
// LoadGameProfileItem
|
// LoadGameProfileItem
|
||||||
//
|
//
|
||||||
|
@ -165,7 +169,7 @@ private void InitializeComponent()
|
||||||
this.Controls.Add(this.profileName);
|
this.Controls.Add(this.profileName);
|
||||||
this.Controls.Add(this.sidebar);
|
this.Controls.Add(this.sidebar);
|
||||||
this.Name = "LoadGameProfileItem";
|
this.Name = "LoadGameProfileItem";
|
||||||
this.Size = new System.Drawing.Size(347, 82);
|
this.Size = new System.Drawing.Size(495, 134);
|
||||||
this.Paint += new System.Windows.Forms.PaintEventHandler(this.LoadGameProfileItem_Paint);
|
this.Paint += new System.Windows.Forms.PaintEventHandler(this.LoadGameProfileItem_Paint);
|
||||||
this.sidebar.ResumeLayout(false);
|
this.sidebar.ResumeLayout(false);
|
||||||
this.pnlConfirm.ResumeLayout(false);
|
this.pnlConfirm.ResumeLayout(false);
|
||||||
|
@ -182,9 +186,9 @@ private void InitializeComponent()
|
||||||
private System.Windows.Forms.Button exampleNameBtn;
|
private System.Windows.Forms.Button exampleNameBtn;
|
||||||
private System.Windows.Forms.Label profileName;
|
private System.Windows.Forms.Label profileName;
|
||||||
private System.Windows.Forms.Panel pnlConfirm;
|
private System.Windows.Forms.Panel pnlConfirm;
|
||||||
private System.Windows.Forms.Label label1;
|
private System.Windows.Forms.Label lblProfile;
|
||||||
private System.Windows.Forms.Button button2;
|
private System.Windows.Forms.Button btnNo;
|
||||||
private System.Windows.Forms.Button button1;
|
private System.Windows.Forms.Button btnYes;
|
||||||
private System.Windows.Forms.TextBox textBox1;
|
private System.Windows.Forms.TextBox txtProfileName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,11 +39,12 @@ public bool PreFilterMessage(ref Message m)
|
||||||
sidebar.Hide();
|
sidebar.Hide();
|
||||||
if (!OnceRemoveHeight)
|
if (!OnceRemoveHeight)
|
||||||
{
|
{
|
||||||
this.Height -= 28;
|
profileName.Padding = new Padding(44, 44, 44, 44);
|
||||||
OnceRemoveHeight = true;
|
OnceRemoveHeight = true;
|
||||||
profileName.BackColor = Color.Gray;
|
profileName.BackColor = Color.FromArgb(255, 51, 153, 255);
|
||||||
sidebar.BackColor = Color.Gray;
|
sidebar.BackColor = Color.FromArgb(255, 51, 153, 255);
|
||||||
pnlConfirm.BackColor = Color.Gray;
|
pnlConfirm.BackColor = Color.FromArgb(255, 51, 153, 255);
|
||||||
|
pnlConfirm.Hide();
|
||||||
}
|
}
|
||||||
OnceAddHeight = false;
|
OnceAddHeight = false;
|
||||||
} else
|
} else
|
||||||
|
@ -51,11 +52,11 @@ public bool PreFilterMessage(ref Message m)
|
||||||
sidebar.Show();
|
sidebar.Show();
|
||||||
if (!OnceAddHeight)
|
if (!OnceAddHeight)
|
||||||
{
|
{
|
||||||
this.Height += 28;
|
profileName.Padding = new Padding(3, 3, 3, 3);
|
||||||
OnceAddHeight = true;
|
OnceAddHeight = true;
|
||||||
profileName.BackColor = Color.LightGray;
|
profileName.BackColor = Color.FromArgb(255, 89, 172, 255);
|
||||||
sidebar.BackColor = Color.LightGray;
|
sidebar.BackColor = Color.FromArgb(255, 89, 172, 255);
|
||||||
pnlConfirm.BackColor = Color.LightGray;
|
pnlConfirm.BackColor = Color.FromArgb(255, 89, 172, 255);
|
||||||
}
|
}
|
||||||
OnceRemoveHeight = false;
|
OnceRemoveHeight = false;
|
||||||
}
|
}
|
||||||
|
@ -97,26 +98,26 @@ private void button2_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (!RequestingNewName)
|
if (!RequestingNewName)
|
||||||
{
|
{
|
||||||
if (textBox1.Text == "")
|
if (txtProfileName.Text == "")
|
||||||
{
|
{
|
||||||
MessageBox.Show("New profile name cannot be empty!");
|
MessageBox.Show("New profile name cannot be empty!");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (textBox1.Text.Length > 20)
|
if (txtProfileName.Text.Length > 20)
|
||||||
{
|
{
|
||||||
MessageBox.Show("The profile name cannot be longer than 20 characters");
|
MessageBox.Show("The profile name cannot be longer than 20 characters");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (Directory.Exists(Path.Combine(AllProfilesDirectory, textBox1.Text)))
|
if (Directory.Exists(Path.Combine(AllProfilesDirectory, txtProfileName.Text)))
|
||||||
{
|
{
|
||||||
MessageBox.Show("That profile already exists");
|
MessageBox.Show("That profile already exists");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Directory.Move(Path.Combine(AllProfilesDirectory, this.Tag.ToString()), Path.Combine(AllProfilesDirectory, textBox1.Text));
|
Directory.Move(Path.Combine(AllProfilesDirectory, this.Tag.ToString()), Path.Combine(AllProfilesDirectory, txtProfileName.Text));
|
||||||
this.Tag = textBox1.Text;
|
this.Tag = txtProfileName.Text;
|
||||||
this.Invalidate();
|
this.Invalidate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -131,20 +132,20 @@ private void button2_Click(object sender, EventArgs e)
|
||||||
|
|
||||||
private void exampleDelete_Click(object sender, EventArgs e)
|
private void exampleDelete_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
label1.Text = "Are you really sure you want to delete this Profile?";
|
lblProfile.Text = "Are you really sure you want to delete this profile?";
|
||||||
button1.Show();
|
btnYes.Show();
|
||||||
textBox1.Hide();
|
txtProfileName.Hide();
|
||||||
button2.Text = "No";
|
btnNo.Text = "No";
|
||||||
RequestingNewName = false;
|
RequestingNewName = false;
|
||||||
pnlConfirm.Show();
|
pnlConfirm.Show();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void exampleNameBtn_Click(object sender, EventArgs e)
|
private void exampleNameBtn_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
label1.Text = "Enter a new profile name: ";
|
lblProfile.Text = "Enter a new profile name: ";
|
||||||
button1.Hide();
|
btnYes.Hide();
|
||||||
textBox1.Show();
|
txtProfileName.Show();
|
||||||
button2.Text = "OK";
|
btnNo.Text = "OK";
|
||||||
RequestingNewName = true;
|
RequestingNewName = true;
|
||||||
pnlConfirm.Show();
|
pnlConfirm.Show();
|
||||||
}
|
}
|
||||||
|
|
6
Histacom2/SeizureWarning.Designer.cs
generated
6
Histacom2/SeizureWarning.Designer.cs
generated
|
@ -41,7 +41,7 @@ private void InitializeComponent()
|
||||||
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
|
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
|
||||||
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
|
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
|
||||||
this.pictureBox1.Name = "pictureBox1";
|
this.pictureBox1.Name = "pictureBox1";
|
||||||
this.pictureBox1.Size = new System.Drawing.Size(600, 331);
|
this.pictureBox1.Size = new System.Drawing.Size(600, 316);
|
||||||
this.pictureBox1.TabIndex = 0;
|
this.pictureBox1.TabIndex = 0;
|
||||||
this.pictureBox1.TabStop = false;
|
this.pictureBox1.TabStop = false;
|
||||||
//
|
//
|
||||||
|
@ -51,7 +51,7 @@ private void InitializeComponent()
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.button1.ForeColor = System.Drawing.Color.White;
|
this.button1.ForeColor = System.Drawing.Color.White;
|
||||||
this.button1.Location = new System.Drawing.Point(261, 275);
|
this.button1.Location = new System.Drawing.Point(261, 265);
|
||||||
this.button1.Name = "button1";
|
this.button1.Name = "button1";
|
||||||
this.button1.Size = new System.Drawing.Size(75, 23);
|
this.button1.Size = new System.Drawing.Size(75, 23);
|
||||||
this.button1.TabIndex = 1;
|
this.button1.TabIndex = 1;
|
||||||
|
@ -67,7 +67,7 @@ private void InitializeComponent()
|
||||||
this.Controls.Add(this.button1);
|
this.Controls.Add(this.button1);
|
||||||
this.Controls.Add(this.pictureBox1);
|
this.Controls.Add(this.pictureBox1);
|
||||||
this.Name = "SeizureWarning";
|
this.Name = "SeizureWarning";
|
||||||
this.Size = new System.Drawing.Size(600, 330);
|
this.Size = new System.Drawing.Size(600, 310);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@ public partial class TitleScreen : Form
|
||||||
public static Windows95 frm95;
|
public static Windows95 frm95;
|
||||||
public static Windows98 frm98;
|
public static Windows98 frm98;
|
||||||
public static WindowsXPBad frmBadXP;
|
public static WindowsXPBad frmBadXP;
|
||||||
|
public static string gameVersion = "Version 2.0.3-dev";
|
||||||
public static string username;
|
public static string username;
|
||||||
public static string progress = "95";
|
public static string progress = "95";
|
||||||
|
|
||||||
|
@ -132,7 +133,7 @@ private void TitleScreen_Load(object sender, EventArgs e)
|
||||||
Resources.google.Save(Path.Combine(DataDirectory, "google.jpg"));
|
Resources.google.Save(Path.Combine(DataDirectory, "google.jpg"));
|
||||||
|
|
||||||
// Set GameVersion
|
// Set GameVersion
|
||||||
gameversion.Text = "Version 2.0.1";
|
gameversion.Text = gameVersion;
|
||||||
|
|
||||||
// Initialize Font
|
// Initialize Font
|
||||||
File.WriteAllBytes(DataDirectory + "\\LeviWindows.ttf", Resources.LeviWindows);
|
File.WriteAllBytes(DataDirectory + "\\LeviWindows.ttf", Resources.LeviWindows);
|
||||||
|
@ -223,7 +224,7 @@ private void gameversion_MouseHover(object sender, EventArgs e)
|
||||||
|
|
||||||
private void gameversion_MouseLeave(object sender, EventArgs e)
|
private void gameversion_MouseLeave(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
gameversion.Text = "Version 2.0.1";
|
gameversion.Text = gameVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void startbutton_Click(object sender, EventArgs e)
|
private void startbutton_Click(object sender, EventArgs e)
|
||||||
|
@ -246,9 +247,9 @@ private void closebutton_Click_1(object sender, EventArgs e)
|
||||||
|
|
||||||
private void updateText_Tick(object sender, EventArgs e)
|
private void updateText_Tick(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (gameversion.Text != "Version 2.0.1")
|
if (gameversion.Text != gameVersion)
|
||||||
{
|
{
|
||||||
gameversion.Text = "Version 2.0.1";
|
gameversion.Text = gameVersion;
|
||||||
updateText.Stop();
|
updateText.Stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue