/// <summary>
/// Handles hovering over the slot
/// </summary>
public void OnHoverEnter()
{
Hovering = true;
UWHUD.instance.ContextMenu.text = "";
ObjectInteraction objInt = UWCharacter.Instance.playerInventory.GetObjectIntAtSlot(slotIndex);
if (objInt != null)
{
string ObjectName = "";
string UseString = "";
ObjectName = objInt.GetComponent <object_base>().ContextMenuDesc(objInt.item_id);
if (CurrentObjectInHand == null)
{
switch (UWCharacter.InteractionMode)
{
case UWCharacter.InteractionModeUse:
UseString = "L-Click to " + objInt.UseVerb() + " R-Click to " + objInt.PickupVerb();
break;
case UWCharacter.InteractionModeLook:
UseString = "L-Click to " + objInt.UseVerb() + " R-Click to " + objInt.ExamineVerb();
break;
case UWCharacter.InteractionModePickup:
UseString = "L-Click to " + objInt.UseVerb() + " R-Click to " + objInt.PickupVerb();
break;
}
}
else
{
UseString = "L-Click to " + objInt.UseObjectOnVerb_Inv();
}
UWHUD.instance.ContextMenu.text = ObjectName + "\n" + UseString;
}
}