7 void OnWidgetScriptInit(
Widget w)
13 #ifdef PLATFORM_CONSOLE
16 GetGame().GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
19 UpdateControlsElements();
24 #ifdef PLATFORM_CONSOLE
25 UpdateControlsElements(pInputDeviceType);
31 #ifndef PLATFORM_CONSOLE
41 #ifdef PLATFORM_CONSOLE
43 text +=
string.Format(
" %1",
InputUtils.GetRichtextButtonIconFromInputAction(
"UAUICtrlY",
"#server_browser_show / #server_browser_hide", EUAINPUT_DEVICE_CONTROLLER,
InputUtils.ICON_SCALE_TOOLBAR));
44 text +=
string.Format(
" %1",
InputUtils.GetRichtextButtonIconFromInputAction(
"UAUICtrlX",
"#server_browser_menu_connect", EUAINPUT_DEVICE_CONTROLLER,
InputUtils.ICON_SCALE_TOOLBAR));
45 text +=
string.Format(
" %1",
InputUtils.GetRichtextButtonIconFromInputAction(
"UAUIBack",
"#STR_settings_menu_root_toolbar_bg_ConsoleToolbar_Back_BackText0", EUAINPUT_DEVICE_CONTROLLER,
InputUtils.ICON_SCALE_TOOLBAR));
48 bool toolbarShow =
false;
51 toolbarShow = !
GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer() ||
GetGame().GetInput().GetCurrentInputDevice() ==
EInputDeviceType.CONTROLLER;