|
|
@@ -5,6 +5,7 @@ using System.Collections;
|
|
|
using System.Reflection;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Globalization;
|
|
|
+using GadgetCore;
|
|
|
|
|
|
namespace RecipeMenuCore.Patches
|
|
|
{
|
|
|
@@ -29,9 +30,12 @@ namespace RecipeMenuCore.Patches
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
var item = new Item(GetItemId(__instance, id, ___craftType, ___curRecipePage), 1, 0, 0, 0, new int[3], new int[3]);
|
|
|
var itemInfo = ItemRegistry.GetItem(item.id);
|
|
|
|
|
|
+ PatchMethods.HoverItem(item);
|
|
|
+
|
|
|
___txtHoverStat[0].text = string.Empty;
|
|
|
___txtHoverStat[1].text = ___txtHoverStat[0].text;
|
|
|
___txtHoverStatInfo.text = string.Empty;
|
|
|
@@ -43,18 +47,8 @@ namespace RecipeMenuCore.Patches
|
|
|
___itemAspect[2].text = string.Empty;
|
|
|
___itemLevel.text = string.Empty;
|
|
|
|
|
|
- if (Camera.main.ScreenToWorldPoint(Input.mousePosition).y < MenuScript.player.transform.position.y - 4.5f)
|
|
|
- ___hoverItem.transform.localPosition = new Vector3(5f, 0f, -4.55f);
|
|
|
- else
|
|
|
- ___hoverItem.transform.localPosition = new Vector3(5f, -4f, -4.55f);
|
|
|
-
|
|
|
- ___hoverDroid.SetActive(false);
|
|
|
- ___itemexpbar.SetActive(false);
|
|
|
-
|
|
|
if (item.id > 0)
|
|
|
{
|
|
|
- ___itemName.text = itemInfo.Name;
|
|
|
- ___itemName.color = Color.white;
|
|
|
___itemDesc.text = GenerateDescription(itemInfo);
|
|
|
|
|
|
bool hasStats = false;
|
|
|
@@ -63,11 +57,8 @@ namespace RecipeMenuCore.Patches
|
|
|
{
|
|
|
if (gearBaseStats[i] > 0)
|
|
|
{
|
|
|
- ___itemStat[i].text = "+" + gearBaseStats[i];
|
|
|
hasStats = true;
|
|
|
}
|
|
|
- else
|
|
|
- ___itemStat[i].text = string.Empty;
|
|
|
}
|
|
|
___txtStats.SetActive(hasStats);
|
|
|
___hoverItem.SetActive(true);
|