diff --git a/.gitignore b/.gitignore index 8cdbcea..a73da84 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,6 @@ ## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons. -jfr/ -bin.7z -jfr.7z + # User-specific files *.suo *.user @@ -162,4 +160,5 @@ $RECYCLE.BIN/ #DreamViewer _notes/ dwsync.xml -src/.vs/ +.vs/* +*/.vs/* diff --git a/src/Properties/Resources.Designer.cs b/src/Properties/Resources.Designer.cs index 96ab9b2..fbffb62 100644 --- a/src/Properties/Resources.Designer.cs +++ b/src/Properties/Resources.Designer.cs @@ -60,6 +60,46 @@ namespace SourceSDK.ENV.Editor.Properties { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap about { + get { + object obj = ResourceManager.GetObject("about", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap arrows { + get { + object obj = ResourceManager.GetObject("arrows", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap cancel { + get { + object obj = ResourceManager.GetObject("cancel", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap check { + get { + object obj = ResourceManager.GetObject("check", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -79,5 +119,55 @@ namespace SourceSDK.ENV.Editor.Properties { return ((System.Drawing.Bitmap)(obj)); } } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap done { + get { + object obj = ResourceManager.GetObject("done", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap power_on { + get { + object obj = ResourceManager.GetObject("power_on", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap refresh16 { + get { + object obj = ResourceManager.GetObject("refresh16", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap remove { + get { + object obj = ResourceManager.GetObject("remove", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap wait { + get { + object obj = ResourceManager.GetObject("wait", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } } } diff --git a/src/Properties/Resources.resx b/src/Properties/Resources.resx index 96af20e..55ae18e 100644 --- a/src/Properties/Resources.resx +++ b/src/Properties/Resources.resx @@ -118,10 +118,37 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\Resources\about.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\arrows.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\cancel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\check.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\crowbar.64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\crowbar512.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\done.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\power-on.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\refresh16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\remove.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\wait.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/src/Resources/about.png b/src/Resources/about.png new file mode 100644 index 0000000..33ad090 Binary files /dev/null and b/src/Resources/about.png differ diff --git a/src/Resources/arrows.png b/src/Resources/arrows.png new file mode 100644 index 0000000..a81f4e3 Binary files /dev/null and b/src/Resources/arrows.png differ diff --git a/src/Resources/cancel.png b/src/Resources/cancel.png new file mode 100644 index 0000000..892924a Binary files /dev/null and b/src/Resources/cancel.png differ diff --git a/src/Resources/check.png b/src/Resources/check.png new file mode 100644 index 0000000..2f3ad1b Binary files /dev/null and b/src/Resources/check.png differ diff --git a/src/Resources/done.png b/src/Resources/done.png new file mode 100644 index 0000000..cd7e7e3 Binary files /dev/null and b/src/Resources/done.png differ diff --git a/src/Resources/power-on.png b/src/Resources/power-on.png new file mode 100644 index 0000000..605900c Binary files /dev/null and b/src/Resources/power-on.png differ diff --git a/src/Resources/refresh16.png b/src/Resources/refresh16.png new file mode 100644 index 0000000..0c135c4 Binary files /dev/null and b/src/Resources/refresh16.png differ diff --git a/src/Resources/remove.png b/src/Resources/remove.png new file mode 100644 index 0000000..b309311 Binary files /dev/null and b/src/Resources/remove.png differ diff --git a/src/Resources/wait.png b/src/Resources/wait.png new file mode 100644 index 0000000..1e14093 Binary files /dev/null and b/src/Resources/wait.png differ diff --git a/src/UI/FormMain.Designer.cs b/src/UI/FormMain.Designer.cs index ffb49dc..50f16a8 100644 --- a/src/UI/FormMain.Designer.cs +++ b/src/UI/FormMain.Designer.cs @@ -28,23 +28,473 @@ /// private void InitializeComponent() { + this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMain)); + this.menuStrip = new System.Windows.Forms.MenuStrip(); + this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.refreshToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.groupBoxVMod = new System.Windows.Forms.GroupBox(); + this.buttonResetVMod = new System.Windows.Forms.Button(); + this.buttonApplyVMod = new System.Windows.Forms.Button(); + this.textBoxVMod = new System.Windows.Forms.TextBox(); + this.pictureBoxVMod = new System.Windows.Forms.PictureBox(); + this.groupBoxVProject = new System.Windows.Forms.GroupBox(); + this.buttonBrowseVProject = new System.Windows.Forms.Button(); + this.buttonResetVProject = new System.Windows.Forms.Button(); + this.buttonApplyVProject = new System.Windows.Forms.Button(); + this.textBoxVProject = new System.Windows.Forms.TextBox(); + this.pictureBoxVProject = new System.Windows.Forms.PictureBox(); + this.groupBoxVGame = new System.Windows.Forms.GroupBox(); + this.buttonBrowseVGame = new System.Windows.Forms.Button(); + this.buttonResetVGame = new System.Windows.Forms.Button(); + this.buttonApplyVGame = new System.Windows.Forms.Button(); + this.textBoxVGame = new System.Windows.Forms.TextBox(); + this.pictureBoxVGame = new System.Windows.Forms.PictureBox(); + this.groupBoxVContent = new System.Windows.Forms.GroupBox(); + this.buttonBrowseVContent = new System.Windows.Forms.Button(); + this.buttonResetVContent = new System.Windows.Forms.Button(); + this.buttonApplyVContent = new System.Windows.Forms.Button(); + this.textBoxVContent = new System.Windows.Forms.TextBox(); + this.pictureBoxVContent = new System.Windows.Forms.PictureBox(); + this.groupBox5 = new System.Windows.Forms.GroupBox(); + this.buttonBrowseVTools = new System.Windows.Forms.Button(); + this.buttonResetVTools = new System.Windows.Forms.Button(); + this.buttonApplyVTools = new System.Windows.Forms.Button(); + this.textBoxVTools = new System.Windows.Forms.TextBox(); + this.pictureBoxVTools = new System.Windows.Forms.PictureBox(); + this.toolTip = new System.Windows.Forms.ToolTip(this.components); + this.menuStrip.SuspendLayout(); + this.groupBoxVMod.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxVMod)).BeginInit(); + this.groupBoxVProject.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxVProject)).BeginInit(); + this.groupBoxVGame.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxVGame)).BeginInit(); + this.groupBoxVContent.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxVContent)).BeginInit(); + this.groupBox5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxVTools)).BeginInit(); this.SuspendLayout(); // + // menuStrip + // + this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.fileToolStripMenuItem, + this.helpToolStripMenuItem}); + this.menuStrip.Location = new System.Drawing.Point(0, 0); + this.menuStrip.Name = "menuStrip"; + this.menuStrip.Size = new System.Drawing.Size(653, 24); + this.menuStrip.TabIndex = 0; + this.menuStrip.Text = "menuStrip1"; + // + // fileToolStripMenuItem + // + this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.refreshToolStripMenuItem, + this.exitToolStripMenuItem}); + this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; + this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20); + this.fileToolStripMenuItem.Text = "File"; + // + // refreshToolStripMenuItem + // + this.refreshToolStripMenuItem.Image = global::SourceSDK.ENV.Editor.Properties.Resources.refresh16; + this.refreshToolStripMenuItem.Name = "refreshToolStripMenuItem"; + this.refreshToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.refreshToolStripMenuItem.Text = "Refresh"; + this.refreshToolStripMenuItem.Click += new System.EventHandler(this.refreshToolStripMenuItem_Click); + // + // exitToolStripMenuItem + // + this.exitToolStripMenuItem.Image = global::SourceSDK.ENV.Editor.Properties.Resources.power_on; + this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; + this.exitToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.exitToolStripMenuItem.Text = "Exit"; + // + // helpToolStripMenuItem + // + this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.aboutToolStripMenuItem}); + this.helpToolStripMenuItem.Name = "helpToolStripMenuItem"; + this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20); + this.helpToolStripMenuItem.Text = "Help"; + // + // aboutToolStripMenuItem + // + this.aboutToolStripMenuItem.Image = global::SourceSDK.ENV.Editor.Properties.Resources.about; + this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; + this.aboutToolStripMenuItem.Size = new System.Drawing.Size(107, 22); + this.aboutToolStripMenuItem.Text = "About"; + // + // groupBoxVMod + // + this.groupBoxVMod.Controls.Add(this.buttonResetVMod); + this.groupBoxVMod.Controls.Add(this.buttonApplyVMod); + this.groupBoxVMod.Controls.Add(this.textBoxVMod); + this.groupBoxVMod.Controls.Add(this.pictureBoxVMod); + this.groupBoxVMod.Location = new System.Drawing.Point(12, 27); + this.groupBoxVMod.Name = "groupBoxVMod"; + this.groupBoxVMod.Size = new System.Drawing.Size(629, 87); + this.groupBoxVMod.TabIndex = 1; + this.groupBoxVMod.TabStop = false; + this.groupBoxVMod.Text = "VMod (SSDK)"; + // + // buttonResetVMod + // + this.buttonResetVMod.Image = global::SourceSDK.ENV.Editor.Properties.Resources.remove; + this.buttonResetVMod.Location = new System.Drawing.Point(467, 51); + this.buttonResetVMod.Name = "buttonResetVMod"; + this.buttonResetVMod.Size = new System.Drawing.Size(75, 23); + this.buttonResetVMod.TabIndex = 2; + this.buttonResetVMod.UseVisualStyleBackColor = true; + // + // buttonApplyVMod + // + this.buttonApplyVMod.Image = global::SourceSDK.ENV.Editor.Properties.Resources.check; + this.buttonApplyVMod.Location = new System.Drawing.Point(548, 51); + this.buttonApplyVMod.Name = "buttonApplyVMod"; + this.buttonApplyVMod.Size = new System.Drawing.Size(75, 23); + this.buttonApplyVMod.TabIndex = 2; + this.toolTip.SetToolTip(this.buttonApplyVMod, "asdss"); + this.buttonApplyVMod.UseVisualStyleBackColor = true; + // + // textBoxVMod + // + this.textBoxVMod.Location = new System.Drawing.Point(28, 22); + this.textBoxVMod.Name = "textBoxVMod"; + this.textBoxVMod.PlaceholderText = "MyMod"; + this.textBoxVMod.Size = new System.Drawing.Size(595, 23); + this.textBoxVMod.TabIndex = 1; + // + // pictureBoxVMod + // + this.pictureBoxVMod.Image = global::SourceSDK.ENV.Editor.Properties.Resources.cancel; + this.pictureBoxVMod.Location = new System.Drawing.Point(6, 26); + this.pictureBoxVMod.Name = "pictureBoxVMod"; + this.pictureBoxVMod.Size = new System.Drawing.Size(16, 16); + this.pictureBoxVMod.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + this.pictureBoxVMod.TabIndex = 0; + this.pictureBoxVMod.TabStop = false; + // + // groupBoxVProject + // + this.groupBoxVProject.Controls.Add(this.buttonBrowseVProject); + this.groupBoxVProject.Controls.Add(this.buttonResetVProject); + this.groupBoxVProject.Controls.Add(this.buttonApplyVProject); + this.groupBoxVProject.Controls.Add(this.textBoxVProject); + this.groupBoxVProject.Controls.Add(this.pictureBoxVProject); + this.groupBoxVProject.Location = new System.Drawing.Point(12, 120); + this.groupBoxVProject.Name = "groupBoxVProject"; + this.groupBoxVProject.Size = new System.Drawing.Size(629, 87); + this.groupBoxVProject.TabIndex = 1; + this.groupBoxVProject.TabStop = false; + this.groupBoxVProject.Text = "VProject (SSDK)"; + // + // buttonBrowseVProject + // + this.buttonBrowseVProject.Location = new System.Drawing.Point(548, 22); + this.buttonBrowseVProject.Name = "buttonBrowseVProject"; + this.buttonBrowseVProject.Size = new System.Drawing.Size(75, 23); + this.buttonBrowseVProject.TabIndex = 3; + this.buttonBrowseVProject.Text = "..."; + this.buttonBrowseVProject.UseVisualStyleBackColor = true; + // + // buttonResetVProject + // + this.buttonResetVProject.Image = global::SourceSDK.ENV.Editor.Properties.Resources.remove; + this.buttonResetVProject.Location = new System.Drawing.Point(467, 51); + this.buttonResetVProject.Name = "buttonResetVProject"; + this.buttonResetVProject.Size = new System.Drawing.Size(75, 23); + this.buttonResetVProject.TabIndex = 2; + this.buttonResetVProject.UseVisualStyleBackColor = true; + // + // buttonApplyVProject + // + this.buttonApplyVProject.Image = global::SourceSDK.ENV.Editor.Properties.Resources.check; + this.buttonApplyVProject.Location = new System.Drawing.Point(548, 51); + this.buttonApplyVProject.Name = "buttonApplyVProject"; + this.buttonApplyVProject.Size = new System.Drawing.Size(75, 23); + this.buttonApplyVProject.TabIndex = 2; + this.buttonApplyVProject.UseVisualStyleBackColor = true; + // + // textBoxVProject + // + this.textBoxVProject.Location = new System.Drawing.Point(28, 22); + this.textBoxVProject.Name = "textBoxVProject"; + this.textBoxVProject.PlaceholderText = "C:\\Program Files\\Steam\\steamapps\\sourcemods\\MyMod"; + this.textBoxVProject.Size = new System.Drawing.Size(514, 23); + this.textBoxVProject.TabIndex = 1; + // + // pictureBoxVProject + // + this.pictureBoxVProject.Image = global::SourceSDK.ENV.Editor.Properties.Resources.cancel; + this.pictureBoxVProject.Location = new System.Drawing.Point(6, 26); + this.pictureBoxVProject.Name = "pictureBoxVProject"; + this.pictureBoxVProject.Size = new System.Drawing.Size(16, 16); + this.pictureBoxVProject.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + this.pictureBoxVProject.TabIndex = 0; + this.pictureBoxVProject.TabStop = false; + // + // groupBoxVGame + // + this.groupBoxVGame.Controls.Add(this.buttonBrowseVGame); + this.groupBoxVGame.Controls.Add(this.buttonResetVGame); + this.groupBoxVGame.Controls.Add(this.buttonApplyVGame); + this.groupBoxVGame.Controls.Add(this.textBoxVGame); + this.groupBoxVGame.Controls.Add(this.pictureBoxVGame); + this.groupBoxVGame.Location = new System.Drawing.Point(12, 213); + this.groupBoxVGame.Name = "groupBoxVGame"; + this.groupBoxVGame.Size = new System.Drawing.Size(629, 87); + this.groupBoxVGame.TabIndex = 1; + this.groupBoxVGame.TabStop = false; + this.groupBoxVGame.Text = "VGame (SFM)"; + // + // buttonBrowseVGame + // + this.buttonBrowseVGame.Location = new System.Drawing.Point(548, 22); + this.buttonBrowseVGame.Name = "buttonBrowseVGame"; + this.buttonBrowseVGame.Size = new System.Drawing.Size(75, 23); + this.buttonBrowseVGame.TabIndex = 3; + this.buttonBrowseVGame.Text = "..."; + this.buttonBrowseVGame.UseVisualStyleBackColor = true; + // + // buttonResetVGame + // + this.buttonResetVGame.Image = global::SourceSDK.ENV.Editor.Properties.Resources.remove; + this.buttonResetVGame.Location = new System.Drawing.Point(467, 51); + this.buttonResetVGame.Name = "buttonResetVGame"; + this.buttonResetVGame.Size = new System.Drawing.Size(75, 23); + this.buttonResetVGame.TabIndex = 2; + this.buttonResetVGame.UseVisualStyleBackColor = true; + // + // buttonApplyVGame + // + this.buttonApplyVGame.Image = global::SourceSDK.ENV.Editor.Properties.Resources.check; + this.buttonApplyVGame.Location = new System.Drawing.Point(548, 51); + this.buttonApplyVGame.Name = "buttonApplyVGame"; + this.buttonApplyVGame.Size = new System.Drawing.Size(75, 23); + this.buttonApplyVGame.TabIndex = 2; + this.buttonApplyVGame.UseVisualStyleBackColor = true; + // + // textBoxVGame + // + this.textBoxVGame.Location = new System.Drawing.Point(28, 22); + this.textBoxVGame.Name = "textBoxVGame"; + this.textBoxVGame.PlaceholderText = "C:\\Program Files\\Steam\\steamapps\\common\\SourceFilmmaker\\game"; + this.textBoxVGame.Size = new System.Drawing.Size(514, 23); + this.textBoxVGame.TabIndex = 1; + // + // pictureBoxVGame + // + this.pictureBoxVGame.Image = global::SourceSDK.ENV.Editor.Properties.Resources.cancel; + this.pictureBoxVGame.Location = new System.Drawing.Point(6, 26); + this.pictureBoxVGame.Name = "pictureBoxVGame"; + this.pictureBoxVGame.Size = new System.Drawing.Size(16, 16); + this.pictureBoxVGame.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + this.pictureBoxVGame.TabIndex = 0; + this.pictureBoxVGame.TabStop = false; + // + // groupBoxVContent + // + this.groupBoxVContent.Controls.Add(this.buttonBrowseVContent); + this.groupBoxVContent.Controls.Add(this.buttonResetVContent); + this.groupBoxVContent.Controls.Add(this.buttonApplyVContent); + this.groupBoxVContent.Controls.Add(this.textBoxVContent); + this.groupBoxVContent.Controls.Add(this.pictureBoxVContent); + this.groupBoxVContent.Location = new System.Drawing.Point(12, 306); + this.groupBoxVContent.Name = "groupBoxVContent"; + this.groupBoxVContent.Size = new System.Drawing.Size(629, 87); + this.groupBoxVContent.TabIndex = 1; + this.groupBoxVContent.TabStop = false; + this.groupBoxVContent.Text = "VContent (SFM)"; + // + // buttonBrowseVContent + // + this.buttonBrowseVContent.Location = new System.Drawing.Point(548, 22); + this.buttonBrowseVContent.Name = "buttonBrowseVContent"; + this.buttonBrowseVContent.Size = new System.Drawing.Size(75, 23); + this.buttonBrowseVContent.TabIndex = 3; + this.buttonBrowseVContent.Text = "..."; + this.buttonBrowseVContent.UseVisualStyleBackColor = true; + // + // buttonResetVContent + // + this.buttonResetVContent.Image = global::SourceSDK.ENV.Editor.Properties.Resources.remove; + this.buttonResetVContent.Location = new System.Drawing.Point(467, 51); + this.buttonResetVContent.Name = "buttonResetVContent"; + this.buttonResetVContent.Size = new System.Drawing.Size(75, 23); + this.buttonResetVContent.TabIndex = 2; + this.buttonResetVContent.UseVisualStyleBackColor = true; + // + // buttonApplyVContent + // + this.buttonApplyVContent.Image = global::SourceSDK.ENV.Editor.Properties.Resources.check; + this.buttonApplyVContent.Location = new System.Drawing.Point(548, 51); + this.buttonApplyVContent.Name = "buttonApplyVContent"; + this.buttonApplyVContent.Size = new System.Drawing.Size(75, 23); + this.buttonApplyVContent.TabIndex = 2; + this.buttonApplyVContent.UseVisualStyleBackColor = true; + // + // textBoxVContent + // + this.textBoxVContent.Location = new System.Drawing.Point(28, 22); + this.textBoxVContent.Name = "textBoxVContent"; + this.textBoxVContent.PlaceholderText = "C:\\Program Files\\Steam\\steamapps\\common\\SourceFilmmaker\\content"; + this.textBoxVContent.Size = new System.Drawing.Size(514, 23); + this.textBoxVContent.TabIndex = 1; + // + // pictureBoxVContent + // + this.pictureBoxVContent.Image = global::SourceSDK.ENV.Editor.Properties.Resources.cancel; + this.pictureBoxVContent.Location = new System.Drawing.Point(6, 26); + this.pictureBoxVContent.Name = "pictureBoxVContent"; + this.pictureBoxVContent.Size = new System.Drawing.Size(16, 16); + this.pictureBoxVContent.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + this.pictureBoxVContent.TabIndex = 0; + this.pictureBoxVContent.TabStop = false; + // + // groupBox5 + // + this.groupBox5.Controls.Add(this.buttonBrowseVTools); + this.groupBox5.Controls.Add(this.buttonResetVTools); + this.groupBox5.Controls.Add(this.buttonApplyVTools); + this.groupBox5.Controls.Add(this.textBoxVTools); + this.groupBox5.Controls.Add(this.pictureBoxVTools); + this.groupBox5.Location = new System.Drawing.Point(12, 399); + this.groupBox5.Name = "groupBox5"; + this.groupBox5.Size = new System.Drawing.Size(629, 87); + this.groupBox5.TabIndex = 1; + this.groupBox5.TabStop = false; + this.groupBox5.Text = "VTools (SFM)"; + // + // buttonBrowseVTools + // + this.buttonBrowseVTools.Location = new System.Drawing.Point(548, 22); + this.buttonBrowseVTools.Name = "buttonBrowseVTools"; + this.buttonBrowseVTools.Size = new System.Drawing.Size(75, 23); + this.buttonBrowseVTools.TabIndex = 3; + this.buttonBrowseVTools.Text = "..."; + this.buttonBrowseVTools.UseVisualStyleBackColor = true; + // + // buttonResetVTools + // + this.buttonResetVTools.Image = global::SourceSDK.ENV.Editor.Properties.Resources.remove; + this.buttonResetVTools.Location = new System.Drawing.Point(467, 51); + this.buttonResetVTools.Name = "buttonResetVTools"; + this.buttonResetVTools.Size = new System.Drawing.Size(75, 23); + this.buttonResetVTools.TabIndex = 2; + this.buttonResetVTools.UseVisualStyleBackColor = true; + // + // buttonApplyVTools + // + this.buttonApplyVTools.Image = global::SourceSDK.ENV.Editor.Properties.Resources.check; + this.buttonApplyVTools.Location = new System.Drawing.Point(548, 51); + this.buttonApplyVTools.Name = "buttonApplyVTools"; + this.buttonApplyVTools.Size = new System.Drawing.Size(75, 23); + this.buttonApplyVTools.TabIndex = 2; + this.buttonApplyVTools.UseVisualStyleBackColor = true; + // + // textBoxVTools + // + this.textBoxVTools.Location = new System.Drawing.Point(28, 22); + this.textBoxVTools.Name = "textBoxVTools"; + this.textBoxVTools.PlaceholderText = "C:\\Program Files\\Steam\\steamapps\\common\\SourceFilmmaker\\game\\sdktools"; + this.textBoxVTools.Size = new System.Drawing.Size(514, 23); + this.textBoxVTools.TabIndex = 1; + // + // pictureBoxVTools + // + this.pictureBoxVTools.Image = global::SourceSDK.ENV.Editor.Properties.Resources.cancel; + this.pictureBoxVTools.Location = new System.Drawing.Point(6, 26); + this.pictureBoxVTools.Name = "pictureBoxVTools"; + this.pictureBoxVTools.Size = new System.Drawing.Size(16, 16); + this.pictureBoxVTools.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + this.pictureBoxVTools.TabIndex = 0; + this.pictureBoxVTools.TabStop = false; + // // FormMain // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(700, 338); + this.ClientSize = new System.Drawing.Size(653, 502); + this.Controls.Add(this.groupBox5); + this.Controls.Add(this.groupBoxVContent); + this.Controls.Add(this.groupBoxVGame); + this.Controls.Add(this.groupBoxVProject); + this.Controls.Add(this.groupBoxVMod); + this.Controls.Add(this.menuStrip); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MainMenuStrip = this.menuStrip; this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.MaximizeBox = false; this.Name = "FormMain"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "FormMain"; + this.toolTip.SetToolTip(this, "asd"); + this.Load += new System.EventHandler(this.FormMain_Load); + this.menuStrip.ResumeLayout(false); + this.menuStrip.PerformLayout(); + this.groupBoxVMod.ResumeLayout(false); + this.groupBoxVMod.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxVMod)).EndInit(); + this.groupBoxVProject.ResumeLayout(false); + this.groupBoxVProject.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxVProject)).EndInit(); + this.groupBoxVGame.ResumeLayout(false); + this.groupBoxVGame.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxVGame)).EndInit(); + this.groupBoxVContent.ResumeLayout(false); + this.groupBoxVContent.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxVContent)).EndInit(); + this.groupBox5.ResumeLayout(false); + this.groupBox5.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxVTools)).EndInit(); this.ResumeLayout(false); + this.PerformLayout(); } #endregion + + private MenuStrip menuStrip; + private ToolStripMenuItem fileToolStripMenuItem; + private ToolStripMenuItem helpToolStripMenuItem; + private ToolStripMenuItem aboutToolStripMenuItem; + private ToolStripMenuItem refreshToolStripMenuItem; + private ToolStripMenuItem exitToolStripMenuItem; + private GroupBox groupBoxVMod; + private Button buttonResetVMod; + private Button buttonApplyVMod; + private TextBox textBoxVMod; + private PictureBox pictureBoxVMod; + private GroupBox groupBoxVProject; + private Button buttonBrowseVProject; + private Button buttonResetVProject; + private Button buttonApplyVProject; + private TextBox textBoxVProject; + private PictureBox pictureBoxVProject; + private GroupBox groupBoxVGame; + private Button buttonBrowseVGame; + private Button buttonResetVGame; + private Button buttonApplyVGame; + private TextBox textBoxVGame; + private PictureBox pictureBoxVGame; + private GroupBox groupBoxVContent; + private Button buttonBrowseVContent; + private Button buttonResetVContent; + private Button buttonApplyVContent; + private TextBox textBoxVContent; + private PictureBox pictureBoxVContent; + private GroupBox groupBox5; + private Button buttonBrowseVTools; + private Button buttonResetVTools; + private Button buttonApplyVTools; + private TextBox textBoxVTools; + private PictureBox pictureBoxVTools; + private ToolTip toolTip; } } \ No newline at end of file diff --git a/src/UI/FormMain.cs b/src/UI/FormMain.cs index 8aaf049..ed3bf04 100644 --- a/src/UI/FormMain.cs +++ b/src/UI/FormMain.cs @@ -14,7 +14,51 @@ namespace SourceSDK.ENV.Editor.UI { public FormMain() { + InitializeComponent(); + this.Text = String.Format("{0} ({1})", Application.ProductName, Application.ProductVersion); ; + } + + private void checkAll() + { + checkVMod(); + checkVProject(); + } + private void checkVMod() + { + var value = Environment.GetEnvironmentVariable("VMod", EnvironmentVariableTarget.User); + if (value == null) + { + pictureBoxVMod.Image = Properties.Resources.cancel; + } + else + { + textBoxVMod.Text = value; + pictureBoxVMod.Image = Properties.Resources.done; + } + } + private void checkVProject() + { + var value = Environment.GetEnvironmentVariable("VProject", EnvironmentVariableTarget.User); + if (value == null) + { + pictureBoxVProject.Image = Properties.Resources.cancel; + } + else + { + textBoxVProject.Text = value; + pictureBoxVProject.Image = Properties.Resources.done; + } + } + + private void FormMain_Load(object sender, EventArgs e) + { + checkAll(); + } + + private void refreshToolStripMenuItem_Click(object sender, EventArgs e) + { + checkAll(); } } } diff --git a/src/UI/FormMain.resx b/src/UI/FormMain.resx index 61d7f4d..7af488e 100644 --- a/src/UI/FormMain.resx +++ b/src/UI/FormMain.resx @@ -57,6 +57,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 17, 17 + + + 125, 17 +