DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ UpdateControlsElements()

void ScriptedWidgetEventHandler::UpdateControlsElements ( )
inlineprotected

См. определение в файле TabberUI.c строка 458

459 {
460 Widget xbControls = m_Root.FindAnyWidget("ConsoleControls");
461 if (xbControls)
462 {
463 xbControls.Show(m_TabsCount > 1);
464
465 RichTextWidget toolbar_lb = RichTextWidget.Cast(xbControls.FindAnyWidget("TabLeftControl"));
466 RichTextWidget toolbar_rb = RichTextWidget.Cast(xbControls.FindAnyWidget("TabRightControl"));
467 if (toolbar_lb)
468 {
469 toolbar_lb.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUITabLeft", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
470 }
471
472 if (toolbar_rb)
473 {
474 toolbar_rb.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUITabRight", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
475 }
476 }
477 }
int m_TabsCount
Определения TabberUI.c:7
Widget m_Root
Определения SizeToChild.c:9
WorkspaceWidget Widget
Defined in code.

Перекрестные ссылки InputUtils::GetRichtextButtonIconFromInputAction(), InputUtils::ICON_SCALE_TOOLBAR, m_Root и m_TabsCount.

Используется в Init(), ConsoleToolbarWidgetHandlerBase::OnInputDeviceChanged(), OnInputDeviceChanged(), OnInputPresetChanged() и ConsoleToolbarWidgetHandlerBase::OnWidgetScriptInit().