The "vngen_label_replace" Function
#
SyntaxArgument | Type | Description |
---|---|---|
id | real/string | The ID of the label to replace |
label | string/macro | The text string to display as a label (or keyword auto for speaker names) |
font | font/macro | The font to draw text in, where fnt_default is default (or keyword previous for no change, or keyword inherit for saved style) |
color | color/macro | The color to draw text in, where c_white is default (or keyword previous for no change, or keyword inherit for saved style) |
duration | real | Sets the duration of the fade transition, in seconds |
[ease] | integer/macro | Optional: Sets the ease mode to perform the transition in |
[lang] | real/string | Optional: Sets the language flag for the label |
#
DescriptionReplaces the input entity ID with a new string of text and fades the old label to the new one over the input duration.
As with other types of modifications, replacements made with this script are permanent and will persist until another replacement is performed. This script cannot be performed simultaneously with other replacement actions operating on the same entity ID.
See Macros & Keywords for a list of available style modes and ease modes.