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

Method AddFirstRadioButton

Descent3/newui_core.cpp:1988–1992  ·  view source on GitHub ↗

adds a radio button to current group. initial state of radio may be set

Source from the content-addressed store, hash-verified

1986
1987// adds a radio button to current group. initial state of radio may be set
1988int *newuiSheet::AddFirstRadioButton(const char *title, int16_t id) {
1989 newuiSheet::t_gadget_desc *gadget = AddGadget(id, GADGET_RADIO, title);
1990 gadget->parm.i = 0;
1991 return &gadget->parm.i;
1992}
1993
1994// adds a radio button to current group. initial state of radio may be set
1995void newuiSheet::AddRadioButton(const char *title, int16_t id) {

Callers 6

setupMethod · 0.80
setupMethod · 0.80
setupMethod · 0.80
add_hud_optionMethod · 0.80
setupMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected