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

Method OnSelect

editor/SoundSourceDialog.cpp:84–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82#include "DallasSoundDlg.h"
83
84void CSoundSourceDialog::OnSelect() {
85 CDallasSoundDlg dlg;
86
87 int selected = m_sound_combo.GetSelected();
88 if (selected != -1)
89 dlg.m_SoundName = Sounds[selected].name;
90
91 if (dlg.DoModal() == IDCANCEL)
92 return;
93
94 m_sound_combo.SetSelected(dlg.m_SoundIndex);
95}

Callers

nothing calls this directly

Calls 3

GetSelectedMethod · 0.45
DoModalMethod · 0.45
SetSelectedMethod · 0.45

Tested by

no test coverage detected