- Crafting UI fully functional - Crafting Stat stones and modular equippable items fully functional Notes: - Urgent need for exclusive(auto sorted) inventory for stones only - Something to do with the "trash" modular items instead of just selling - Add new uses for gold besides equipment, preset items will probably be worthless with modular crafting
24 lines
639 B
C#
24 lines
639 B
C#
|
|
using UnityEngine.EventSystems;
|
|
|
|
namespace Kryz.CharacterStats.Examples
|
|
{
|
|
public class CraftingSlot : ItemSlot
|
|
{
|
|
protected override void OnValidate()
|
|
{
|
|
base.OnValidate();
|
|
}
|
|
|
|
public override void OnPointerEnter(PointerEventData eventData)
|
|
{
|
|
ItemTooltip.Instance.ShowTooltip(Item);
|
|
EquippableItemInstance equippedInSameSlot = EquipmentPanel.Instance.GetEquippedItemOnSpecificSlot(((EquippableItemInstance)Item).EquipmentType);
|
|
if (equippedInSameSlot != null && !string.IsNullOrEmpty(equippedInSameSlot.ItemName))
|
|
{
|
|
EquippedItemTooltip.Instance.ShowTooltip(equippedInSameSlot);
|
|
}
|
|
}
|
|
}
|
|
}
|