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

Method AddChangeableText

Descent3/newui_core.cpp:2051–2056  ·  view source on GitHub ↗

adds a static text item

Source from the content-addressed store, hash-verified

2049
2050// adds a static text item
2051char *newuiSheet::AddChangeableText(int buflen) {
2052 newuiSheet::t_gadget_desc *gadget = AddGadget(-1, GADGET_CHANGEABLE_TXT, NULL);
2053 gadget->internal = (void *)(size_t)buflen;
2054 gadget->parm.p = mem_malloc(buflen);
2055 return (char *)gadget->parm.p;
2056}
2057
2058// adds a hotspot :(, should word wrap too.
2059void newuiSheet::AddHotspot(const char *title, int16_t w, int16_t h, int16_t id, bool group) {

Callers 1

setupMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected