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

◆ UpdateDisconnectTexts()

void UIScriptedMenu::UpdateDisconnectTexts ( )
inlineprivate

Composes message depending on context.

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

70 {
71 int deviceCount = m_DisconnectedDevices.Count();
72 int count = m_DeviceOrder.Count();
73 int idx;
74 int device;
75 bool gamepadInactive = false;
76
77 m_DevicesText = string.Empty;
78 for (int i = 0; i < count; i++)
79 {
80 device = m_DeviceOrder[i];
81 idx = m_DisconnectedDevices.Find(device);
82 if (idx != -1) //is disconnected and relevant
83 {
84 m_DevicesText += m_DeviceMessages.Get(device) + " ";
85 if (device == EUAINPUT_DEVICE_CONTROLLER)
86 {
87 gamepadInactive = true;
88 if (deviceCount > 1)
89 {
90 m_DevicesText += "| ";
91 }
92 }
93 }
94 }
95
96 if (deviceCount > 1)
97 {
98 m_CaptionText = "#str_inputdevice_notification_header_multiple";
99 m_ConfirmationText = "#str_inputdevice_notification_prompt_multiple";
100 }
101 else
102 {
103 m_CaptionText = "#str_inputdevice_notification_header_single";
104 m_ConfirmationText = "#str_inputdevice_notification_prompt_single";
105 }
106 }
string m_ConfirmationText
ref array< int > m_DisconnectedDevices
ref array< int > m_DeviceOrder
ref map< int, string > m_DeviceMessages

Перекрестные ссылки m_CaptionText, m_ConfirmationText, m_DeviceMessages, m_DeviceOrder, m_DevicesText и m_DisconnectedDevices.

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