MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / OnAmbientSoundSelect

Method OnAmbientSoundSelect

editor/WorldTexturesDialog.cpp:2627–2638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2625#include "DallasSoundDlg.h"
2626
2627void CWorldTexturesDialog::OnAmbientSoundSelect() {
2628 CDallasSoundDlg dlg;
2629
2630 int selected = m_ambient_sound_combo.GetSelected();
2631 if (selected != -1)
2632 dlg.m_SoundName = Sounds[selected].name;
2633
2634 if (dlg.DoModal() == IDCANCEL)
2635 return;
2636
2637 m_ambient_sound_combo.SetSelected(dlg.m_SoundIndex);
2638}
2639
2640void CWorldTexturesDialog::OnCheckBreakable() {
2641 int n = D3EditState.texdlg_texture;

Callers

nothing calls this directly

Calls 3

GetSelectedMethod · 0.45
DoModalMethod · 0.45
SetSelectedMethod · 0.45

Tested by

no test coverage detected