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

Method AddListBox

Descent3/newui_core.cpp:2067–2074  ·  view source on GitHub ↗

adds a listbox

Source from the content-addressed store, hash-verified

2065
2066// adds a listbox
2067newuiListBox *newuiSheet::AddListBox(int16_t w, int16_t h, int16_t id, uint16_t flags) {
2068 newuiSheet::t_gadget_desc *gadget = AddGadget(id, GADGET_LISTBOX, NULL);
2069 newuiListBox *lb = new newuiListBox;
2070 lb->Create(m_parent, id, 0, 0, w, h, flags);
2071 m_parent->RemoveGadget(lb);
2072 gadget->internal = lb;
2073 return lb;
2074}
2075
2076// adds a listbox
2077newuiComboBox *newuiSheet::AddComboBox(int16_t id, uint16_t flags) {

Callers 9

setupMethod · 0.80
PilotChooseFunction · 0.80
PltSelectShipFunction · 0.80
ShowPilotPicDialogFunction · 0.80
MainMultiplayerMenuFunction · 0.80
ShowNetgameInfoFunction · 0.80
weapon_select_dialogFunction · 0.80
DoPathFileDialogFunction · 0.80
menu.cppFile · 0.80

Calls 2

RemoveGadgetMethod · 0.80
CreateMethod · 0.45

Tested by

no test coverage detected