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

Method SetSelected

editor/RoomListCombo.cpp:75–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void CRoomListCombo::SetSelected(int selected) {
76 // Now add all the sounsd
77 int count = GetCount();
78 for (int i = 0; i < count; i++) {
79 if (selected == (int)GetItemData(i))
80 SetCurSel(i);
81 }
82}
83
84int CRoomListCombo::GetSelected() { return (int)GetItemData(GetCurSel()); }
85

Callers 7

CopyToControlsMethod · 0.45
UpdateDialogMethod · 0.45
UpdateDialogMethod · 0.45
OnAmbientSoundSelectMethod · 0.45
OnSelectMethod · 0.45
UpdateDialogMethod · 0.45
UpdateDialogMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected