1.0.0.0
v 1.0.0.0
19
src/Program.cs
Normal file
@ -0,0 +1,19 @@
|
||||
namespace SourceSDK.ENV.Editor
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
// To customize application configuration such as set high DPI settings or default font,
|
||||
// see https://aka.ms/applicationconfiguration.
|
||||
Application.SetHighDpiMode(HighDpiMode.SystemAware);
|
||||
Application.EnableVisualStyles();
|
||||
ApplicationConfiguration.Initialize();
|
||||
Application.Run(new UI.FormMain());
|
||||
}
|
||||
}
|
||||
}
|
183
src/Properties/Resources.Designer.cs
generated
Normal file
@ -0,0 +1,183 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace SourceSDK.ENV.Editor.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SourceSDK.ENV.Editor.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap about {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("about", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap arrows {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("arrows", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap cancel {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("cancel", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap check {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("check", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap crowbar_64 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("crowbar.64", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap crowbar512 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("crowbar512", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap done {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("done", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap open_folder {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("open-folder", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap power_on {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("power_on", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap refresh16 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("refresh16", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap remove {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("remove", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap wait {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("wait", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
157
src/Properties/Resources.resx
Normal file
@ -0,0 +1,157 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="crowbar512" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\crowbar512.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="remove" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\remove.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="cancel" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\cancel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="done" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\done.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="arrows" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\arrows.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="power_on" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\power-on.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="crowbar.64" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\crowbar.64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="about" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\about.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="wait" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\wait.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="check" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\check.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="refresh16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\refresh16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="open-folder" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\open-folder.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
BIN
src/Resources/about.png
Normal file
After Width: | Height: | Size: 289 B |
BIN
src/Resources/arrows.png
Normal file
After Width: | Height: | Size: 449 B |
BIN
src/Resources/cancel.png
Normal file
After Width: | Height: | Size: 292 B |
BIN
src/Resources/check.png
Normal file
After Width: | Height: | Size: 350 B |
BIN
src/Resources/crowbar.64.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
src/Resources/crowbar512.png
Normal file
After Width: | Height: | Size: 9.2 KiB |
BIN
src/Resources/done.png
Normal file
After Width: | Height: | Size: 317 B |
BIN
src/Resources/open-folder.png
Normal file
After Width: | Height: | Size: 352 B |
BIN
src/Resources/power-on.png
Normal file
After Width: | Height: | Size: 705 B |
BIN
src/Resources/refresh16.png
Normal file
After Width: | Height: | Size: 652 B |
BIN
src/Resources/remove.png
Normal file
After Width: | Height: | Size: 350 B |
BIN
src/Resources/wait.png
Normal file
After Width: | Height: | Size: 14 KiB |
33
src/SourceSDK.ENV.Editor.csproj
Normal file
@ -0,0 +1,33 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net6.0-windows</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<StartupObject>SourceSDK.ENV.Editor.Program</StartupObject>
|
||||
<ApplicationIcon>crowbar.ico</ApplicationIcon>
|
||||
<SignAssembly>False</SignAssembly>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="crowbar.ico" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Update="Properties\Resources.Designer.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Update="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
25
src/SourceSDK.ENV.Editor.sln
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.2.32210.308
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SourceSDK.ENV.Editor", "SourceSDK.ENV.Editor.csproj", "{549607A2-9010-45DB-B0FC-DCEB9C16021F}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{549607A2-9010-45DB-B0FC-DCEB9C16021F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{549607A2-9010-45DB-B0FC-DCEB9C16021F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{549607A2-9010-45DB-B0FC-DCEB9C16021F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{549607A2-9010-45DB-B0FC-DCEB9C16021F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {2230E443-7FC3-4A1D-BC4A-C36A3C5B70E2}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
559
src/UI/FormMain.Designer.cs
generated
Normal file
@ -0,0 +1,559 @@
|
||||
namespace SourceSDK.ENV.Editor.UI
|
||||
{
|
||||
partial class FormMain
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMain));
|
||||
this.menuStrip = new System.Windows.Forms.MenuStrip();
|
||||
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.refreshToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.resetAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
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.groupBoxVTools = 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.folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();
|
||||
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.groupBoxVTools.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.resetAllToolStripMenuItem,
|
||||
this.toolStripSeparator1,
|
||||
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(117, 22);
|
||||
this.refreshToolStripMenuItem.Text = "Refresh";
|
||||
this.refreshToolStripMenuItem.Click += new System.EventHandler(this.refreshToolStripMenuItem_Click);
|
||||
//
|
||||
// resetAllToolStripMenuItem
|
||||
//
|
||||
this.resetAllToolStripMenuItem.Image = global::SourceSDK.ENV.Editor.Properties.Resources.power_on;
|
||||
this.resetAllToolStripMenuItem.Name = "resetAllToolStripMenuItem";
|
||||
this.resetAllToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
|
||||
this.resetAllToolStripMenuItem.Text = "Reset all";
|
||||
this.resetAllToolStripMenuItem.Click += new System.EventHandler(this.resetAllToolStripMenuItem_Click);
|
||||
//
|
||||
// toolStripSeparator1
|
||||
//
|
||||
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
||||
this.toolStripSeparator1.Size = new System.Drawing.Size(114, 6);
|
||||
//
|
||||
// exitToolStripMenuItem
|
||||
//
|
||||
this.exitToolStripMenuItem.Image = global::SourceSDK.ENV.Editor.Properties.Resources.arrows;
|
||||
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
|
||||
this.exitToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
|
||||
this.exitToolStripMenuItem.Text = "Exit";
|
||||
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
|
||||
//
|
||||
// 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(180, 22);
|
||||
this.aboutToolStripMenuItem.Text = "About";
|
||||
this.aboutToolStripMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem_Click);
|
||||
//
|
||||
// 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.toolTip.SetToolTip(this.buttonResetVMod, "Reset");
|
||||
this.buttonResetVMod.UseVisualStyleBackColor = true;
|
||||
this.buttonResetVMod.Click += new System.EventHandler(this.buttonResetVMod_Click);
|
||||
//
|
||||
// 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, "Apply");
|
||||
this.buttonApplyVMod.UseVisualStyleBackColor = true;
|
||||
this.buttonApplyVMod.Click += new System.EventHandler(this.buttonApplyVMod_Click);
|
||||
//
|
||||
// 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;
|
||||
this.toolTip.SetToolTip(this.textBoxVMod, "Your sourcemod name");
|
||||
//
|
||||
// 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.Image = global::SourceSDK.ENV.Editor.Properties.Resources.open_folder;
|
||||
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.toolTip.SetToolTip(this.buttonBrowseVProject, "Browse");
|
||||
this.buttonBrowseVProject.UseVisualStyleBackColor = true;
|
||||
this.buttonBrowseVProject.Click += new System.EventHandler(this.buttonBrowseVProject_Click);
|
||||
//
|
||||
// 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.toolTip.SetToolTip(this.buttonResetVProject, "Reset");
|
||||
this.buttonResetVProject.UseVisualStyleBackColor = true;
|
||||
this.buttonResetVProject.Click += new System.EventHandler(this.buttonResetVProject_Click);
|
||||
//
|
||||
// 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.toolTip.SetToolTip(this.buttonApplyVProject, "Apply");
|
||||
this.buttonApplyVProject.UseVisualStyleBackColor = true;
|
||||
this.buttonApplyVProject.Click += new System.EventHandler(this.buttonApplyVProject_Click);
|
||||
//
|
||||
// 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;
|
||||
this.toolTip.SetToolTip(this.textBoxVProject, "Path to Your sourcemod folder");
|
||||
//
|
||||
// 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.Image = global::SourceSDK.ENV.Editor.Properties.Resources.open_folder;
|
||||
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.toolTip.SetToolTip(this.buttonBrowseVGame, "Browse");
|
||||
this.buttonBrowseVGame.UseVisualStyleBackColor = true;
|
||||
this.buttonBrowseVGame.Click += new System.EventHandler(this.buttonBrowseVGame_Click);
|
||||
//
|
||||
// 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.toolTip.SetToolTip(this.buttonResetVGame, "Reset");
|
||||
this.buttonResetVGame.UseVisualStyleBackColor = true;
|
||||
this.buttonResetVGame.Click += new System.EventHandler(this.buttonResetVGame_Click);
|
||||
//
|
||||
// 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.toolTip.SetToolTip(this.buttonApplyVGame, "Apply");
|
||||
this.buttonApplyVGame.UseVisualStyleBackColor = true;
|
||||
this.buttonApplyVGame.Click += new System.EventHandler(this.buttonApplyVGame_Click);
|
||||
//
|
||||
// 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;
|
||||
this.toolTip.SetToolTip(this.textBoxVGame, "Path to \"game \" folder");
|
||||
//
|
||||
// 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.Image = global::SourceSDK.ENV.Editor.Properties.Resources.open_folder;
|
||||
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.toolTip.SetToolTip(this.buttonBrowseVContent, "Browse");
|
||||
this.buttonBrowseVContent.UseVisualStyleBackColor = true;
|
||||
this.buttonBrowseVContent.Click += new System.EventHandler(this.buttonBrowseVContent_Click);
|
||||
//
|
||||
// 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.toolTip.SetToolTip(this.buttonResetVContent, "Reset");
|
||||
this.buttonResetVContent.UseVisualStyleBackColor = true;
|
||||
this.buttonResetVContent.Click += new System.EventHandler(this.buttonResetVContent_Click);
|
||||
//
|
||||
// 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.toolTip.SetToolTip(this.buttonApplyVContent, "Apply");
|
||||
this.buttonApplyVContent.UseVisualStyleBackColor = true;
|
||||
this.buttonApplyVContent.Click += new System.EventHandler(this.buttonApplyVContent_Click);
|
||||
//
|
||||
// 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;
|
||||
this.toolTip.SetToolTip(this.textBoxVContent, "Path to \"content \" folder");
|
||||
//
|
||||
// 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;
|
||||
//
|
||||
// groupBoxVTools
|
||||
//
|
||||
this.groupBoxVTools.Controls.Add(this.buttonBrowseVTools);
|
||||
this.groupBoxVTools.Controls.Add(this.buttonResetVTools);
|
||||
this.groupBoxVTools.Controls.Add(this.buttonApplyVTools);
|
||||
this.groupBoxVTools.Controls.Add(this.textBoxVTools);
|
||||
this.groupBoxVTools.Controls.Add(this.pictureBoxVTools);
|
||||
this.groupBoxVTools.Location = new System.Drawing.Point(12, 399);
|
||||
this.groupBoxVTools.Name = "groupBoxVTools";
|
||||
this.groupBoxVTools.Size = new System.Drawing.Size(629, 87);
|
||||
this.groupBoxVTools.TabIndex = 1;
|
||||
this.groupBoxVTools.TabStop = false;
|
||||
this.groupBoxVTools.Text = "VTools (SFM)";
|
||||
//
|
||||
// buttonBrowseVTools
|
||||
//
|
||||
this.buttonBrowseVTools.Image = global::SourceSDK.ENV.Editor.Properties.Resources.open_folder;
|
||||
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.toolTip.SetToolTip(this.buttonBrowseVTools, "Browse");
|
||||
this.buttonBrowseVTools.UseVisualStyleBackColor = true;
|
||||
this.buttonBrowseVTools.Click += new System.EventHandler(this.buttonBrowseVTools_Click);
|
||||
//
|
||||
// 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 = 0;
|
||||
this.toolTip.SetToolTip(this.buttonResetVTools, "Reset");
|
||||
this.buttonResetVTools.UseVisualStyleBackColor = true;
|
||||
this.buttonResetVTools.Click += new System.EventHandler(this.buttonResetVTools_Click);
|
||||
//
|
||||
// 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.toolTip.SetToolTip(this.buttonApplyVTools, "Apply");
|
||||
this.buttonApplyVTools.UseVisualStyleBackColor = true;
|
||||
this.buttonApplyVTools.Click += new System.EventHandler(this.buttonApplyVTools_Click);
|
||||
//
|
||||
// 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;
|
||||
this.toolTip.SetToolTip(this.textBoxVTools, "Path to \"sdktols \" folder");
|
||||
//
|
||||
// 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;
|
||||
//
|
||||
// folderBrowserDialog
|
||||
//
|
||||
this.folderBrowserDialog.UseDescriptionForTitle = true;
|
||||
//
|
||||
// FormMain
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(653, 502);
|
||||
this.Controls.Add(this.groupBoxVTools);
|
||||
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.groupBoxVTools.ResumeLayout(false);
|
||||
this.groupBoxVTools.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 groupBoxVTools;
|
||||
private Button buttonBrowseVTools;
|
||||
private Button buttonResetVTools;
|
||||
private Button buttonApplyVTools;
|
||||
private TextBox textBoxVTools;
|
||||
private PictureBox pictureBoxVTools;
|
||||
private ToolTip toolTip;
|
||||
private ToolStripMenuItem resetAllToolStripMenuItem;
|
||||
private ToolStripSeparator toolStripSeparator1;
|
||||
private FolderBrowserDialog folderBrowserDialog;
|
||||
}
|
||||
}
|
522
src/UI/FormMain.cs
Normal file
@ -0,0 +1,522 @@
|
||||
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;
|
||||
|
||||
namespace SourceSDK.ENV.Editor.UI
|
||||
{
|
||||
public partial class FormMain : Form
|
||||
{
|
||||
public FormMain()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.Text = String.Format("{0} ({1})", Application.ProductName, Application.ProductVersion); ;
|
||||
}
|
||||
|
||||
private void FormMain_Load(object sender, EventArgs e)
|
||||
{
|
||||
checkAll();
|
||||
folderBrowserDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); //set defaut directory
|
||||
}
|
||||
private void refreshToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
checkAll();
|
||||
MessageBox.Show("Information updated!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
Application.Exit();
|
||||
}
|
||||
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#region checks
|
||||
private void checkAll()
|
||||
{
|
||||
checkVMod();
|
||||
checkVProject();
|
||||
checkVGame();
|
||||
checkVContent();
|
||||
checkVTools();
|
||||
}
|
||||
private void checkVMod()
|
||||
{
|
||||
var value = Environment.GetEnvironmentVariable("VMod", EnvironmentVariableTarget.User);
|
||||
if (value == null)
|
||||
{
|
||||
textBoxVMod.Text = value;
|
||||
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)
|
||||
{
|
||||
textBoxVProject.Text = value;
|
||||
pictureBoxVProject.Image = Properties.Resources.cancel;
|
||||
}
|
||||
else
|
||||
{
|
||||
textBoxVProject.Text = value;
|
||||
pictureBoxVProject.Image = Properties.Resources.done;
|
||||
}
|
||||
}
|
||||
private void checkVGame()
|
||||
{
|
||||
var value = Environment.GetEnvironmentVariable("VGame", EnvironmentVariableTarget.User);
|
||||
if (value == null)
|
||||
{
|
||||
textBoxVGame.Text = value;
|
||||
pictureBoxVGame.Image = Properties.Resources.cancel;
|
||||
}
|
||||
else
|
||||
{
|
||||
textBoxVGame.Text = value;
|
||||
pictureBoxVGame.Image = Properties.Resources.done;
|
||||
}
|
||||
}
|
||||
private void checkVContent()
|
||||
{
|
||||
var value = Environment.GetEnvironmentVariable("VContent", EnvironmentVariableTarget.User);
|
||||
if (value == null)
|
||||
{
|
||||
textBoxVContent.Text = value;
|
||||
pictureBoxVContent.Image = Properties.Resources.cancel;
|
||||
}
|
||||
else
|
||||
{
|
||||
textBoxVContent.Text = value;
|
||||
pictureBoxVContent.Image = Properties.Resources.done;
|
||||
}
|
||||
}
|
||||
private void checkVTools()
|
||||
{
|
||||
var value = Environment.GetEnvironmentVariable("VTools", EnvironmentVariableTarget.User);
|
||||
if (value == null)
|
||||
{
|
||||
textBoxVTools.Text = value;
|
||||
pictureBoxVTools.Image = Properties.Resources.cancel;
|
||||
}
|
||||
else
|
||||
{
|
||||
textBoxVTools.Text = value;
|
||||
pictureBoxVTools.Image = Properties.Resources.done;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region reset
|
||||
private void resetAll()
|
||||
{
|
||||
resetVMod();
|
||||
resetVProject();
|
||||
resetVGame();
|
||||
resetVContent();
|
||||
resetVTools();
|
||||
}
|
||||
|
||||
private void resetVMod()
|
||||
{
|
||||
try
|
||||
{
|
||||
pictureBoxVMod.Image = Properties.Resources.wait;
|
||||
Cursor.Current = Cursors.WaitCursor;
|
||||
try
|
||||
{
|
||||
Environment.SetEnvironmentVariable("VMod", null, EnvironmentVariableTarget.User);
|
||||
checkVMod();
|
||||
}
|
||||
catch
|
||||
{
|
||||
checkVMod();
|
||||
}
|
||||
|
||||
MessageBox.Show("VMod successfully cleared and Information updated!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
catch
|
||||
{
|
||||
MessageBox.Show("Something went wrong and VMod was not successfully deleted", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
}
|
||||
|
||||
private void resetVProject()
|
||||
{
|
||||
try
|
||||
{
|
||||
pictureBoxVProject.Image = Properties.Resources.wait;
|
||||
Cursor.Current = Cursors.WaitCursor;
|
||||
try
|
||||
{
|
||||
Environment.SetEnvironmentVariable("VProject", null, EnvironmentVariableTarget.User);
|
||||
checkVProject();
|
||||
}
|
||||
catch
|
||||
{
|
||||
checkVProject();
|
||||
}
|
||||
|
||||
MessageBox.Show("VProject successfully cleared and Information updated!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
catch
|
||||
{
|
||||
MessageBox.Show("Something went wrong and VProject was not successfully deleted", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
}
|
||||
|
||||
private void resetVGame()
|
||||
{
|
||||
try
|
||||
{
|
||||
pictureBoxVGame.Image = Properties.Resources.wait;
|
||||
Cursor.Current = Cursors.WaitCursor;
|
||||
try
|
||||
{
|
||||
Environment.SetEnvironmentVariable("VGame", null, EnvironmentVariableTarget.User);
|
||||
checkVGame();
|
||||
}
|
||||
catch
|
||||
{
|
||||
checkVGame();
|
||||
}
|
||||
|
||||
MessageBox.Show("VGame successfully cleared and Information updated!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
catch
|
||||
{
|
||||
MessageBox.Show("Something went wrong and VGame was not successfully deleted", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
}
|
||||
|
||||
private void resetVContent()
|
||||
{
|
||||
try
|
||||
{
|
||||
pictureBoxVContent.Image = Properties.Resources.wait;
|
||||
Cursor.Current = Cursors.WaitCursor;
|
||||
try
|
||||
{
|
||||
Environment.SetEnvironmentVariable("VContent", null, EnvironmentVariableTarget.User);
|
||||
checkVContent();
|
||||
}
|
||||
catch
|
||||
{
|
||||
checkVContent();
|
||||
}
|
||||
|
||||
MessageBox.Show("VContent successfully cleared and Information updated!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
catch
|
||||
{
|
||||
MessageBox.Show("Something went wrong and VContent was not successfully deleted", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
}
|
||||
|
||||
private void resetVTools()
|
||||
{
|
||||
try
|
||||
{
|
||||
pictureBoxVTools.Image = Properties.Resources.wait;
|
||||
Cursor.Current = Cursors.WaitCursor;
|
||||
try
|
||||
{
|
||||
Environment.SetEnvironmentVariable("VTools", null, EnvironmentVariableTarget.User);
|
||||
checkVTools();
|
||||
}
|
||||
catch
|
||||
{
|
||||
checkVTools();
|
||||
}
|
||||
|
||||
MessageBox.Show("VTools successfully cleared and Information updated!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
catch
|
||||
{
|
||||
MessageBox.Show("Something went wrong and VTools was not successfully deleted", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region apply
|
||||
private void applyVMod()
|
||||
{
|
||||
try
|
||||
{
|
||||
pictureBoxVMod.Image = Properties.Resources.wait;
|
||||
Cursor.Current = Cursors.WaitCursor;
|
||||
try
|
||||
{
|
||||
Environment.SetEnvironmentVariable("VMod", textBoxVMod.Text, EnvironmentVariableTarget.User);
|
||||
checkVMod();
|
||||
}
|
||||
catch
|
||||
{
|
||||
checkVMod();
|
||||
}
|
||||
|
||||
MessageBox.Show("VMod successfully updated!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
catch
|
||||
{
|
||||
MessageBox.Show("Something went wrong and VMod was not successfully updated", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
}
|
||||
|
||||
private void applyVProject()
|
||||
{
|
||||
try
|
||||
{
|
||||
pictureBoxVProject.Image = Properties.Resources.wait;
|
||||
Cursor.Current = Cursors.WaitCursor;
|
||||
try
|
||||
{
|
||||
Environment.SetEnvironmentVariable("VProject", textBoxVProject.Text, EnvironmentVariableTarget.User);
|
||||
checkVProject();
|
||||
}
|
||||
catch
|
||||
{
|
||||
checkVProject();
|
||||
}
|
||||
|
||||
MessageBox.Show("VProject successfully updated!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
catch
|
||||
{
|
||||
MessageBox.Show("Something went wrong and VProject was not successfully updated", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
}
|
||||
|
||||
private void applyVGame()
|
||||
{
|
||||
try
|
||||
{
|
||||
pictureBoxVGame.Image = Properties.Resources.wait;
|
||||
Cursor.Current = Cursors.WaitCursor;
|
||||
try
|
||||
{
|
||||
Environment.SetEnvironmentVariable("VGame", textBoxVGame.Text, EnvironmentVariableTarget.User);
|
||||
checkVGame();
|
||||
}
|
||||
catch
|
||||
{
|
||||
checkVGame();
|
||||
}
|
||||
|
||||
MessageBox.Show("VGame successfully cleared updated!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
catch
|
||||
{
|
||||
MessageBox.Show("Something went wrong and VGame was not successfully updated", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
}
|
||||
|
||||
private void applyVContent()
|
||||
{
|
||||
try
|
||||
{
|
||||
pictureBoxVContent.Image = Properties.Resources.wait;
|
||||
Cursor.Current = Cursors.WaitCursor;
|
||||
try
|
||||
{
|
||||
Environment.SetEnvironmentVariable("VContent", textBoxVContent.Text, EnvironmentVariableTarget.User);
|
||||
checkVContent();
|
||||
}
|
||||
catch
|
||||
{
|
||||
checkVContent();
|
||||
}
|
||||
|
||||
MessageBox.Show("VContent successfully updated!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
catch
|
||||
{
|
||||
MessageBox.Show("Something went wrong and VContent was not successfully updated", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
}
|
||||
|
||||
private void applyVTools()
|
||||
{
|
||||
try
|
||||
{
|
||||
pictureBoxVTools.Image = Properties.Resources.wait;
|
||||
Cursor.Current = Cursors.WaitCursor;
|
||||
try
|
||||
{
|
||||
Environment.SetEnvironmentVariable("VTools", textBoxVTools.Text, EnvironmentVariableTarget.User);
|
||||
checkVTools();
|
||||
}
|
||||
catch
|
||||
{
|
||||
checkVTools();
|
||||
}
|
||||
|
||||
MessageBox.Show("VTools successfully cleared updated!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
catch
|
||||
{
|
||||
MessageBox.Show("Something went wrong and VTools was not successfully updated", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region btn-reset
|
||||
private void resetAllToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (MessageBox.Show("Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
|
||||
{
|
||||
resetAll();
|
||||
}
|
||||
}
|
||||
private void buttonResetVMod_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (MessageBox.Show("Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
|
||||
{
|
||||
resetVMod();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void buttonResetVProject_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (MessageBox.Show("Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
|
||||
{
|
||||
resetVProject();
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonResetVGame_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (MessageBox.Show("Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
|
||||
{
|
||||
resetVGame();
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonResetVContent_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (MessageBox.Show("Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
|
||||
{
|
||||
resetVContent();
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonResetVTools_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (MessageBox.Show("Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
|
||||
{
|
||||
resetVTools();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region btn-browse
|
||||
private void buttonBrowseVProject_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (folderBrowserDialog.ShowDialog()== DialogResult.OK)
|
||||
{
|
||||
textBoxVProject.Text = folderBrowserDialog.SelectedPath;
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonBrowseVGame_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
textBoxVGame.Text = folderBrowserDialog.SelectedPath;
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonBrowseVContent_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
textBoxVContent.Text = folderBrowserDialog.SelectedPath;
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonBrowseVTools_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
textBoxVTools.Text = folderBrowserDialog.SelectedPath;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region btn-apply
|
||||
private void buttonApplyVMod_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (MessageBox.Show("Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
|
||||
{
|
||||
applyVMod();
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonApplyVProject_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (MessageBox.Show("Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
|
||||
{
|
||||
applyVProject();
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonApplyVGame_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (MessageBox.Show("Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
|
||||
{
|
||||
applyVGame();
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonApplyVContent_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (MessageBox.Show("Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
|
||||
{
|
||||
applyVContent();
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonApplyVTools_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (MessageBox.Show("Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
|
||||
{
|
||||
applyVTools();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
1808
src/UI/FormMain.resx
Normal file
BIN
src/crowbar.ico
Normal file
After Width: | Height: | Size: 102 KiB |