diff --git a/src/UniversalValveToolbox/Properties/AssemblyInfo.cs b/src/UniversalValveToolbox/Properties/AssemblyInfo.cs index 633e147..abb2415 100644 --- a/src/UniversalValveToolbox/Properties/AssemblyInfo.cs +++ b/src/UniversalValveToolbox/Properties/AssemblyInfo.cs @@ -33,5 +33,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.1")] -[assembly: AssemblyFileVersion("1.0.0.1")] +[assembly: AssemblyVersion("1.0.0.2")] +[assembly: AssemblyFileVersion("1.0.0.2")] diff --git a/src/UniversalValveToolbox/UI/FormMain.cs b/src/UniversalValveToolbox/UI/FormMain.cs index 26544f6..76cdc43 100644 --- a/src/UniversalValveToolbox/UI/FormMain.cs +++ b/src/UniversalValveToolbox/UI/FormMain.cs @@ -166,7 +166,11 @@ namespace UniversalValveToolbox { private void UpdateEngineList() { var dataProvider = new DataProvider(); - Engines = dataProvider.Engines.Where(engine => SteamPathsUtil.GetSteamAppDataById(engine.Appid) != null).ToArray(); + Engines = dataProvider.Engines.Where(engine => { + var engineAppData = SteamPathsUtil.GetSteamAppDataById(engine.Appid); + + return engineAppData != null && engineAppData.Installed; + }).ToArray(); if (Engines != null && Engines.Length != 0) { comboBoxEngine.Enabled = true; @@ -327,7 +331,7 @@ namespace UniversalValveToolbox { } private void UpdateInfoNavigationBar() { - var countAvailableEngines = dataProvider.Engines.Length; + var countAvailableEngines = Engines.Length; var countAvailableProjects = dataProvider.Projects.Length; var countAvailableAddons = dataProvider.Addons.Length; diff --git a/src/UniversalValveToolbox/UI/FormProjects.resx b/src/UniversalValveToolbox/UI/FormProjects.resx index 5a37dc6..3abec51 100644 --- a/src/UniversalValveToolbox/UI/FormProjects.resx +++ b/src/UniversalValveToolbox/UI/FormProjects.resx @@ -117,135 +117,450 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - - 77, 13 - - - 251, 225 - - - labelDivider - - - - 20 - - - $this - - - 12, 183 - - + Top, Left, Right - - buttonOK + + + 12, 25 - - 395, 20 + + 395, 21 - - textBoxArgs + + + 3 - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + comboBox_Mod + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 16 Bottom, Right - - 2 + + 251, 227 - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 75, 23 + + + 4 + + + OK + + + buttonOK + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 15 + + + Bottom, Right + + + 332, 227 + + + 75, 23 + + + 5 + + + Cancel + + + buttonCancel + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 14 + + + Top, Right + + + 413, 63 + + + 75, 23 + + + 7 + + + New + + + buttonNew + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 13 + + + Top, Right + + + 413, 23 + + + 75, 23 + + + 8 + + + Remove + + + buttonRemove + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 12 + + + Top, Right + + + 413, 102 + + + 75, 23 + + + 21 + + + Browse + + + buttonBrowse + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 5 + + + Top, Left, Right + + + 12, 104 + + + 395, 20 + + + 19 + + + textBoxPath + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 6 + + + Top, Left, Right + + + 12, 65 + + + 395, 20 + + + 20 + + + textBoxName + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 7 + + + Top, Left, Right + + + 12, 143 + + + 395, 21 + + + 15 + + + comboBoxEngine + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 8 + + + 12, 88 + + + 100, 23 16 - + + Path: + + + labelPath + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 9 + + + 12, 49 + + + 100, 23 + + + 17 + + + Name: + + + labelName + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 10 + + + 12, 127 + + + 100, 23 + + + 18 + + + Assigned engine: + + + labelLinkedEngine + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + $this 11 - - 23 - - - Top, Right - - - 75, 23 - - - 15 - - - labelLinkedEngine - True - - buttonRemove + + 12, 9 - + + 76, 13 + + + 22 + + + Select Project: + + + labelAddon + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + $this - - 12, 127 + + 4 - - Edit Projects + + Bottom, Left, Right - - 332, 225 + + -18, 218 + + + 550, 2 + + + 23 + + + labelDivider + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 3 + + + Bottom, Right + + + 413, 227 + + + 75, 23 + + + 28 + + + Apply + + + buttonApply + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 2 + + + Top, Left, Right + + + 12, 183 + + + 395, 20 + + + 30 + + + textBoxArgs + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 0 + + + True + + + 12, 167 + + + 60, 13 + + + 29 Arguments: - - 8 + + labelArgs - - comboBoxEngine - - - 8 - - - 7 - - - label1 - - - 75, 23 - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 18 - - - labelPath - - - 12, 88 - - + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + $this + + + 1 + + + True + 6, 13 + + 500, 262 + AAABAAYAAAAAAAEAIADbMQAAZgAAAICAAAABACAAKAgBAEEyAABAQAAAAQAgAChCAABpOgEAMDAAAAEA @@ -2125,418 +2440,19 @@ AIABAACAAQAAwAMAAPAPAAA= - - $this - - - Browse - - - Linked engine: - - - 12, 25 - - - True - - - $this - - - True - - - 413, 63 - - - $this - - - 14 - - - Top, Left, Right - - - Top, Left, Right - - - $this - - - 9 - - - $this - - - 7 - - - -18, 216 - - - buttonCancel - - - 15 - - - 3 - - - 4 - - - 75, 23 - - - buttonBrowse - - - 12, 65 - - - 12, 49 - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - FormProjects - - - Bottom, Right - - - 12, 65 - - - 550, 2 - - - $this - - - labelArgs - - - 12, 104 - - - True - - - 30 - - - 75, 23 - - - 4 - - - Apply - - - Remove - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 10 - - - 32, 13 - - - New - - - 413, 102 - - - 12, 143 - - - Top, Right - - - textBoxPath + + 516, 300 CenterParent - - 1 + + Edit Projects - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - comboBox_Mod - - - 13 - - - 12, 9 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Bottom, Right - - - 11 - - - 12, 167 - - - 3 - - - 5 - - - 516, 259 - - - 21 - - - 395, 21 - - - Name: - - - buttonNew - - - 29 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - textBoxName - - - $this - - - 413, 225 - - - 17 - - - $this - - - 12, 127 - - - 16 - - - 75, 23 - - - 12 - - - 19 - - - 22 - - - $this - - - 6 - - - textBox1 - - - Select Project: - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - label3 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - $this - - - Top, Left, Right - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + FormProjects System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 7 - - - Path: - - - $this - - - 5 - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 38, 13 - - - 76, 13 - - - Cancel - - - $this - - - Top, Left, Right - - - labelAddon - - - 9 - - - 0 - - - 413, 23 - - - 16 - - - Bottom, Left, Right - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 395, 20 - - - $this - - - 18 - - - 12, 49 - - - 10 - - - label2 - - - Top, Right - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 12, 88 - - - $this - - - 500, 260 - - - buttonApply - - - 60, 13 - - - $this - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - $this - - - 17 - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - $this - - - labelName - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - $this - - - OK - - - 28 - - - 395, 21 - - - 20 - - - True - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 75, 23 - - - 395, 20 - - - True - - - ru - \ No newline at end of file diff --git a/src/UniversalValveToolbox/UI/FormProjects.ru.resx b/src/UniversalValveToolbox/UI/FormProjects.ru.resx index e12be99..f5539b3 100644 --- a/src/UniversalValveToolbox/UI/FormProjects.ru.resx +++ b/src/UniversalValveToolbox/UI/FormProjects.ru.resx @@ -117,6 +117,13 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 251, 227 + + + 332, 227 + Отмена @@ -133,7 +140,6 @@ Top, Left, Right - 395, 20 @@ -171,6 +177,12 @@ Выбор Проекта: + + -18, 218 + + + 413, 227 + Применить @@ -180,6 +192,9 @@ Параметры запуска: + + 500, 262 + AAABAAYAAAAAAAEAIADbMQAAZgAAAICAAAABACAAKAgBAEEyAABAQAAAAQAgAChCAABpOgEAMDAAAAEA @@ -2059,6 +2074,9 @@ AIABAACAAQAAwAMAAPAPAAA= + + 516, 300 + Редактор Проектов diff --git a/src/UniversalValveToolbox/UniversalValveToolbox.csproj b/src/UniversalValveToolbox/UniversalValveToolbox.csproj index 00fba8c..90fa2dd 100644 --- a/src/UniversalValveToolbox/UniversalValveToolbox.csproj +++ b/src/UniversalValveToolbox/UniversalValveToolbox.csproj @@ -51,7 +51,7 @@ - + 1.2.26