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

Method SetOnOptionSwitchCB

Descent3/newui_core.cpp:947–950  ·  view source on GitHub ↗

when a new sheet is realized, this function will be called. passed in: the menu object, the old option and the new option respectively

Source from the content-addressed store, hash-verified

945// when a new sheet is realized, this function will be called.
946// passed in: the menu object, the old option and the new option respectively
947void newuiMenu::SetOnOptionSwitchCB(void (*fn)(newuiMenu *, int16_t, int16_t, void *), void *data) {
948 m_activate_sheet_cb = fn;
949 m_activate_sheet_cb_data = data;
950}
951
952// equivalent of SetUICallback, called before gadgets are drawn
953void newuiMenu::SetOnUIFrameCB(void (*fn)()) {

Callers 1

CtlConfigFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected