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

◆ OnSelectKBPreset()

void ScriptedWidgetEventHandler::OnSelectKBPreset ( int index)
inlineprotected

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

62 {
63 string profile_text;
64 GetGame().GetInput().GetProfileName( index, profile_text );
65 m_KBDropdown.SetText( profile_text );
66 GetGame().GetInput().SetProfile( index );
68 m_KBDropdown.Close();
69 }
proto native Input GetInput()
proto native int SetProfile(int index)
setting active profile
proto int GetProfileName(int profile_index, out string name)
gets profile by index
ref DropdownPrefab m_KBDropdown
Определения KeybindingsGroup.c:11
void ReloadProfiles()
Определения KeybindingsGroup.c:79
proto native CGame GetGame()

Перекрестные ссылки GetGame(), CGame::GetInput(), Input::GetProfileName(), m_KBDropdown, ReloadProfiles() и Input::SetProfile().

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