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

◆ CreateTabs()

void UIScriptedMenu::CreateTabs ( )
inlineprotected

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

83 {
84 int sort_count = InputUtils.GetInputActionSortingMap().Count();
85 for (int i = 0; i < sort_count; i++)
86 {
87 if (InputUtils.GetInputActionSortingMap().GetElement(i) && InputUtils.GetInputActionSortingMap().GetElement(i).Count() > 0)
88 {
89 string group_name = GetUApi().SortingLocalization(InputUtils.GetInputActionSortingMap().GetKey(i));
90 group_name = Widget.TranslateString("#" + group_name); //oof
91 m_Tabber.AddTab(group_name);
92 }
93 }
94
95 if (InputUtils.GetUnsortedInputActions() && InputUtils.GetUnsortedInputActions().Count() > 0)
96 {
97 m_Tabber.AddTab(Widget.TranslateString("#layout_pc_keybinding_unsorted"));
98 }
99 m_Tabber.DisableTabs(true);
100 }
proto native UAInputAPI GetUApi()
proto native owned string SortingLocalization(int index)
TabberUI m_Tabber
Определения KeybindingsMenu.c:3
WorkspaceWidget Widget
Defined in code.

Перекрестные ссылки InputUtils::GetInputActionSortingMap(), GetUApi(), InputUtils::GetUnsortedInputActions(), m_Tabber и UAInputAPI::SortingLocalization().

Используется в Init().