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

Method AddSimpleOption

Descent3/newui_core.cpp:959–961  ·  view source on GitHub ↗

adds an option to a menu, returns a newuiSheet object to add user interface to.

Source from the content-addressed store, hash-verified

957
958// adds an option to a menu, returns a newuiSheet object to add user interface to.
959void newuiMenu::AddSimpleOption(int16_t id, const char *title, int yoff) {
960 newuiMenu::AddOption(id, title, 0, false, yoff);
961}
962
963newuiSheet *newuiMenu::AddOption(int16_t id, const char *title, int size, bool has_sheet, int yoff) {
964 newuiMenuOptionButton *last_btn = NULL;

Callers 3

PilotSelectFunction · 0.80
CtlConfigFunction · 0.80
OptionsMenuFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected