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

Function PBAddTextEffect

Descent3/Briefing.cpp:459–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457}
458
459void PBAddTextEffect(TCTEXTDESC* desc, char *text, char *description, int id) {
460 if (IsMissionMaskOK(desc->mission_mask_set, desc->mission_mask_unset) && ok_to_parse_screen) {
461 char *new_text = NULL;
462 const bool new_stuff = ParseForHotTags(text, &new_text);
463
464 CreateTextEffect(desc, new_stuff ? new_text : text, MONITOR_MAIN, current_screen, id);
465
466 if (new_text) {
467 mem_free(new_text);
468 }
469 }
470}
471
472void PBAddBmpEffect(TCBMPDESC* desc, char *description) {
473 if (IsMissionMaskOK(desc->mission_mask_set, desc->mission_mask_unset) && ok_to_parse_screen)

Callers

nothing calls this directly

Calls 3

IsMissionMaskOKFunction · 0.85
ParseForHotTagsFunction · 0.85
CreateTextEffectFunction · 0.85

Tested by

no test coverage detected