The "vngen_textbox_replace_ext" Function
vngen_textbox_replace_ext(id, sprite, xorig, yorig, scaling, duration, ease);
|real/string||The ID of the textbox to replace|
|sprite||The new sprite to draw as a textbox|
|real/macro||The new horizontal sprite offset, or origin point, relative to the top-left corner|
|real/macro||The new vertical sprite offset, or origin point, relative to the top-left corner|
|integer/macro||Sets the new automatic scaling mode for the textbox|
|real||Sets the duration of the fade transition, in seconds|
|integer/macro||Sets the ease mode to perform the fade transition in|
Replaces the input entity ID with a new sprite and extra sprite properties and fades the old sprite 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 origin points, scaling modes, and ease modes.
vngen_textbox_replace_ext("tb", spr_new, orig_center, orig_center, scale_none, 1, ease_sin_in_out);