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

◆ UpdateToolbarText()

void UIScriptedMenu::UpdateToolbarText ( )
inlineprotected

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

386 {
387 UAInputAPI inputAPI = GetUApi();
388 int target_idx = inputAPI.PresetCurrent() + 1;
389 int count = inputAPI.PresetCount();
390 if (target_idx >= inputAPI.PresetCount())
391 {
392 target_idx = 0;
393 }
394
395 m_NextPresetText = inputAPI.PresetName(target_idx);
396 if (m_NextPresetText == InputUtils.PRESET_OLD)
397 {
398 m_NextPresetText = "#STR_UAPRESET_ChangeTo_0";
399 }
400 else if (m_NextPresetText == InputUtils.PRESET_NEW)
401 {
402 m_NextPresetText = "#STR_UAPRESET_ChangeTo_1";
403 }
404 else
405 {
406 m_NextPresetText = "Invalid console preset name: " + m_NextPresetText;
407 }
408 }
proto native UAInputAPI GetUApi()
proto native owned string PresetName(int index)
proto native int PresetCurrent()
proto native int PresetCount()
string m_NextPresetText
Определения ControlsXboxNew.c:31

Перекрестные ссылки GetUApi(), m_NextPresetText, InputUtils::PRESET_NEW, InputUtils::PRESET_OLD, UAInputAPI::PresetCount(), UAInputAPI::PresetCurrent() и UAInputAPI::PresetName().

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