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

Method OnSelendokSoundPulldown

editor/WorldSoundsDialog.cpp:557–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555}
556
557void CWorldSoundsDialog::OnSelendokSoundPulldown() {
558 int i, cur;
559 char name[200];
560
561 cur = SendDlgItemMessage(IDC_SOUND_PULLDOWN, CB_GETCURSEL, 0, 0);
562 SendDlgItemMessage(IDC_SOUND_PULLDOWN, CB_GETLBTEXT, cur, (LPARAM)(LPCTSTR)name);
563
564 i = FindSoundName(name);
565
566 if (i == -1) {
567 mprintf(0, "Possible corrupted sound list, but probably nothing.");
568 UpdateDialog();
569 }
570
571 D3EditState.current_sound = i;
572 UpdateDialog();
573}
574
575void CWorldSoundsDialog::UpdateDialog() {
576 CEdit *ebox;

Callers

nothing calls this directly

Calls 1

FindSoundNameFunction · 0.85

Tested by

no test coverage detected