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

◆ PerformSwitchPreset()

void UIScriptedMenu::PerformSwitchPreset ( )
inlineprotected

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

349 {
350 Print("PerformSwitchPreset - 1");
351 int index;
352 string preset_text;
353 UAInputAPI inputAPI = GetUApi();
354
355 index = inputAPI.PresetCurrent() + 1;
356 if (index >= inputAPI.PresetCount())
357 {
358 index = 0;
359 }
360
361 inputAPI.SupressNextFrame(true);
362 inputAPI.PresetSelect(index);
364
366
367 #ifdef PLATFORM_WINDOWS
368 GetUApi().Export(); //works on emulated consoles (-xbox,-ps4)
369 #else
370 GetUApi().SaveInputPresetMiscData(); //default console functionality
371 #endif
372
373 InputUtils.UpdateConsolePresetID();
375 }
proto native UAInputAPI GetUApi()
proto native Mission GetMission()
ScriptInvoker GetOnInputPresetChanged()
Определения gameplay.c:859
proto void Invoke(void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
invoke call on all inserted methods with given arguments
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:377
void UpdateControlsElements()
Определения ControlsXboxNew.c:527
proto native CGame GetGame()
proto void Print(void var)
Prints content of variable to console/log.

Перекрестные ссылки UAInputAPI::Export(), GetGame(), CGame::GetMission(), Mission::GetOnInputPresetChanged(), GetUApi(), ScriptInvoker::Invoke(), UAInputAPI::PresetCount(), UAInputAPI::PresetCurrent(), UAInputAPI::PresetSelect(), Print(), UAInputAPI::SaveInputPresetMiscData(), UAInputAPI::SupressNextFrame(), InputUtils::UpdateConsolePresetID(), UpdateControlsElements() и UpdateToolbarText().

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