6 protected string m_sNameWidgetName;
9 protected string m_sDescriptionWidgetName;
12 protected string m_sIconWidgetName;
17 void UpdateTooltip(Managed instance =
null);
23 bool SetTooltip(
SCR_UIInfo info, Managed instance =
null)
25 if (!info)
return false;
28 TextWidget nameWidget = TextWidget.Cast(widget.FindAnyWidget(m_sNameWidgetName));
29 TextWidget descriptionWidget = TextWidget.Cast(widget.FindAnyWidget(m_sDescriptionWidgetName));
48 info.SetNameTo(nameWidget);
49 nameWidget.SetVisible(info.HasName());
52 if (descriptionWidget)
54 info.SetDescriptionTo(descriptionWidget);
55 descriptionWidget.SetVisible(info.HasDescription());
59 ImageWidget imageWidget = ImageWidget.Cast(widget.FindAnyWidget(
m_sIconWidgetName));
60 if (imageWidget && !info.SetIconTo(imageWidget))
61 imageWidget.SetVisible(
false);
67 override bool IsUnique()