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

◆ PerformSwitchPreset()

void UIScriptedMenu::PerformSwitchPreset ( )
inlineprotected

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

357 {
358 Print("PerformSwitchPreset - 1");
359 int index;
360 string preset_text;
361 UAInputAPI inputAPI = GetUApi();
362
363 index = inputAPI.PresetCurrent() + 1;
364 if (index >= inputAPI.PresetCount())
365 {
366 index = 0;
367 }
368
369 inputAPI.SupressNextFrame(true);
370 inputAPI.PresetSelect(index);
372
373 g_Game.GetMission().GetOnInputPresetChanged().Invoke();
374
375 #ifdef PLATFORM_WINDOWS
376 GetUApi().Export(); //works on emulated consoles (-xbox,-ps4)
377 #else
378 GetUApi().SaveInputPresetMiscData(); //default console functionality
379 #endif
380
381 InputUtils.UpdateConsolePresetID();
383 }
DayZGame g_Game
Определения DayZGame.c:3942
proto native UAInputAPI GetUApi()
proto native void SaveInputPresetMiscData()
proto native void SupressNextFrame(bool bForce)
proto native int PresetCurrent()
proto native void PresetSelect(int index)
proto native int PresetCount()
proto native void Export()
void UpdateToolbarText()
Определения ControlsXboxNew.c:385
void UpdateControlsElements()
Определения ControlsXboxNew.c:535
proto void Print(void var)
Prints content of variable to console/log.

Перекрестные ссылки UAInputAPI::Export(), g_Game, GetUApi(), UAInputAPI::PresetCount(), UAInputAPI::PresetCurrent(), UAInputAPI::PresetSelect(), Print(), UAInputAPI::SaveInputPresetMiscData(), UAInputAPI::SupressNextFrame(), InputUtils::UpdateConsolePresetID(), UpdateControlsElements() и UpdateToolbarText().

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