621 {
623
624 if (action && (!action.HasTarget() || (
m_Player &&
m_Player.GetCommand_Vehicle())))
625 {
626 TextWidget actionName;
627 Class.CastTo(actionName, widget.FindAnyWidget(descWidget));
628
629
630 if (action.GetInput().GetInputType() ==
ActionInputType.AIT_CONTINUOUS)
631 {
632 descText = descText + " " + "#action_target_cursor_hold";
633 actionName.SetText(descText);
634 }
635 else
636 {
637 actionName.SetText(descText);
638 }
639
640 widget.Show(true);
641 }
642 else
643 {
644 widget.Show(false);
645 }
646 }