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

Method GetCurrentOption

Descent3/newui_core.cpp:861–867  ·  view source on GitHub ↗

returns current option

Source from the content-addressed store, hash-verified

859
860// returns current option
861int16_t newuiMenu::GetCurrentOption() const {
862 if (m_cursheetidx != -1) {
863 return m_sheetbtn[m_cursheetidx].GetID();
864 }
865
866 return -1;
867}
868
869newuiSheet *newuiMenu::GetCurrentSheet() const { return m_cursheet; }
870

Callers 3

CtlConfigFunction · 0.80
OptionsMenuFunction · 0.80

Calls 1

GetIDMethod · 0.80

Tested by

no test coverage detected