Make achievements screen resize properly, make load screen look much better, other small adjustments

This commit is contained in:
Michael Webb 2019-04-03 21:26:02 -05:00
parent 5b22de799a
commit cc322eeb8e
9 changed files with 1695 additions and 1775 deletions

View file

@ -29,12 +29,12 @@ protected override void Dispose(bool disposing)
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem("??? Ending", 1);
System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem("??? Ending", "WinClassicEndingsLocked.png");
System.Windows.Forms.ListViewItem listViewItem6 = new System.Windows.Forms.ListViewItem("??? Ending", 1);
System.Windows.Forms.ListViewItem listViewItem7 = new System.Windows.Forms.ListViewItem("??? Ending", "WinClassicEndingsLocked.png");
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 listViewItem4 = 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 listViewItem1 = new System.Windows.Forms.ListViewItem("Mines Swept Away", 1);
System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem("Time Hacked", "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.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.button1 = new System.Windows.Forms.Button();
@ -45,18 +45,22 @@ private void InitializeComponent()
//
// 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.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.listView1.ForeColor = System.Drawing.Color.Black;
listViewItem1.Tag = "piracy";
listViewItem6.Tag = "piracy";
this.listView1.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
listViewItem1,
listViewItem2});
listViewItem6,
listViewItem7});
this.listView1.LargeImageList = this.imageList1;
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.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.TileSize = new System.Drawing.Size(150, 36);
this.listView1.UseCompatibleStateImageBehavior = false;
@ -71,6 +75,7 @@ private void InitializeComponent()
//
// 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.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
@ -90,23 +95,26 @@ private void InitializeComponent()
//
// 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.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.listView2.ForeColor = System.Drawing.Color.Black;
listViewItem3.Tag = "mines";
listViewItem3.ToolTipText = "Complete Minesweeper\'s Hard Mode";
listViewItem4.ToolTipText = "Complete All Endings";
listViewItem5.ToolTipText = "Get the only good ending in \"Survive The Day\".";
listViewItem1.Tag = "mines";
listViewItem1.ToolTipText = "Complete Minesweeper\'s Hard Mode";
listViewItem2.ToolTipText = "Complete All Endings";
listViewItem8.ToolTipText = "Get the only good ending in \"Survive The Day\".";
this.listView2.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
listViewItem3,
listViewItem4,
listViewItem5});
listViewItem1,
listViewItem2,
listViewItem8});
this.listView2.LargeImageList = this.imageList1;
this.listView2.Location = new System.Drawing.Point(174, 24);
this.listView2.MultiSelect = false;
this.listView2.Name = "listView2";
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.TileSize = new System.Drawing.Size(150, 36);
this.listView2.UseCompatibleStateImageBehavior = false;
@ -126,13 +134,14 @@ private void InitializeComponent()
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(343, 261);
this.ClientSize = new System.Drawing.Size(379, 261);
this.Controls.Add(this.label2);
this.Controls.Add(this.listView2);
this.Controls.Add(this.label1);
this.Controls.Add(this.button1);
this.Controls.Add(this.listView1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MinimumSize = new System.Drawing.Size(395, 300);
this.Name = "AchievementScreen";
this.Text = "Achievements";
this.Load += new System.EventHandler(this.AchievementScreen_Load);

File diff suppressed because it is too large Load diff

View file

@ -9,9 +9,9 @@
[assembly: AssemblyTitle("Histacom2")]
[assembly: AssemblyDescription("Revival of the original hacking simulator!")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Histacom2Devs")]
[assembly: AssemblyCompany("Michael Webb")]
[assembly: AssemblyProduct("Histacom2")]
[assembly: AssemblyCopyright("Copyright © Histacom2Devs 2017")]
[assembly: AssemblyCopyright("Copyright © Michael Webb and contributors, 2019.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@ -33,7 +33,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.1")]
[assembly: AssemblyFileVersion("2.0.1")]
[assembly: AssemblyVersion("2.0.2")]
[assembly: AssemblyFileVersion("2.0.2")]
[assembly: NeutralResourcesLanguage("en-US")]

View file

@ -73,6 +73,7 @@ private void InitializeComponent()
this.Profiles.AutoScroll = true;
this.Profiles.Dock = System.Windows.Forms.DockStyle.Fill;
this.Profiles.Location = new System.Drawing.Point(0, 0);
this.Profiles.Margin = new System.Windows.Forms.Padding(0);
this.Profiles.Name = "Profiles";
this.Profiles.Size = new System.Drawing.Size(516, 340);
this.Profiles.TabIndex = 2;

View file

@ -39,7 +39,7 @@ private void button1_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)
@ -50,6 +50,7 @@ private void LoadGameDialog_Load(object sender, EventArgs e)
newItem.Tag = Path.GetFileName(dir);
newItem.Dock = DockStyle.Top;
Profiles.Controls.Add(newItem);
newItem.BorderStyle = BorderStyle.Fixed3D;
newItem.Show();
}
}

View file

@ -34,128 +34,132 @@ private void InitializeComponent()
this.exampleNameBtn = new System.Windows.Forms.Button();
this.profileName = new System.Windows.Forms.Label();
this.pnlConfirm = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.textBox1 = new System.Windows.Forms.TextBox();
this.btnNo = new System.Windows.Forms.Button();
this.btnYes = new System.Windows.Forms.Button();
this.lblProfile = new System.Windows.Forms.Label();
this.txtProfileName = new System.Windows.Forms.TextBox();
this.sidebar.SuspendLayout();
this.pnlConfirm.SuspendLayout();
this.SuspendLayout();
//
// 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.exampleDelete);
this.sidebar.Controls.Add(this.exampleNameBtn);
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.Size = new System.Drawing.Size(102, 82);
this.sidebar.Size = new System.Drawing.Size(129, 134);
this.sidebar.TabIndex = 2;
this.sidebar.Visible = false;
//
// exampleLoadProfile
//
this.exampleLoadProfile.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.exampleLoadProfile.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.exampleLoadProfile.Location = new System.Drawing.Point(3, 1);
this.exampleLoadProfile.BackColor = System.Drawing.Color.Silver;
this.exampleLoadProfile.FlatAppearance.BorderSize = 0;
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.Size = new System.Drawing.Size(94, 23);
this.exampleLoadProfile.Size = new System.Drawing.Size(122, 38);
this.exampleLoadProfile.TabIndex = 0;
this.exampleLoadProfile.Text = "Load Profile!";
this.exampleLoadProfile.UseVisualStyleBackColor = false;
this.exampleLoadProfile.UseVisualStyleBackColor = true;
this.exampleLoadProfile.Click += new System.EventHandler(this.exampleLoadProfile_Click);
//
// exampleDelete
//
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.Location = new System.Drawing.Point(3, 54);
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(4, 93);
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.Text = "Delete";
this.exampleDelete.UseVisualStyleBackColor = false;
this.exampleDelete.UseVisualStyleBackColor = true;
this.exampleDelete.Click += new System.EventHandler(this.exampleDelete_Click);
//
// exampleNameBtn
//
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.Location = new System.Drawing.Point(3, 27);
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(4, 49);
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.Text = "Change Name";
this.exampleNameBtn.UseVisualStyleBackColor = false;
this.exampleNameBtn.UseVisualStyleBackColor = true;
this.exampleNameBtn.Click += new System.EventHandler(this.exampleNameBtn_Click);
//
// 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.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.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.Text = "Profile Name";
//
// pnlConfirm
//
this.pnlConfirm.BackColor = System.Drawing.Color.Gray;
this.pnlConfirm.Controls.Add(this.button2);
this.pnlConfirm.Controls.Add(this.button1);
this.pnlConfirm.Controls.Add(this.label1);
this.pnlConfirm.Controls.Add(this.textBox1);
this.pnlConfirm.BackColor = System.Drawing.SystemColors.MenuHighlight;
this.pnlConfirm.Controls.Add(this.btnNo);
this.pnlConfirm.Controls.Add(this.btnYes);
this.pnlConfirm.Controls.Add(this.lblProfile);
this.pnlConfirm.Controls.Add(this.txtProfileName);
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.Size = new System.Drawing.Size(245, 50);
this.pnlConfirm.Size = new System.Drawing.Size(366, 65);
this.pnlConfirm.TabIndex = 1;
this.pnlConfirm.Visible = false;
//
// label1
// btnNo
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(3, 5);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(240, 13);
this.label1.TabIndex = 1;
this.label1.Text = "Are you really sure you want to delete this Profile?";
this.btnNo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
this.btnNo.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnNo.Location = new System.Drawing.Point(121, 29);
this.btnNo.Name = "btnNo";
this.btnNo.Size = new System.Drawing.Size(109, 29);
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.button1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.button1.Location = new System.Drawing.Point(10, 20);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(109, 22);
this.button1.TabIndex = 1;
this.button1.Text = "Yes";
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new System.EventHandler(this.button1_Click);
this.btnYes.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
this.btnYes.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnYes.Location = new System.Drawing.Point(7, 29);
this.btnYes.Name = "btnYes";
this.btnYes.Size = new System.Drawing.Size(109, 29);
this.btnYes.TabIndex = 1;
this.btnYes.Text = "Yes";
this.btnYes.UseVisualStyleBackColor = true;
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.button2.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.button2.Location = new System.Drawing.Point(136, 20);
this.button2.Name = "cancelButton";
this.button2.Size = new System.Drawing.Size(109, 23);
this.button2.TabIndex = 1;
this.button2.Text = "No";
this.button2.UseVisualStyleBackColor = false;
this.button2.Click += new System.EventHandler(this.button2_Click);
this.lblProfile.AutoSize = true;
this.lblProfile.BackColor = System.Drawing.Color.Transparent;
this.lblProfile.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblProfile.Location = new System.Drawing.Point(3, 5);
this.lblProfile.Name = "lblProfile";
this.lblProfile.Size = new System.Drawing.Size(357, 21);
this.lblProfile.TabIndex = 1;
this.lblProfile.Text = "Are you really sure you want to delete this Profile?";
//
// textBox1
// txtProfileName
//
this.textBox1.Location = new System.Drawing.Point(3, 22);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(130, 20);
this.textBox1.TabIndex = 1;
this.textBox1.Visible = false;
this.txtProfileName.Location = new System.Drawing.Point(6, 33);
this.txtProfileName.Name = "txtProfileName";
this.txtProfileName.Size = new System.Drawing.Size(109, 20);
this.txtProfileName.TabIndex = 1;
this.txtProfileName.Visible = false;
//
// LoadGameProfileItem
//
@ -165,7 +169,7 @@ private void InitializeComponent()
this.Controls.Add(this.profileName);
this.Controls.Add(this.sidebar);
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.sidebar.ResumeLayout(false);
this.pnlConfirm.ResumeLayout(false);
@ -182,9 +186,9 @@ private void InitializeComponent()
private System.Windows.Forms.Button exampleNameBtn;
private System.Windows.Forms.Label profileName;
private System.Windows.Forms.Panel pnlConfirm;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label lblProfile;
private System.Windows.Forms.Button btnNo;
private System.Windows.Forms.Button btnYes;
private System.Windows.Forms.TextBox txtProfileName;
}
}

View file

@ -39,11 +39,12 @@ public bool PreFilterMessage(ref Message m)
sidebar.Hide();
if (!OnceRemoveHeight)
{
this.Height -= 28;
profileName.Padding = new Padding(44, 44, 44, 44);
OnceRemoveHeight = true;
profileName.BackColor = Color.Gray;
sidebar.BackColor = Color.Gray;
pnlConfirm.BackColor = Color.Gray;
profileName.BackColor = Color.FromArgb(255, 51, 153, 255);
sidebar.BackColor = Color.FromArgb(255, 51, 153, 255);
pnlConfirm.BackColor = Color.FromArgb(255, 51, 153, 255);
pnlConfirm.Hide();
}
OnceAddHeight = false;
} else
@ -51,11 +52,11 @@ public bool PreFilterMessage(ref Message m)
sidebar.Show();
if (!OnceAddHeight)
{
this.Height += 28;
profileName.Padding = new Padding(3, 3, 3, 3);
OnceAddHeight = true;
profileName.BackColor = Color.LightGray;
sidebar.BackColor = Color.LightGray;
pnlConfirm.BackColor = Color.LightGray;
profileName.BackColor = Color.FromArgb(255, 89, 172, 255);
sidebar.BackColor = Color.FromArgb(255, 89, 172, 255);
pnlConfirm.BackColor = Color.FromArgb(255, 89, 172, 255);
}
OnceRemoveHeight = false;
}
@ -97,26 +98,26 @@ private void button2_Click(object sender, EventArgs e)
{
if (!RequestingNewName)
{
if (textBox1.Text == "")
if (txtProfileName.Text == "")
{
MessageBox.Show("New profile name cannot be empty!");
}
else
{
if (textBox1.Text.Length > 20)
if (txtProfileName.Text.Length > 20)
{
MessageBox.Show("The profile name cannot be longer than 20 characters");
}
else
{
if (Directory.Exists(Path.Combine(AllProfilesDirectory, textBox1.Text)))
if (Directory.Exists(Path.Combine(AllProfilesDirectory, txtProfileName.Text)))
{
MessageBox.Show("That profile already exists");
}
else
{
Directory.Move(Path.Combine(AllProfilesDirectory, this.Tag.ToString()), Path.Combine(AllProfilesDirectory, textBox1.Text));
this.Tag = textBox1.Text;
Directory.Move(Path.Combine(AllProfilesDirectory, this.Tag.ToString()), Path.Combine(AllProfilesDirectory, txtProfileName.Text));
this.Tag = txtProfileName.Text;
this.Invalidate();
}
}
@ -131,20 +132,20 @@ private void button2_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?";
button1.Show();
textBox1.Hide();
button2.Text = "No";
lblProfile.Text = "Are you really sure you want to delete this profile?";
btnYes.Show();
txtProfileName.Hide();
btnNo.Text = "No";
RequestingNewName = false;
pnlConfirm.Show();
}
private void exampleNameBtn_Click(object sender, EventArgs e)
{
label1.Text = "Enter a new profile name: ";
button1.Hide();
textBox1.Show();
button2.Text = "OK";
lblProfile.Text = "Enter a new profile name: ";
btnYes.Hide();
txtProfileName.Show();
btnNo.Text = "OK";
RequestingNewName = true;
pnlConfirm.Show();
}

View file

@ -41,7 +41,7 @@ private void InitializeComponent()
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(600, 331);
this.pictureBox1.Size = new System.Drawing.Size(600, 316);
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
@ -51,7 +51,7 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Right)));
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.ForeColor = System.Drawing.Color.White;
this.button1.Location = new System.Drawing.Point(261, 275);
this.button1.Location = new System.Drawing.Point(261, 265);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 1;
@ -67,7 +67,7 @@ private void InitializeComponent()
this.Controls.Add(this.button1);
this.Controls.Add(this.pictureBox1);
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();
this.ResumeLayout(false);

View file

@ -22,6 +22,7 @@ public partial class TitleScreen : Form
public static Windows95 frm95;
public static Windows98 frm98;
public static WindowsXPBad frmBadXP;
public static string gameVersion = "Version 2.0.3-dev";
public static string username;
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"));
// Set GameVersion
gameversion.Text = "Version 2.0.1";
gameversion.Text = gameVersion;
// Initialize Font
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)
{
gameversion.Text = "Version 2.0.1";
gameversion.Text = gameVersion;
}
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)
{
if (gameversion.Text != "Version 2.0.1")
if (gameversion.Text != gameVersion)
{
gameversion.Text = "Version 2.0.1";
gameversion.Text = gameVersion;
updateText.Stop();
}
}