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

Method GetCurrentIndex

Descent3/newui_core.cpp:2959–2972  ·  view source on GitHub ↗

item information

Source from the content-addressed store, hash-verified

2957
2958// item information
2959int newuiListBox::GetCurrentIndex() {
2960 if (m_NumItems == 0)
2961 return 0;
2962
2963 if (m_SelectedIndex < 0)
2964 return m_SelectedIndex;
2965
2966 if (!m_Real2Virt)
2967 return 0;
2968
2969 int virt_index = m_Real2Virt[m_SelectedIndex];
2970 ASSERT(virt_index >= 0 && virt_index < m_NumItems);
2971 return virt_index;
2972}
2973
2974void newuiListBox::SetCurrentIndex(int index) {
2975 if (m_NumItems == 0)

Callers 9

PilotSelectFunction · 0.80
PilotChooseFunction · 0.80
PltSelectShipFunction · 0.80
ShipSelectDeleteLogoFunction · 0.80
ShipSelectDeleteTauntFunction · 0.80
ShowPilotPicDialogFunction · 0.80
weapon_select_dialogFunction · 0.80
DoPathFileDialogFunction · 0.80
menu.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected