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

◆ CreateTabs()

void UIScriptedMenu::CreateTabs ( )
inlineprotected

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

87 {
88 int sort_count = InputUtils.GetInputActionSortingMap().Count();
89 for (int i = 0; i < sort_count; i++)
90 {
91 if (InputUtils.GetInputActionSortingMap().GetElement(i) && InputUtils.GetInputActionSortingMap().GetElement(i).Count() > 0)
92 {
93 string group_name = GetUApi().SortingLocalization(InputUtils.GetInputActionSortingMap().GetKey(i));
94 group_name = Widget.TranslateString("#" + group_name); //oof
95 m_Tabber.AddTab(group_name);
96 }
97 }
98
99 if (InputUtils.GetUnsortedInputActions() && InputUtils.GetUnsortedInputActions().Count() > 0)
100 {
101 m_Tabber.AddTab(Widget.TranslateString("#layout_pc_keybinding_unsorted"));
102 }
103 m_Tabber.DisableTabs(true);
104 }
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().