when a new sheet is realized, this function will be called. passed in: the menu object, the old option and the new option respectively
| 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 |
| 947 | void 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 |
| 953 | void newuiMenu::SetOnUIFrameCB(void (*fn)()) { |