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

◆ HandleKeys()

void ScriptConsoleSoundsTab::HandleKeys ( )
inlineprotected

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

270 {
271 bool playRequested = KeyState(KeyCode.KC_P) != 0;
272 if (playRequested)
273 {
274 int selected_row_index = m_SoundsTextListbox.GetSelectedRow();
275
276 if (m_SoundSet)
277 m_SoundSet.Stop();
278 if (selected_row_index != -1)
279 {
280 string soundSetName;
281 m_SoundsTextListbox.GetItemText(selected_row_index, 0, soundSetName);
282
283 m_SoundSet = SEffectManager.PlaySoundEnviroment(soundSetName, GetMapPos());
284 m_SoundSet.SetAutodestroy(true);
285 }
286 }
287 }
vector GetMapPos()
Определения ScriptConsoleSoundsTab.c:294
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().