示例#1
0
 /// <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);
 }
示例#2
0
 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);
 }