public static void OnRecipePointerEnter(int index) { if (Craft.Recipes[index] != null) { InventoryUI.OnHooveringRecipe = true; RecipePopupInfos.Show(index); //Display the recipe info panel } }
void Update() { if (OnHoovering) { InventoryPopupInfos.ChangePosition(); } if (OnHooveringRecipe) { RecipePopupInfos.ChangePosition(); } }
public static void OnRecipePointerExit() { InventoryUI.OnHooveringRecipe = false; RecipePopupInfos.Hide(); }