diff --git a/SoG_SGreader/Forms/FrmLoadSaveGame.Designer.cs b/SoG_SGreader/Forms/FrmLoadSaveGame.Designer.cs
index c7e0ade..c58d47a 100644
--- a/SoG_SGreader/Forms/FrmLoadSaveGame.Designer.cs
+++ b/SoG_SGreader/Forms/FrmLoadSaveGame.Designer.cs
@@ -176,7 +176,7 @@ private void InitializeComponent()
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "FrmLoadSaveGame";
- this.Text = "SoG: Savegame Editor v0.8.0 by tolik518";
+ this.Text = "SoG: Savegame Editor v0.8.1 by tolik518";
this.Load += new System.EventHandler(this.FrmLoadSaveGame_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
diff --git a/SoG_SGreader/Forms/FrmMain.Designer.cs b/SoG_SGreader/Forms/FrmMain.Designer.cs
index 438539d..649da8e 100644
--- a/SoG_SGreader/Forms/FrmMain.Designer.cs
+++ b/SoG_SGreader/Forms/FrmMain.Designer.cs
@@ -1527,6 +1527,7 @@ private void InitializeComponent()
this.lstInventory.TabIndex = 42;
this.lstInventory.UseCompatibleStateImageBehavior = false;
this.lstInventory.View = System.Windows.Forms.View.Details;
+ this.lstInventory.SelectedIndexChanged += new System.EventHandler(this.lstInventory_SelectedIndexChanged);
//
// Item
//
diff --git a/SoG_SGreader/Forms/FrmMain.cs b/SoG_SGreader/Forms/FrmMain.cs
index 3e78ee0..c32c8f5 100644
--- a/SoG_SGreader/Forms/FrmMain.cs
+++ b/SoG_SGreader/Forms/FrmMain.cs
@@ -1,5 +1,6 @@
using SoG_SGreader.Wrapper;
using System;
+using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
@@ -732,8 +733,14 @@ private void GetDataFromFields()
};
}
- private void LstInventory_SelectedIndexChanged(object sender, EventArgs e)
+ private void lstInventory_SelectedIndexChanged(object sender, EventArgs e)
{
+ // extract listviewitem index and text from sender
+ if (lstInventory.FocusedItem != null)
+ {
+ txtConsole.AppendText("\r\n\r\nSelected item " + lstInventory.FocusedItem.Index + ": " + lstInventory.FocusedItem.Text);
+ }
+
if (lstInventory.FocusedItem == null || lstInventory.FocusedItem.Index == -1)
{
return;
@@ -979,7 +986,8 @@ private void TabControl1_DrawItem(object sender, DrawItemEventArgs e) //Skills
private async void FrmMain_Load(object sender, EventArgs e)
{
- Text = "SoG: Savegame Editor v" + Application.ProductVersion + " by tolik518";
+ String Debug = Debugger.IsAttached ? "[Debug]" : "";
+ Text = "SoG: Savegame Editor v" + Application.ProductVersion + " by tolik518 " + Debug;
ITextBoxWrapper txtConsoleWrapped = new UITextBox(txtConsole);
diff --git a/SoG_SGreader/SoG_SGreader.csproj b/SoG_SGreader/SoG_SGreader.csproj
index 5364276..c2a975b 100644
--- a/SoG_SGreader/SoG_SGreader.csproj
+++ b/SoG_SGreader/SoG_SGreader.csproj
@@ -16,7 +16,7 @@
8
publish\
- true
+ false
Disk
false
Foreground
@@ -30,6 +30,7 @@
false
true
true
+ true
AnyCPU
diff --git a/SoG_SGreader/VersionInc.cs b/SoG_SGreader/VersionInc.cs
index 8f09593..11b4a4f 100644
--- a/SoG_SGreader/VersionInc.cs
+++ b/SoG_SGreader/VersionInc.cs
@@ -1,7 +1,7 @@
using System.Reflection;
-[assembly: AssemblyVersion("0.8.0")]
-[assembly: AssemblyFileVersion("0.8.0.1452")]
-[assembly: AssemblyInformationalVersionAttribute("0.8.0")]
+[assembly: AssemblyVersion("0.8.1")]
+[assembly: AssemblyFileVersion("0.8.1.1612")]
+[assembly: AssemblyInformationalVersionAttribute("0.8.1")]
diff --git a/SoG_SGreader/VersionInc.tt b/SoG_SGreader/VersionInc.tt
index 62aba72..ce7953a 100644
--- a/SoG_SGreader/VersionInc.tt
+++ b/SoG_SGreader/VersionInc.tt
@@ -9,8 +9,8 @@ using System.Reflection;
<#+
public static int Major = 0;
- public static int Minor = 7;
- public static int Patch = 0;
+ public static int Minor = 8;
+ public static int Patch = 1;
public static string Version = Major + "." + Minor + "." + Patch;
public static DateTime ProjectStartedDate = new DateTime(year: 2020, month: 3, day: 12);