6 protected string m_sShortcutWidgetName;
9 override bool SetTooltip(
SCR_UIInfo info, Managed instance =
null)
11 TextWidget shortcutWidget = TextWidget.Cast(
GetWidget().FindAnyWidget(m_sShortcutWidgetName));
19 shortcut = action.GetShortcut();
26 shortcut = actionInfo.GetActionName();
29 if (!shortcut.IsEmpty())
31 shortcutWidget.SetText(
string.Format(
"<action name='%1'/>", shortcut));
32 shortcutWidget.SetVisible(
true);
36 shortcutWidget.SetVisible(
false);
40 return super.SetTooltip(info, instance);