Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions ShowMeTheStats.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<TargetFramework>net471</TargetFramework>
<AssemblyName>Wara-ModdingStatsHelper</AssemblyName>
</PropertyGroup>

Expand All @@ -10,11 +10,11 @@
</PropertyGroup>

<ItemGroup>
<Reference Include="Aki.Common">
<HintPath>dependencies\Aki.Common.dll</HintPath>
<Reference Include="spt-common">
<HintPath>dependencies\spt-common.dll</HintPath>
</Reference>
<Reference Include="Aki.Reflection">
<HintPath>dependencies\Aki.Reflection.dll</HintPath>
<Reference Include="spt-reflection">
<HintPath>dependencies\spt-reflection.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>dependencies\Assembly-CSharp.dll</HintPath>
Expand Down
9 changes: 5 additions & 4 deletions ShowMeTheStatsPatches.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Aki.Reflection.Patching;
using SPT.Reflection.Patching;
using EFT.InventoryLogic;
using System.Reflection;
using EFT.UI;
Expand All @@ -9,6 +9,7 @@
using System;
using System.Linq;
using EFT.UI.WeaponModding;
using UnityEngine;

namespace ShowMeTheStats
{
Expand All @@ -17,7 +18,7 @@ public class ItemShowTooltipPatch : ModulePatch
// we set the item we are hovering in the globals
protected override MethodBase GetTargetMethod()
{
return typeof(GridItemView).GetMethod("ShowTooltip", BindingFlags.Instance | BindingFlags.NonPublic);
return typeof(GridItemView).GetMethod("ShowTooltip", BindingFlags.Instance | BindingFlags.Public);
}

[PatchPrefix]
Expand All @@ -37,7 +38,7 @@ public class ShowTooltipPatch : ModulePatch

protected override MethodBase GetTargetMethod()
{
return typeof(SimpleTooltip).GetMethod("Show", BindingFlags.Instance | BindingFlags.Public);
return typeof(SimpleTooltip).GetMethod("Show", BindingFlags.Instance | BindingFlags.Public, null, new Type[] { typeof(string), typeof(Vector2), typeof(float), typeof(float), typeof(bool) }, null);
}

[PatchPrefix]
Expand Down Expand Up @@ -205,7 +206,7 @@ public class WeaponUpdatePatch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return typeof(EditBuildScreen).GetMethod("WeaponUpdate", BindingFlags.Instance | BindingFlags.NonPublic);
return typeof(EditBuildScreen).GetMethod("WeaponUpdate", BindingFlags.Instance | BindingFlags.Public);
}

[PatchPrefix]
Expand Down
Binary file removed dependencies/Aki.Common.dll
Binary file not shown.
Binary file removed dependencies/Aki.Reflection.dll
Binary file not shown.
Binary file modified dependencies/Assembly-CSharp.dll
Binary file not shown.
Binary file modified dependencies/BepInEx.dll
Binary file not shown.
Binary file modified dependencies/Comfort.dll
Binary file not shown.
Binary file modified dependencies/Newtonsoft.Json.dll
Binary file not shown.
Binary file modified dependencies/Sirenix.Serialization.dll
Binary file not shown.
Binary file modified dependencies/Unity.TextMeshPro.dll
Binary file not shown.
Binary file modified dependencies/UnityEngine.CoreModule.dll
Binary file not shown.
Binary file added dependencies/spt-common.dll
Binary file not shown.
Binary file added dependencies/spt-reflection.dll
Binary file not shown.