This commit is contained in:
warawanaidene
2023-09-13 15:16:25 -04:00
parent 22e6f9e76c
commit 19b9199721
21 changed files with 703 additions and 0 deletions

44
Plugin.cs Normal file
View File

@@ -0,0 +1,44 @@
using BepInEx;
using ShowMeTheStats;
using UnityEngine;
namespace Plugin
{
[BepInPlugin("com.moddingstatshelper.aki", "Modding Stats Helper", "1.0")]
public class Plugin : BaseUnityPlugin
{
void Awake()
{
new ItemShowTooltipPatch().Enable();
new ShowTooltipPatch().Enable();
new WeaponUpdatePatch().Enable();
new DropDownSlotContextPatch().Enable();
new SlotViewPatch().Enable();
new ScreenTypePatch().Enable();
new DropDownSlotContextClosePatch().Enable();
}
void Update()
{
if (Globals.isWeaponModding)
{
bool isKeyDown = Input.GetKey(KeyCode.LeftControl);
if (isKeyDown && !Globals.isKeyPressed)
{
Globals.isKeyPressed = true;
Globals.simpleTooltip.Show("", null, 0.1f, null);
}
else if (!isKeyDown && Globals.isKeyPressed)
{
Globals.isKeyPressed = false;
Globals.simpleTooltip.Show("", null, 0.1f, null);
}
}
}
}
}