public override void PostDraw(AccessorySlotType context, Item item, Vector2 position, bool isHovered) { // if this is the last enabled slot if (context == AccessorySlotType.FunctionalSlot && ContentInstance <UtilitySlot> .Instances.Last(slot => slot.IsEnabled()) == this) { UtilitySlotsEquipPage.DrawPartiallyFunctionalAccDetails(position); } }
public override void OnMouseHover(AccessorySlotType context) { if (context == AccessorySlotType.FunctionalSlot) { if (FunctionalItem.IsAir) { Main.hoverItemName = Language.GetTextValue("Mods.UtilitySlots.SlotText"); } else { GlobalItemHook.UtilityHoverItem = Main.HoverItem; } } }
public override bool CanAcceptItem(Item checkItem, AccessorySlotType slotType) => slotType == AccessorySlotType.DyeSlot || slotType == AccessorySlotType.FunctionalSlot && UtilityAccessories.GetHandler(checkItem) != null;