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

◆ UpdateToolbarText()

void UIScriptedMenu::UpdateToolbarText ( )
inlineprotected

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

378 {
379 UAInputAPI inputAPI = GetUApi();
380 int target_idx = inputAPI.PresetCurrent() + 1;
381 int count = inputAPI.PresetCount();
382 if (target_idx >= inputAPI.PresetCount())
383 {
384 target_idx = 0;
385 }
386
387 m_NextPresetText = inputAPI.PresetName(target_idx);
388 if (m_NextPresetText == InputUtils.PRESET_OLD)
389 {
390 m_NextPresetText = "#STR_UAPRESET_ChangeTo_0";
391 }
392 else if (m_NextPresetText == InputUtils.PRESET_NEW)
393 {
394 m_NextPresetText = "#STR_UAPRESET_ChangeTo_1";
395 }
396 else
397 {
398 m_NextPresetText = "Invalid console preset name: " + m_NextPresetText;
399 }
400 }
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().