diff --git a/downloadGUI.Designer.cs b/downloadGUI.Designer.cs
index 14303e60..7ca00f0f 100644
--- a/downloadGUI.Designer.cs
+++ b/downloadGUI.Designer.cs
@@ -29,247 +29,269 @@ namespace DepotDownloaderGUI
///
private void InitializeComponent()
{
- this.components = new System.ComponentModel.Container();
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(downloadGUI));
- this.label1 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.label3 = new System.Windows.Forms.Label();
- this.label4 = new System.Windows.Forms.Label();
- this.label5 = new System.Windows.Forms.Label();
- this.label6 = new System.Windows.Forms.Label();
- this.label7 = new System.Windows.Forms.Label();
- this.label8 = new System.Windows.Forms.Label();
- this.textBox1 = new System.Windows.Forms.TextBox();
- this.textBox2 = new System.Windows.Forms.TextBox();
- this.textBox3 = new System.Windows.Forms.TextBox();
- this.textBox4 = new System.Windows.Forms.TextBox();
- this.textBox5 = new System.Windows.Forms.TextBox();
- this.textBox8 = new System.Windows.Forms.TextBox();
- this.button1 = new System.Windows.Forms.Button();
- this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
- this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
- this.button2 = new System.Windows.Forms.Button();
- this.button3 = new System.Windows.Forms.Button();
- this.button4 = new System.Windows.Forms.Button();
- this.label9 = new System.Windows.Forms.Label();
- this.label10 = new System.Windows.Forms.Label();
- this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
- ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
- this.SuspendLayout();
- //
- // label1
- //
- resources.ApplyResources(this.label1, "label1");
- this.label1.Name = "label1";
- this.toolTip1.SetToolTip(this.label1, resources.GetString("label1.ToolTip"));
- //
- // label2
- //
- resources.ApplyResources(this.label2, "label2");
- this.label2.Name = "label2";
- this.toolTip1.SetToolTip(this.label2, resources.GetString("label2.ToolTip"));
- //
- // label3
- //
- resources.ApplyResources(this.label3, "label3");
- this.label3.Name = "label3";
- this.toolTip1.SetToolTip(this.label3, resources.GetString("label3.ToolTip"));
- //
- // label4
- //
- resources.ApplyResources(this.label4, "label4");
- this.label4.Name = "label4";
- this.toolTip1.SetToolTip(this.label4, resources.GetString("label4.ToolTip"));
- //
- // label5
- //
- resources.ApplyResources(this.label5, "label5");
- this.label5.Name = "label5";
- this.toolTip1.SetToolTip(this.label5, resources.GetString("label5.ToolTip"));
- //
- // label6
- //
- resources.ApplyResources(this.label6, "label6");
- this.label6.Name = "label6";
- this.toolTip1.SetToolTip(this.label6, resources.GetString("label6.ToolTip"));
- //
- // label7
- //
- resources.ApplyResources(this.label7, "label7");
- this.label7.Name = "label7";
- this.toolTip1.SetToolTip(this.label7, resources.GetString("label7.ToolTip"));
- //
- // label8
- //
- resources.ApplyResources(this.label8, "label8");
- this.label8.Name = "label8";
- this.toolTip1.SetToolTip(this.label8, resources.GetString("label8.ToolTip"));
- //
- // textBox1
- //
- resources.ApplyResources(this.textBox1, "textBox1");
- this.textBox1.Name = "textBox1";
- //
- // textBox2
- //
- resources.ApplyResources(this.textBox2, "textBox2");
- this.textBox2.Name = "textBox2";
- //
- // textBox3
- //
- resources.ApplyResources(this.textBox3, "textBox3");
- this.textBox3.Name = "textBox3";
- //
- // textBox4
- //
- resources.ApplyResources(this.textBox4, "textBox4");
- this.textBox4.Name = "textBox4";
- //
- // textBox5
- //
- resources.ApplyResources(this.textBox5, "textBox5");
- this.textBox5.Name = "textBox5";
- //
- // textBox8
- //
- resources.ApplyResources(this.textBox8, "textBox8");
- this.textBox8.Name = "textBox8";
- //
- // button1
- //
- resources.ApplyResources(this.button1, "button1");
- this.button1.Name = "button1";
- this.toolTip1.SetToolTip(this.button1, resources.GetString("button1.ToolTip"));
- this.button1.UseVisualStyleBackColor = true;
- this.button1.Click += new System.EventHandler(this.button1_Click);
- //
- // numericUpDown1
- //
- resources.ApplyResources(this.numericUpDown1, "numericUpDown1");
- this.numericUpDown1.Increment = new decimal(new int[] {
+ this.components = new System.ComponentModel.Container();
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(downloadGUI));
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.textBoxUsername = new System.Windows.Forms.TextBox();
+ this.textBoxPassword = new System.Windows.Forms.TextBox();
+ this.textBoxAppID = new System.Windows.Forms.TextBox();
+ this.textBoxDepotID = new System.Windows.Forms.TextBox();
+ this.textBoxManifestID = new System.Windows.Forms.TextBox();
+ this.textBoxArgs = new System.Windows.Forms.TextBox();
+ this.buttonDownload = new System.Windows.Forms.Button();
+ this.numericUpDownMaxServers = new System.Windows.Forms.NumericUpDown();
+ this.numericUpDownMaxChunks = new System.Windows.Forms.NumericUpDown();
+ this.buttonHelp = new System.Windows.Forms.Button();
+ this.buttonSearch = new System.Windows.Forms.Button();
+ this.buttonRepo = new System.Windows.Forms.Button();
+ this.labelTitle = new System.Windows.Forms.Label();
+ this.labelIssue = new System.Windows.Forms.Label();
+ this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
+ ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMaxServers)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMaxChunks)).BeginInit();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ resources.ApplyResources(this.label1, "label1");
+ this.label1.Name = "label1";
+ this.toolTip1.SetToolTip(this.label1, resources.GetString("label1.ToolTip"));
+ //
+ // label2
+ //
+ resources.ApplyResources(this.label2, "label2");
+ this.label2.Name = "label2";
+ this.toolTip1.SetToolTip(this.label2, resources.GetString("label2.ToolTip"));
+ //
+ // label3
+ //
+ resources.ApplyResources(this.label3, "label3");
+ this.label3.Name = "label3";
+ this.toolTip1.SetToolTip(this.label3, resources.GetString("label3.ToolTip"));
+ //
+ // label4
+ //
+ resources.ApplyResources(this.label4, "label4");
+ this.label4.Name = "label4";
+ this.toolTip1.SetToolTip(this.label4, resources.GetString("label4.ToolTip"));
+ //
+ // label5
+ //
+ resources.ApplyResources(this.label5, "label5");
+ this.label5.Name = "label5";
+ this.toolTip1.SetToolTip(this.label5, resources.GetString("label5.ToolTip"));
+ //
+ // label6
+ //
+ resources.ApplyResources(this.label6, "label6");
+ this.label6.Name = "label6";
+ this.toolTip1.SetToolTip(this.label6, resources.GetString("label6.ToolTip"));
+ //
+ // label7
+ //
+ resources.ApplyResources(this.label7, "label7");
+ this.label7.Name = "label7";
+ this.toolTip1.SetToolTip(this.label7, resources.GetString("label7.ToolTip"));
+ //
+ // label8
+ //
+ resources.ApplyResources(this.label8, "label8");
+ this.label8.Name = "label8";
+ this.toolTip1.SetToolTip(this.label8, resources.GetString("label8.ToolTip"));
+ //
+ // textBoxUsername
+ //
+ resources.ApplyResources(this.textBoxUsername, "textBoxUsername");
+ this.textBoxUsername.BackColor = System.Drawing.Color.Black;
+ this.textBoxUsername.ForeColor = System.Drawing.Color.White;
+ this.textBoxUsername.Name = "textBoxUsername";
+ //
+ // textBoxPassword
+ //
+ resources.ApplyResources(this.textBoxPassword, "textBoxPassword");
+ this.textBoxPassword.BackColor = System.Drawing.Color.Black;
+ this.textBoxPassword.ForeColor = System.Drawing.Color.White;
+ this.textBoxPassword.Name = "textBoxPassword";
+ //
+ // textBoxAppID
+ //
+ resources.ApplyResources(this.textBoxAppID, "textBoxAppID");
+ this.textBoxAppID.BackColor = System.Drawing.Color.Black;
+ this.textBoxAppID.ForeColor = System.Drawing.Color.White;
+ this.textBoxAppID.Name = "textBoxAppID";
+ //
+ // textBoxDepotID
+ //
+ resources.ApplyResources(this.textBoxDepotID, "textBoxDepotID");
+ this.textBoxDepotID.BackColor = System.Drawing.Color.Black;
+ this.textBoxDepotID.ForeColor = System.Drawing.Color.White;
+ this.textBoxDepotID.Name = "textBoxDepotID";
+ //
+ // textBoxManifestID
+ //
+ resources.ApplyResources(this.textBoxManifestID, "textBoxManifestID");
+ this.textBoxManifestID.BackColor = System.Drawing.Color.Black;
+ this.textBoxManifestID.ForeColor = System.Drawing.Color.White;
+ this.textBoxManifestID.Name = "textBoxManifestID";
+ //
+ // textBoxArgs
+ //
+ resources.ApplyResources(this.textBoxArgs, "textBoxArgs");
+ this.textBoxArgs.BackColor = System.Drawing.Color.Black;
+ this.textBoxArgs.ForeColor = System.Drawing.Color.White;
+ this.textBoxArgs.Name = "textBoxArgs";
+ //
+ // buttonDownload
+ //
+ resources.ApplyResources(this.buttonDownload, "buttonDownload");
+ this.buttonDownload.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.buttonDownload.Name = "buttonDownload";
+ this.toolTip1.SetToolTip(this.buttonDownload, resources.GetString("buttonDownload.ToolTip"));
+ this.buttonDownload.UseVisualStyleBackColor = true;
+ this.buttonDownload.Click += new System.EventHandler(this.buttonDownload_Click);
+ //
+ // numericUpDownMaxServers
+ //
+ resources.ApplyResources(this.numericUpDownMaxServers, "numericUpDownMaxServers");
+ this.numericUpDownMaxServers.BackColor = System.Drawing.Color.Black;
+ this.numericUpDownMaxServers.ForeColor = System.Drawing.Color.White;
+ this.numericUpDownMaxServers.Increment = new decimal(new int[] {
5,
0,
0,
0});
- this.numericUpDown1.Maximum = new decimal(new int[] {
+ this.numericUpDownMaxServers.Maximum = new decimal(new int[] {
1000,
0,
0,
0});
- this.numericUpDown1.Minimum = new decimal(new int[] {
+ this.numericUpDownMaxServers.Minimum = new decimal(new int[] {
10,
0,
0,
0});
- this.numericUpDown1.Name = "numericUpDown1";
- this.numericUpDown1.Value = new decimal(new int[] {
+ this.numericUpDownMaxServers.Name = "numericUpDownMaxServers";
+ this.numericUpDownMaxServers.Value = new decimal(new int[] {
10,
0,
0,
0});
- //
- // numericUpDown2
- //
- resources.ApplyResources(this.numericUpDown2, "numericUpDown2");
- this.numericUpDown2.Increment = new decimal(new int[] {
+ //
+ // numericUpDownMaxChunks
+ //
+ resources.ApplyResources(this.numericUpDownMaxChunks, "numericUpDownMaxChunks");
+ this.numericUpDownMaxChunks.BackColor = System.Drawing.Color.Black;
+ this.numericUpDownMaxChunks.ForeColor = System.Drawing.Color.White;
+ this.numericUpDownMaxChunks.Increment = new decimal(new int[] {
5,
0,
0,
0});
- this.numericUpDown2.Maximum = new decimal(new int[] {
+ this.numericUpDownMaxChunks.Maximum = new decimal(new int[] {
1000,
0,
0,
0});
- this.numericUpDown2.Minimum = new decimal(new int[] {
+ this.numericUpDownMaxChunks.Minimum = new decimal(new int[] {
10,
0,
0,
0});
- this.numericUpDown2.Name = "numericUpDown2";
- this.numericUpDown2.Value = new decimal(new int[] {
+ this.numericUpDownMaxChunks.Name = "numericUpDownMaxChunks";
+ this.numericUpDownMaxChunks.Value = new decimal(new int[] {
10,
0,
0,
0});
- //
- // button2
- //
- resources.ApplyResources(this.button2, "button2");
- this.button2.Name = "button2";
- this.button2.UseVisualStyleBackColor = true;
- this.button2.Click += new System.EventHandler(this.button2_Click);
- //
- // button3
- //
- resources.ApplyResources(this.button3, "button3");
- this.button3.Name = "button3";
- this.toolTip1.SetToolTip(this.button3, resources.GetString("button3.ToolTip"));
- this.button3.UseVisualStyleBackColor = true;
- this.button3.Click += new System.EventHandler(this.button3_Click);
- //
- // button4
- //
- resources.ApplyResources(this.button4, "button4");
- this.button4.Name = "button4";
- this.toolTip1.SetToolTip(this.button4, resources.GetString("button4.ToolTip"));
- this.button4.UseVisualStyleBackColor = true;
- this.button4.Click += new System.EventHandler(this.button4_Click);
- //
- // label9
- //
- resources.ApplyResources(this.label9, "label9");
- this.label9.Name = "label9";
- //
- // label10
- //
- resources.ApplyResources(this.label10, "label10");
- this.label10.Name = "label10";
- //
- // toolTip1
- //
- this.toolTip1.AutomaticDelay = 0;
- this.toolTip1.AutoPopDelay = 0;
- this.toolTip1.InitialDelay = 0;
- this.toolTip1.IsBalloon = true;
- this.toolTip1.ReshowDelay = 600;
- this.toolTip1.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info;
- this.toolTip1.ToolTipTitle = "Info";
- //
- // Form1
- //
- resources.ApplyResources(this, "$this");
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.label10);
- this.Controls.Add(this.label9);
- this.Controls.Add(this.button4);
- this.Controls.Add(this.button3);
- this.Controls.Add(this.button2);
- this.Controls.Add(this.numericUpDown2);
- this.Controls.Add(this.numericUpDown1);
- this.Controls.Add(this.button1);
- this.Controls.Add(this.textBox8);
- this.Controls.Add(this.textBox5);
- this.Controls.Add(this.textBox4);
- this.Controls.Add(this.textBox3);
- this.Controls.Add(this.textBox2);
- this.Controls.Add(this.textBox1);
- this.Controls.Add(this.label8);
- this.Controls.Add(this.label7);
- this.Controls.Add(this.label6);
- this.Controls.Add(this.label5);
- this.Controls.Add(this.label4);
- this.Controls.Add(this.label3);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.label1);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
- this.MaximizeBox = false;
- this.Name = "Form1";
- ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
- this.ResumeLayout(false);
- this.PerformLayout();
+ //
+ // buttonHelp
+ //
+ resources.ApplyResources(this.buttonHelp, "buttonHelp");
+ this.buttonHelp.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.buttonHelp.Name = "buttonHelp";
+ this.buttonHelp.UseVisualStyleBackColor = true;
+ this.buttonHelp.Click += new System.EventHandler(this.buttonHelp_Click);
+ //
+ // buttonSearch
+ //
+ resources.ApplyResources(this.buttonSearch, "buttonSearch");
+ this.buttonSearch.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.buttonSearch.Name = "buttonSearch";
+ this.toolTip1.SetToolTip(this.buttonSearch, resources.GetString("buttonSearch.ToolTip"));
+ this.buttonSearch.UseVisualStyleBackColor = true;
+ this.buttonSearch.Click += new System.EventHandler(this.buttonSearch_Click);
+ //
+ // buttonRepo
+ //
+ resources.ApplyResources(this.buttonRepo, "buttonRepo");
+ this.buttonRepo.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.buttonRepo.Name = "buttonRepo";
+ this.toolTip1.SetToolTip(this.buttonRepo, resources.GetString("buttonRepo.ToolTip"));
+ this.buttonRepo.UseVisualStyleBackColor = true;
+ this.buttonRepo.Click += new System.EventHandler(this.buttonRepo_Click);
+ //
+ // labelTitle
+ //
+ resources.ApplyResources(this.labelTitle, "labelTitle");
+ this.labelTitle.Name = "labelTitle";
+ //
+ // labelIssue
+ //
+ resources.ApplyResources(this.labelIssue, "labelIssue");
+ this.labelIssue.Name = "labelIssue";
+ //
+ // toolTip1
+ //
+ this.toolTip1.AutomaticDelay = 0;
+ this.toolTip1.AutoPopDelay = 0;
+ this.toolTip1.InitialDelay = 0;
+ this.toolTip1.IsBalloon = true;
+ this.toolTip1.ReshowDelay = 600;
+ this.toolTip1.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info;
+ this.toolTip1.ToolTipTitle = "Info";
+ //
+ // downloadGUI
+ //
+ resources.ApplyResources(this, "$this");
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.BackColor = System.Drawing.Color.Black;
+ this.Controls.Add(this.labelIssue);
+ this.Controls.Add(this.labelTitle);
+ this.Controls.Add(this.buttonRepo);
+ this.Controls.Add(this.buttonSearch);
+ this.Controls.Add(this.buttonHelp);
+ this.Controls.Add(this.numericUpDownMaxChunks);
+ this.Controls.Add(this.numericUpDownMaxServers);
+ this.Controls.Add(this.buttonDownload);
+ this.Controls.Add(this.textBoxArgs);
+ this.Controls.Add(this.textBoxManifestID);
+ this.Controls.Add(this.textBoxDepotID);
+ this.Controls.Add(this.textBoxAppID);
+ this.Controls.Add(this.textBoxPassword);
+ this.Controls.Add(this.textBoxUsername);
+ this.Controls.Add(this.label8);
+ this.Controls.Add(this.label7);
+ this.Controls.Add(this.label6);
+ this.Controls.Add(this.label5);
+ this.Controls.Add(this.label4);
+ this.Controls.Add(this.label3);
+ this.Controls.Add(this.label2);
+ this.Controls.Add(this.label1);
+ this.ForeColor = System.Drawing.Color.White;
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
+ this.MaximizeBox = false;
+ this.Name = "downloadGUI";
+ ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMaxServers)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMaxChunks)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
}
@@ -283,20 +305,20 @@ namespace DepotDownloaderGUI
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
- private System.Windows.Forms.TextBox textBox1;
- private System.Windows.Forms.TextBox textBox2;
- private System.Windows.Forms.TextBox textBox3;
- private System.Windows.Forms.TextBox textBox4;
- private System.Windows.Forms.TextBox textBox5;
- private System.Windows.Forms.TextBox textBox8;
- private System.Windows.Forms.Button button1;
- private System.Windows.Forms.NumericUpDown numericUpDown1;
- private System.Windows.Forms.NumericUpDown numericUpDown2;
- private System.Windows.Forms.Button button2;
- private System.Windows.Forms.Button button3;
- private System.Windows.Forms.Button button4;
- private System.Windows.Forms.Label label9;
- private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.TextBox textBoxUsername;
+ private System.Windows.Forms.TextBox textBoxPassword;
+ private System.Windows.Forms.TextBox textBoxAppID;
+ private System.Windows.Forms.TextBox textBoxDepotID;
+ private System.Windows.Forms.TextBox textBoxManifestID;
+ private System.Windows.Forms.TextBox textBoxArgs;
+ private System.Windows.Forms.Button buttonDownload;
+ private System.Windows.Forms.NumericUpDown numericUpDownMaxServers;
+ private System.Windows.Forms.NumericUpDown numericUpDownMaxChunks;
+ private System.Windows.Forms.Button buttonHelp;
+ private System.Windows.Forms.Button buttonSearch;
+ private System.Windows.Forms.Button buttonRepo;
+ private System.Windows.Forms.Label labelTitle;
+ private System.Windows.Forms.Label labelIssue;
private System.Windows.Forms.ToolTip toolTip1;
}
}
diff --git a/downloadGUI.cs b/downloadGUI.cs
index 5fa50ba3..b71275d2 100644
--- a/downloadGUI.cs
+++ b/downloadGUI.cs
@@ -1,11 +1,5 @@
using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Drawing.Text;
@@ -50,53 +44,55 @@ namespace DepotDownloaderGUI
System.Runtime.InteropServices.Marshal.FreeCoTaskMem(fontPtr);
Poppins = new Font(fonts.Families[0], 18.0F);
Directory.SetCurrentDirectory("./DepotDownloader/");
- //textBox2.PasswordChar = '*'; -Added into Designer
- label9.Font = Poppins;
- //FormBorderStyle = FormBorderStyle.FixedSingle; -Added into Designer
- //MaximizeBox = false; -Added into Designer
+ labelTitle.Font = Poppins;
}
- private void button1_Click(object sender, EventArgs e)
+ private void buttonDownload_Click(object sender, EventArgs e)
{
- FolderBrowserDialog folderDlg = new FolderBrowserDialog();
- DialogResult result = folderDlg.ShowDialog();
- if (result == DialogResult.OK & result != DialogResult.Cancel)
+ if (string.IsNullOrEmpty(textBoxAppID.Text) || string.IsNullOrEmpty(textBoxDepotID.Text) || string.IsNullOrEmpty(textBoxManifestID.Text))
{
- string selectedpath = folderDlg.SelectedPath;
- if (textBox2.Text.Length <= 0)
- {
- //Todo Remember Password tick
- //Command = $"/k dotnet DepotDownloader.dll -app {textBox3.Text} -depot {textBox4.Text} -manifest {textBox5.Text} -max-servers {numericUpDown1.Value} -max-downloads {numericUpDown2.Value} -dir ../YourGame {textBox8.Text}";
- Command = $"/k dotnet DepotDownloader.dll -app {textBox3.Text} -depot {textBox4.Text} -manifest {textBox5.Text} -max-servers {numericUpDown1.Value} -max-downloads {numericUpDown2.Value} -dir " + '"' + selectedpath + '"' + " " + textBox8.Text;
- }
- else
- {
- Command = $"/k dotnet DepotDownloader.dll -app {textBox3.Text} -depot {textBox4.Text} -manifest {textBox5.Text} -username {textBox1.Text} -password {textBox2.Text} -max-servers {numericUpDown1.Value} -max-downloads {numericUpDown2.Value} -dir " + '"' + selectedpath + '"' + " " + textBox8.Text;
- }
-
- System.Diagnostics.Process.Start("cmd.exe", Command);
+ MessageBox.Show("Please fill all required fields.");
}
else
{
- return;
+ FolderBrowserDialog folderDlg = new FolderBrowserDialog();
+ DialogResult result = folderDlg.ShowDialog();
+ if (result == DialogResult.OK & result != DialogResult.Cancel)
+ {
+ string selectedpath = folderDlg.SelectedPath;
+ if (textBoxPassword.Text.Length <= 0)
+ {
+ //Todo Remember Password tick
+ Command = $"/k dotnet DepotDownloader.dll -app {textBoxAppID.Text} -depot {textBoxDepotID.Text} -manifest {textBoxManifestID.Text} -max-servers {numericUpDownMaxServers.Value} -max-downloads {numericUpDownMaxChunks.Value} -dir " + '"' + selectedpath + '"' + " " + textBoxArgs.Text;
+ }
+ else
+ {
+ Command = $"/k dotnet DepotDownloader.dll -app {textBoxAppID.Text} -depot {textBoxDepotID.Text} -manifest {textBoxManifestID.Text} -username {textBoxUsername.Text} -password {textBoxPassword.Text} -max-servers {numericUpDownMaxServers.Value} -max-downloads {numericUpDownMaxChunks.Value} -dir " + '"' + selectedpath + '"' + " " + textBoxArgs.Text;
+ }
+
+ open("cmd.exe", Command);
+ }
}
}
-
-
- private void button2_Click(object sender, EventArgs e)
+ private void open(string url, string args = "")
{
- System.Diagnostics.Process.Start("https://github.com/mmvanheusden/SteamDepotDownloaderGUI/discussions/5");
+ System.Diagnostics.Process.Start(url, args);
}
- private void button3_Click(object sender, EventArgs e)
+ private void buttonHelp_Click(object sender, EventArgs e)
{
- System.Diagnostics.Process.Start("https://steamdb.info/instantsearch/");
+ open("https://github.com/mmvanheusden/SteamDepotDownloaderGUI/discussions/5");
}
- private void button4_Click(object sender, EventArgs e)
+ private void buttonSearch_Click(object sender, EventArgs e)
{
- System.Diagnostics.Process.Start("https://github.com/mmvanheusden/SteamDepotDownloaderGUI");
+ open("https://steamdb.info/instantsearch/");
+ }
+
+ private void buttonRepo_Click(object sender, EventArgs e)
+ {
+ open("https://github.com/mmvanheusden/SteamDepotDownloaderGUI");
}
}
}
diff --git a/downloadGUI.resx b/downloadGUI.resx
index cc4c6920..a09ab82f 100644
--- a/downloadGUI.resx
+++ b/downloadGUI.resx
@@ -126,7 +126,7 @@
Segoe UI, 12.75pt
- 12, 45
+ 13, 60
87, 23
@@ -162,7 +162,7 @@
Segoe UI, 12.75pt
- 12, 75
+ 13, 96
80, 23
@@ -195,7 +195,7 @@
Segoe UI, 12.75pt
- 12, 105
+ 13, 132
63, 23
@@ -228,7 +228,7 @@
Segoe UI, 12.75pt
- 12, 135
+ 13, 168
79, 23
@@ -262,7 +262,7 @@ SteamDB website at 'Depots' in the sidebar.
Segoe UI, 12.75pt
- 12, 165
+ 13, 204
97, 23
@@ -296,7 +296,7 @@ SteamDB website at 'Manifests' in the sidebar.
Segoe UI, 12.75pt
- 12, 195
+ 13, 239
101, 23
@@ -330,7 +330,7 @@ Speeds up download drastically
Segoe UI, 12.75pt
- 12, 225
+ 13, 275
103, 23
@@ -364,7 +364,7 @@ Speeds up download drastically
Segoe UI, 12.75pt
- 12, 255
+ 13, 312
165, 23
@@ -391,373 +391,431 @@ For advanced users
14
-
+
+
+ Top, Right
+
+
Segoe UI, 12.75pt
-
- 120, 45
+
+ 187, 57
-
- 210, 30
+
+ 180, 30
-
+
1
-
- textBox1
+
+ textBoxUsername
-
+
System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
+
$this
-
+
13
-
+
+ Top, Right
+
+
Segoe UI, 12.75pt
-
- 120, 75
+
+ 187, 93
-
+
*
-
- 210, 30
+
+ 180, 30
-
+
2
-
- textBox2
+
+ textBoxPassword
-
+
System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
+
$this
-
+
12
-
+
+ Top, Right
+
+
Segoe UI, 12.75pt
-
- 120, 105
+
+ 187, 129
-
- 210, 30
+
+ 180, 30
-
+
3
-
- textBox3
+
+ textBoxAppID
-
+
System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
+
$this
-
+
11
-
+
+ Top, Right
+
+
Segoe UI, 12.75pt
-
- 120, 135
+
+ 187, 165
-
- 210, 30
+
+ 180, 30
-
+
4
-
- textBox4
+
+ textBoxDepotID
-
+
System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
+
$this
-
+
10
-
+
+ Top, Right
+
+
Segoe UI, 12.75pt
-
- 120, 165
+
+ 187, 201
-
- 210, 30
+
+ 180, 30
-
+
5
-
- textBox5
+
+ textBoxManifestID
-
+
System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
+
$this
-
+
9
-
+
+ Top, Right
+
+
Segoe UI, 12.75pt
-
- 180, 255
+
+ 187, 309
-
- 150, 30
+
+ 180, 30
-
+
8
-
- textBox8
+
+ textBoxArgs
-
+
System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
+
$this
-
+
8
-
+
+ Bottom, Left, Right
+
+
+ Flat
+
+
Segoe UI Semibold, 9.75pt, style=Bold
-
- 210, 320
+
+ 188, 355
-
- 120, 25
+
+ 179, 57
-
+
11
-
+
Start Download
-
+
Starts the download
-
- button1
+
+ buttonDownload
-
+
System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
+
$this
-
+
7
-
+
+ Top, Right
+
+
Segoe UI, 12.75pt
-
- 120, 195
+
+ 187, 237
-
- 210, 30
+
+ 180, 30
-
+
6
-
- numericUpDown1
+
+ numericUpDownMaxServers
-
+
System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
+
$this
-
+
6
-
+
+ Top, Right
+
+
Segoe UI, 12.75pt
-
- 120, 225
+
+ 187, 273
-
- 210, 30
+
+ 180, 30
-
+
7
-
- numericUpDown2
+
+ numericUpDownMaxChunks
-
+
System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
+
$this
-
+
5
-
+
+ Bottom, Left, Right
+
+
+ Flat
+
+
Segoe UI Semibold, 9.75pt, style=Bold
-
- 210, 290
+
+ 13, 387
-
- 120, 25
+
+ 165, 25
-
+
9
-
+
Need Help?
-
- button2
+
+ buttonHelp
-
+
System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
+
$this
-
+
4
-
+
+ Bottom, Left, Right
+
+
+ Flat
+
+
Segoe UI Semibold, 9.75pt, style=Bold
-
- 12, 290
+
+ NoControl
-
+
+ 13, 355
+
+
165, 25
-
+
8
-
+
SteamDB Instant Search
-
+
Brings you to the SteamDB Instant game search page.
-
- button3
+
+ buttonSearch
-
+
System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
+
$this
-
+
3
-
+
+ Bottom, Left, Right
+
+
+ Flat
+
+
Segoe UI Semibold, 9.75pt, style=Bold
-
- 12, 320
+
+ 13, 418
-
+
165, 25
-
+
10
-
+
GitHub Repo
-
+
Brings you to the GitHub Repository page.
-
- button4
+
+ buttonRepo
-
+
System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
+
$this
-
+
2
-
- True
+
+ Top, Left, Right
-
+
Segoe UI Semibold, 18pt, style=Bold
-
- 7, 0
+
+ 12, 9
-
- 296, 32
+
+ 355, 32
-
+
13
-
+
Steam Depot Downloader
-
- label9
+
+ TopCenter
-
+
+ labelTitle
+
+
System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
+
$this
-
+
1
-
+
+ Bottom, Left, Right
+
+
True
-
- 148, 352
+
+ 186, 425
-
+
182, 13
-
+
14
-
+
If something is broken open an issue!
-
- label10
+
+ labelIssue
-
+
System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
+
$this
-
+
0
@@ -767,7 +825,10 @@ For advanced users
6, 13
- 342, 374
+ 379, 452
+
+
+ CenterScreen
Steam Depot Downloader
@@ -779,7 +840,7 @@ For advanced users
System.Windows.Forms.ToolTip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
- Form1
+ downloadGUI
System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089