Exemple #1
0
 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();
     }
 }
Exemple #3
0
 public static void OnRecipePointerExit()
 {
     InventoryUI.OnHooveringRecipe = false;
     RecipePopupInfos.Hide();
 }