some ui additions 💩

not working yet
This commit is contained in:
STAM 2020-01-06 03:01:42 +03:00
parent f906e0c13e
commit ab42904521
12 changed files with 2404 additions and 24 deletions

View File

@ -28,73 +28,113 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.ListViewGroup listViewGroup1 = new System.Windows.Forms.ListViewGroup("ListViewGroup", System.Windows.Forms.HorizontalAlignment.Left);
System.Windows.Forms.ListViewGroup listViewGroup2 = new System.Windows.Forms.ListViewGroup("ListViewGroup", System.Windows.Forms.HorizontalAlignment.Left);
System.Windows.Forms.ListViewGroup listViewGroup3 = new System.Windows.Forms.ListViewGroup("ListViewGroup", System.Windows.Forms.HorizontalAlignment.Left);
System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem("");
System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem("");
System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem("");
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMain));
this.button_Launch = new System.Windows.Forms.Button();
this.button_Settings = new System.Windows.Forms.Button();
this.comboBox_Mod = new System.Windows.Forms.ComboBox();
this.comboBox_Engine = new System.Windows.Forms.ComboBox();
this.label_Engine = new System.Windows.Forms.Label();
this.label_Mod = new System.Windows.Forms.Label();
this.listView1 = new System.Windows.Forms.ListView();
this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.SuspendLayout();
//
// button_Launch
// button_Settings
//
this.button_Launch.Location = new System.Drawing.Point(265, 72);
this.button_Launch.Name = "button_Launch";
this.button_Launch.Size = new System.Drawing.Size(75, 23);
this.button_Launch.TabIndex = 0;
this.button_Launch.Text = "Launch";
this.button_Launch.UseVisualStyleBackColor = true;
this.button_Launch.Click += new System.EventHandler(this.button_Launch_Click);
this.button_Settings.Location = new System.Drawing.Point(270, 169);
this.button_Settings.Name = "button_Settings";
this.button_Settings.Size = new System.Drawing.Size(75, 21);
this.button_Settings.TabIndex = 0;
this.button_Settings.Text = "Settings";
this.button_Settings.UseVisualStyleBackColor = true;
this.button_Settings.Click += new System.EventHandler(this.button_Launch_Click);
//
// comboBox_Mod
//
this.comboBox_Mod.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox_Mod.FormattingEnabled = true;
this.comboBox_Mod.Location = new System.Drawing.Point(72, 45);
this.comboBox_Mod.Location = new System.Drawing.Point(103, 142);
this.comboBox_Mod.Name = "comboBox_Mod";
this.comboBox_Mod.Size = new System.Drawing.Size(268, 21);
this.comboBox_Mod.Size = new System.Drawing.Size(242, 21);
this.comboBox_Mod.TabIndex = 1;
//
// comboBox_Engine
//
this.comboBox_Engine.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox_Engine.FormattingEnabled = true;
this.comboBox_Engine.Location = new System.Drawing.Point(72, 12);
this.comboBox_Engine.Location = new System.Drawing.Point(103, 115);
this.comboBox_Engine.Name = "comboBox_Engine";
this.comboBox_Engine.Size = new System.Drawing.Size(268, 21);
this.comboBox_Engine.Size = new System.Drawing.Size(242, 21);
this.comboBox_Engine.TabIndex = 1;
//
// label_Engine
//
this.label_Engine.AutoSize = true;
this.label_Engine.Location = new System.Drawing.Point(12, 15);
this.label_Engine.Location = new System.Drawing.Point(17, 118);
this.label_Engine.Name = "label_Engine";
this.label_Engine.Size = new System.Drawing.Size(40, 13);
this.label_Engine.Size = new System.Drawing.Size(80, 13);
this.label_Engine.TabIndex = 2;
this.label_Engine.Text = "Engine";
this.label_Engine.Text = "Engine version:";
this.label_Engine.Click += new System.EventHandler(this.label1_Click);
//
// label_Mod
//
this.label_Mod.AutoSize = true;
this.label_Mod.Location = new System.Drawing.Point(12, 48);
this.label_Mod.Location = new System.Drawing.Point(17, 145);
this.label_Mod.Name = "label_Mod";
this.label_Mod.Size = new System.Drawing.Size(28, 13);
this.label_Mod.Size = new System.Drawing.Size(75, 13);
this.label_Mod.TabIndex = 3;
this.label_Mod.Text = "Mod";
this.label_Mod.Text = "Current Game:";
this.label_Mod.Click += new System.EventHandler(this.label1_Click_1);
//
// listView1
//
this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader1,
this.columnHeader2});
listViewGroup1.Header = "ListViewGroup";
listViewGroup1.Name = "listViewGroup1";
listViewGroup2.Header = "ListViewGroup";
listViewGroup2.Name = "listViewGroup2";
listViewGroup3.Header = "ListViewGroup";
listViewGroup3.Name = "listViewGroup3";
this.listView1.Groups.AddRange(new System.Windows.Forms.ListViewGroup[] {
listViewGroup1,
listViewGroup2,
listViewGroup3});
this.listView1.HideSelection = false;
this.listView1.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
listViewItem1,
listViewItem2,
listViewItem3});
this.listView1.Location = new System.Drawing.Point(12, 12);
this.listView1.MultiSelect = false;
this.listView1.Name = "listView1";
this.listView1.Size = new System.Drawing.Size(333, 97);
this.listView1.TabIndex = 4;
this.listView1.UseCompatibleStateImageBehavior = false;
//
// FormMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(357, 105);
this.ClientSize = new System.Drawing.Size(357, 200);
this.Controls.Add(this.listView1);
this.Controls.Add(this.label_Mod);
this.Controls.Add(this.label_Engine);
this.Controls.Add(this.comboBox_Engine);
this.Controls.Add(this.comboBox_Mod);
this.Controls.Add(this.button_Launch);
this.Controls.Add(this.button_Settings);
this.DoubleBuffered = true;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "FormMain";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Universal Valve Toolbox";
@ -106,11 +146,14 @@
#endregion
private System.Windows.Forms.Button button_Launch;
private System.Windows.Forms.Button button_Settings;
private System.Windows.Forms.ComboBox comboBox_Mod;
private System.Windows.Forms.ComboBox comboBox_Engine;
private System.Windows.Forms.Label label_Engine;
private System.Windows.Forms.Label label_Mod;
private System.Windows.Forms.ListView listView1;
private System.Windows.Forms.ColumnHeader columnHeader1;
private System.Windows.Forms.ColumnHeader columnHeader2;
}
}

View File

@ -34,7 +34,8 @@ namespace UniversalValveToolbox
private void button_Launch_Click(object sender, EventArgs e)
{
var frmSettings = new FormSettings();
frmSettings.ShowDialog();
}
}
}

View File

@ -0,0 +1,204 @@
namespace UniversalValveToolbox {
partial class FormSettings {
/// <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() {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormSettings));
this.comboBox_Mod = new System.Windows.Forms.ComboBox();
this.label_Mod = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.button3 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.button4 = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// comboBox_Mod
//
this.comboBox_Mod.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox_Mod.FormattingEnabled = true;
this.comboBox_Mod.Location = new System.Drawing.Point(89, 19);
this.comboBox_Mod.Name = "comboBox_Mod";
this.comboBox_Mod.Size = new System.Drawing.Size(279, 21);
this.comboBox_Mod.TabIndex = 2;
//
// label_Mod
//
this.label_Mod.AutoSize = true;
this.label_Mod.Location = new System.Drawing.Point(6, 22);
this.label_Mod.Name = "label_Mod";
this.label_Mod.Size = new System.Drawing.Size(83, 13);
this.label_Mod.TabIndex = 4;
this.label_Mod.Text = "Selected Game:";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.button3);
this.groupBox1.Controls.Add(this.button2);
this.groupBox1.Controls.Add(this.button1);
this.groupBox1.Controls.Add(this.textBox2);
this.groupBox1.Controls.Add(this.textBox1);
this.groupBox1.Controls.Add(this.comboBox1);
this.groupBox1.Controls.Add(this.comboBox_Mod);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.label_Mod);
this.groupBox1.Location = new System.Drawing.Point(12, 12);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(374, 165);
this.groupBox1.TabIndex = 5;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Projects";
//
// button3
//
this.button3.Location = new System.Drawing.Point(89, 136);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(75, 23);
this.button3.TabIndex = 6;
this.button3.Text = "New";
this.button3.UseVisualStyleBackColor = true;
//
// button2
//
this.button2.Location = new System.Drawing.Point(170, 136);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 6;
this.button2.Text = "Delete";
this.button2.UseVisualStyleBackColor = true;
//
// button1
//
this.button1.Location = new System.Drawing.Point(293, 136);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 6;
this.button1.Text = "Apply";
this.button1.UseVisualStyleBackColor = true;
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(89, 98);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(279, 20);
this.textBox2.TabIndex = 5;
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(89, 73);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(279, 20);
this.textBox1.TabIndex = 5;
//
// comboBox1
//
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(89, 46);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(279, 21);
this.comboBox1.TabIndex = 2;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(6, 101);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(68, 13);
this.label2.TabIndex = 4;
this.label2.Text = "Project Path:";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(6, 76);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(74, 13);
this.label1.TabIndex = 4;
this.label1.Text = "Project Name:";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(6, 49);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(77, 13);
this.label3.TabIndex = 4;
this.label3.Text = "Linked engine:";
//
// button4
//
this.button4.Location = new System.Drawing.Point(12, 209);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(374, 23);
this.button4.TabIndex = 6;
this.button4.Text = "Search avalible engines";
this.button4.UseVisualStyleBackColor = true;
//
// FormSettings
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(398, 242);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.button4);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FormSettings";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "FormSettings";
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.ComboBox comboBox_Mod;
private System.Windows.Forms.Label label_Mod;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Button button4;
}
}

View File

@ -0,0 +1,17 @@
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 UniversalValveToolbox {
public partial class FormSettings : Form {
public FormSettings() {
InitializeComponent();
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -61,11 +61,20 @@
<Compile Include="FormMain.Designer.cs">
<DependentUpon>FormMain.cs</DependentUpon>
</Compile>
<Compile Include="FormSettings.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FormSettings.Designer.cs">
<DependentUpon>FormSettings.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="FormMain.resx">
<DependentUpon>FormMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FormSettings.resx">
<DependentUpon>FormSettings.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
@ -75,6 +84,12 @@
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="json\engines\496450.json" />
<None Include="json\engines\254430.json" />
<None Include="json\engines\243750.json" />
<None Include="json\engines\243730.json" />
<None Include="json\projects\test project.json" />
<None Include="json\settings.json" />
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
@ -90,7 +105,6 @@
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Content Include="steam.ico" />
<Content Include="valve.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

View File

@ -0,0 +1,32 @@
{
"appid": 243730,
"name": "Source SDK Base 2013 (SP) Singleplayer",
"bin": "hl2.exe",
"tools": [
{
"args": "",
"bin": "bin//hammer.exe",
"name": "Valve Hammer Editor"
},
{
"args": "",
"bin": "bin//hlmv.exe",
"name": "Half-Life Model Viewer"
},
{
"args": "",
"bin": "bin//hlfaceposer.exe",
"name": "Half-Life FacePoser"
},
{
"args": "",
"bin": "bin//qc_eyes.exe",
"name": "QC Eyes"
},
{
"args": "-tools",
"bin": "hl2.exe",
"name": "Engine Tools"
}
]
}

View File

@ -0,0 +1,32 @@
{
"appid": 243750,
"name": "Source SDK Base 2013 (MP) Multiplayer",
"bin": "hl2.exe",
"tools": [
{
"args": "",
"bin": "bin//hammer.exe",
"name": "Valve Hammer Editor"
},
{
"args": "",
"bin": "bin//hlmv.exe",
"name": "Half-Life Model Viewer"
},
{
"args": "",
"bin": "bin//hlfaceposer.exe",
"name": "Half-Life FacePoser"
},
{
"args": "",
"bin": "bin//qc_eyes.exe",
"name": "QC Eyes"
},
{
"args": "-tools",
"bin": "hl2.exe",
"name": "Engine Tools"
}
]
}

View File

@ -0,0 +1,12 @@
{
"appid": 254430,
"name": "Half-Life SDK",
"bin": "ReadMe.txt",
"tools": [
{
"args": "",
"bin": "Hammer Editor//hammer.exe",
"name": "Valve Hammer Editor"
}
]
}

View File

@ -0,0 +1,12 @@
{
"appid": 496450,
"name": "J.A.C.K.",
"bin": "ReadMe.txt",
"tools": [
{
"args": "",
"bin": "jack.exe",
"name": "J.A.C.K."
}
]
}

View File

@ -0,0 +1,7 @@
{
"vproject": {
"engine": 243730, //linked avalible engine by id
"path": "C:\\Test", //path for export to users's env
"name": "Test Project" //name for launcher
}
}

View File

@ -0,0 +1,6 @@
{
"default-project": "projects//test project.json",
"avalible-enginies": [ 243730 ],
"language": null,
"theme": null
}