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

◆ HandleKeys()

void ScriptConsoleSoundsTab::HandleKeys ( )
inlineprotected

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

272 {
273 bool playRequested = KeyState(KeyCode.KC_P) != 0;
274 if (playRequested)
275 {
276 int selected_row_index = m_SoundsTextListbox.GetSelectedRow();
277
278 if (m_SoundSet)
279 m_SoundSet.Stop();
280 if (selected_row_index != -1)
281 {
282 string soundSetName;
283 m_SoundsTextListbox.GetItemText(selected_row_index, 0, soundSetName);
284
285 m_SoundSet = SEffectManager.PlaySoundEnviroment(soundSetName, GetMapPos());
286 m_SoundSet.SetAutodestroy(true);
287 }
288 }
289 }
vector GetMapPos()
Определения ScriptConsoleSoundsTab.c:296
static EffectSound m_SoundSet
Определения ScriptConsoleSoundsTab.c:24
TextListboxWidget m_SoundsTextListbox
Определения ScriptConsoleSoundsTab.c:22
KeyCode
Определения EnSystem.c:157
proto native int KeyState(KeyCode key)

Перекрестные ссылки GetMapPos(), KeyState(), m_SoundSet, m_SoundsTextListbox и SEffectManager::PlaySoundEnviroment().

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