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

Method AddText

Descent3/newui_core.cpp:2030–2042  ·  view source on GitHub ↗

adds a static text item

Source from the content-addressed store, hash-verified

2028
2029// adds a static text item
2030void newuiSheet::AddText(const char *text, ...) {
2031 std::va_list arglist;
2032 char buf[512];
2033 int len;
2034
2035 va_start(arglist, text);
2036 len = std::vsnprintf(buf, 512, text, arglist);
2037 va_end(arglist);
2038
2039 newuiSheet::t_gadget_desc *gadget = AddGadget(-1, GADGET_STATIC_TXT, buf);
2040
2041 gadget->parm.b = false; // means small text.
2042}
2043
2044// adds a static bitmap
2045void newuiSheet::AddBitmap(int bm_handle) {

Callers 15

PilotChooseFunction · 0.80
SaveGameDialogFunction · 0.80
LoadGameDialogFunction · 0.80
DisplayNetDLLHelpFunction · 0.80
setupMethod · 0.80
weapon_select_dialogFunction · 0.80
HelpDisplayFunction · 0.80
DoMessageBoxFunction · 0.80
DoMessageBoxAdvancedFunction · 0.80
DoEditDialogFunction · 0.80
BuddyBotDownloadDataFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected