/// <summary> /// Handles showing the tooltip when the equipment window is open /// </summary> public void ShowToolTipEquipmentView(IDescribable description, bool showSaleValue = true, float size = 1) { toolTip.SetActive(true); toolTip.transform.position = toolTipLocation.position; toolTipTitle.text = description.GetTitle(); toolTipStats.text = description.GetDescription(showSaleValue); toolTip.GetComponent <RectTransform>().localScale = new Vector3(size, size, size); }
public void RefreshToolTip(IDescribable description, bool showSaleValue = true, float size = 1) { toolTipTitle.text = description.GetTitle(); toolTipStats.text = description.GetDescription(showSaleValue); toolTip.GetComponent <RectTransform>().localScale = new Vector3(size, size, size); }