Skip to content

Commit

Permalink
Fixed bug where inventory would be broken
Browse files Browse the repository at this point in the history
  • Loading branch information
tolik518 committed Aug 10, 2024
1 parent a56e61e commit feaf8fc
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion SoG_SGreader/Forms/FrmLoadSaveGame.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions SoG_SGreader/Forms/FrmMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions SoG_SGreader/Forms/FrmMain.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using SoG_SGreader.Wrapper;
using System;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down
3 changes: 2 additions & 1 deletion SoG_SGreader/SoG_SGreader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<TargetFrameworkProfile />
<LangVersion>8</LangVersion>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<Install>false</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
Expand All @@ -30,6 +30,7 @@
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
<ForceDesignerDPIUnaware>true</ForceDesignerDPIUnaware>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down
6 changes: 3 additions & 3 deletions SoG_SGreader/VersionInc.cs
Original file line number Diff line number Diff line change
@@ -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")]

4 changes: 2 additions & 2 deletions SoG_SGreader/VersionInc.tt
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit feaf8fc

Please sign in to comment.