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

◆ UpdateControlsElements() [12/12]

void UIScriptedMenu::UpdateControlsElements ( )
inlineprotected

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

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));
831 toolbarBackSpacer.Show(m_CurrentCategory != RadialQuickbarCategory.DEFAULT);
832 }
RadialQuickbarCategory
Определения RadialQuickbarMenu.c:2
int m_CurrentCategory
Определения GesturesMenu.c:123
proto native CGame GetGame()
WorkspaceWidget Widget
Defined in code.
EInputDeviceType
Определения input.c:3

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