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

Method OnSelchangeComboObjType

editor/ObjectDialog.cpp:729–739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

727}
728
729void CObjectDialog::OnSelchangeComboObjType() {
730 // make sure to save the old item start value.
731 int old_obj_type = D3EditState.current_obj_type;
732
733 D3EditState.current_obj_type = edit_object_types[((CComboBox *)GetDlgItem(IDC_COMBO_OBJTYPE))->GetCurSel()];
734 InitObjIDComboBox((CComboBox *)GetDlgItem(IDC_COMBO_OBJID));
735 ASSERT(GetCurrentIndex() != -1);
736
737 // Draw picture of current item
738 DrawPicture(GetDlgItem(IDC_OBJ_PALETTE));
739}
740
741void CObjectDialog::OnSelchangeComboObjID() {
742 CComboBox *box = (CComboBox *)GetDlgItem(IDC_COMBO_OBJID);

Callers

nothing calls this directly

Calls 1

GetCurrentIndexFunction · 0.85

Tested by

no test coverage detected