MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / enqueueCaption

Function enqueueCaption

TheForceEngine/TFE_A11y/accessibility.cpp:510–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508 }
509
510 void enqueueCaption(const ConsoleArgList& args)
511 {
512 if (args.size() < 2) { return; }
513
514 Caption caption;
515 caption.text = args[1];
516 caption.env = CC_CUTSCENE;
517 caption.microsecondsRemaining = calculateDuration(caption.text);
518 caption.type = CC_VOICE;
519
520 enqueueCaption(caption);
521 }
522
523 void enqueueCaption(Caption caption)
524 {

Callers 1

onSoundPlayFunction · 0.85

Calls 3

calculateDurationFunction · 0.85
push_backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected