ObjectInteraction.ExamineVerb C# (CSharp) Method

ExamineVerb() public method

public ExamineVerb ( ) : string
return string
    public string ExamineVerb()
    {
        return this.GetComponent<object_base>().ExamineVerb();
    }

Usage Example

    /// <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;
        }
    }
All Usage Examples Of ObjectInteraction::ExamineVerb