abyss menu 2 fix
This commit is contained in:
parent
0885b98c83
commit
fbf020c4eb
3 changed files with 34 additions and 0 deletions
|
|
@ -77,5 +77,12 @@ namespace PvZ_Fusion_Translator.Patches.GameObjects
|
||||||
{
|
{
|
||||||
UpdateAbyss2Text(__instance);
|
UpdateAbyss2Text(__instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HarmonyPatch(nameof(AbyssMenu2.ShowBag))]
|
||||||
|
[HarmonyPostfix]
|
||||||
|
private static void ShowBag(AbyssMenu2 __instance)
|
||||||
|
{
|
||||||
|
UpdateAbyss2Text(__instance);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
using HarmonyLib;
|
||||||
|
using Il2Cpp;
|
||||||
|
using Il2CppTMPro;
|
||||||
|
using PvZ_Fusion_Translator.AssetStore;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace PvZ_Fusion_Translator.Patches.GameObjects.ButtonObjects
|
||||||
|
{
|
||||||
|
[HarmonyPatch(typeof(AbyssCheckSellMenu))]
|
||||||
|
public static class AbyssCheckSellMenu_Patch
|
||||||
|
{
|
||||||
|
[HarmonyPatch(nameof(AbyssCheckSellMenu.SellIcon))]
|
||||||
|
[HarmonyPostfix]
|
||||||
|
private static void SellIcon(AbyssCheckSellMenu __instance)
|
||||||
|
{
|
||||||
|
AbyssMenu2.Instance.UpdateIcons();
|
||||||
|
}
|
||||||
|
|
||||||
|
[HarmonyPatch(nameof(AbyssCheckSellMenu.MoveInBag))]
|
||||||
|
[HarmonyPostfix]
|
||||||
|
private static void MoveInBag(AbyssCheckSellMenu __instance)
|
||||||
|
{
|
||||||
|
AbyssMenu2.Instance.UpdateIcons();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -448,6 +448,7 @@
|
||||||
<Compile Include="Log.cs" />
|
<Compile Include="Log.cs" />
|
||||||
<Compile Include="ModFeatures.cs" />
|
<Compile Include="ModFeatures.cs" />
|
||||||
<Compile Include="AssetStore\AudioStore.cs" />
|
<Compile Include="AssetStore\AudioStore.cs" />
|
||||||
|
<Compile Include="Patches\GameObjects\ButtonObjects\AbyssCheckSellMenu_Patch.cs" />
|
||||||
<Compile Include="Patches\GameObjects\ButtonObjects\AbyssBuffButton_Patch.cs" />
|
<Compile Include="Patches\GameObjects\ButtonObjects\AbyssBuffButton_Patch.cs" />
|
||||||
<Compile Include="Patches\GameObjects\ButtonObjects\AbyssLevelEnter_Patch.cs" />
|
<Compile Include="Patches\GameObjects\ButtonObjects\AbyssLevelEnter_Patch.cs" />
|
||||||
<Compile Include="Patches\GameObjects\ButtonObjects\BaseMenu_Patch.cs" />
|
<Compile Include="Patches\GameObjects\ButtonObjects\BaseMenu_Patch.cs" />
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue