The "vngen_label_replace_ext" Function
|real/string||The ID of the label to replace|
|string/macro||The text string to display as a label (or keyword |
|real/macro||The horizontal texture offset, or origin point, relative to the top-left corner|
|real/macro||The vertical texture offset, or origin point, relative to the top-left corner|
|integer/macro||Sets the automatic scaling mode for the label|
|real||The width in pixels before text is wrapped into a new line|
|font/macro||The font to draw text in, where |
|color/macro||The color to draw text in, where |
|real||Sets the duration of the fade transition, in seconds|
|integer/macro||Sets the ease mode to perform the transition in|
|real/string||Optional: Sets the language flag for the label|
Replaces the input entity ID with extra options 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.
Note that labels are displayed as a surface, or texture, and the exact dimensions of this texture may not be known. As a result, functions like
scaling may not behave as expected. It is important to test your label actions and design your fonts and linebreaks to a standard which results in predictable texture dimensions.
See Macros & Keywords for a list of available style modes and transition animations. See Language Functions for details on multi-language support.