4 protected SCR_ActionHintWidgetTooltipPreset m_ActionPreset;
7 protected const string WIDGET_ACTION =
"Action";
10 override void InitContents()
30 bool SetAction(
string action)
40 bool SetActionColor(Color color)
52 return SetAction(GetDefaultAction());
56 bool ResetActionColor()
58 return SetActionColor(GetDefaultActionColor());
62 string GetDefaultAction()
71 Color GetDefaultActionColor()
74 return Color.FromInt(
UIColors.NEUTRAL_INFORMATION.PackToInt());
76 return Color.FromInt(
m_ActionPreset.m_DefaultActionColor.PackToInt());
82 class SCR_ActionHintWidgetTooltipPreset : SCR_ScriptedWidgetTooltipPreset
88 ref Color m_ActionColor;
90 string m_sDefaultAction;
91 Color m_DefaultActionColor;
97 m_sDefaultAction = m_sAction;
98 m_DefaultActionColor = m_ActionColor;