806 {
807 Widget toolbarBackSpacer = layoutRoot.FindAnyWidget(
"BackSpacer");
808
809 RichTextWidget toolbarSelectIcon = RichTextWidget.Cast(layoutRoot.FindAnyWidget("SelectIcon"));
810 RichTextWidget toolbarBackIcon = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
811
812 string selectAction;
813 string backAction;
814 int controllerID;
815
816 if (
GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer() &&
GetGame().GetInput().GetCurrentInputDevice() ==
EInputDeviceType.MOUSE_AND_KEYBOARD)
817 {
818 selectAction = "UAMenuSelect";
819 backAction = "UAMenuBack";
820 controllerID = EUAINPUT_DEVICE_KEYBOARDMOUSE;
821 }
822 else
823 {
824 selectAction = "UAUISelect";
825 backAction = "UAUIBack";
826 controllerID = EUAINPUT_DEVICE_CONTROLLER;
827 }
828
829 toolbarSelectIcon.SetText(InputUtils.GetRichtextButtonIconFromInputAction(selectAction, "", controllerID, InputUtils.ICON_SCALE_TOOLBAR));
830 toolbarBackIcon.SetText(InputUtils.GetRichtextButtonIconFromInputAction(backAction, "", controllerID, InputUtils.ICON_SCALE_TOOLBAR));
832 }
proto native CGame GetGame()