The "sys_text_style_init" Function
#
SyntaxArgument | Type | Description |
---|---|---|
entity | integer | The data structure of the entity to be styled |
index | integer | The index of the row containing the target entity |
name | string | The character name under which inheritance data is/will be stored |
font | font/macro | The font to draw text in, where fnt_default is default (or keyword 'inherit' for saved style) |
col1 | color/macro | The text top-left gradient color, where c_white is default (or keyword 'previous' for no change, or keyword 'inherit' for saved style) |
col2 | color/macro | The text top-right gradient color, where c_white is default (or keyword 'previous' for no change, or keyword 'inherit' for saved style) |
col3 | color/macro | The text bottom-right gradient color, where c_white is default (or keyword 'previous' for no change, or keyword 'inherit' for saved style) |
col4 | color/macro | The text bottom-left gradient color, where c_white is default (or keyword 'previous' for no change, or keyword 'inherit' for saved style) |
shadow | color/macro | The text shadow color, where 'none' is default (or keyword 'previous' for no change, keyword 'inherit' for saved style, or 'none' for none) |
outline | color/macro | The text outline color, where 'none' is default (or keyword 'previous' for no change, keyword 'inherit' for saved style, or 'none' for none) |
#
DescriptionProcesses text stylization, including support for style inheritance, and returns the results as a ds_map.
note
!Important note: The resulting ds_map is temporary and must be destroyed outside this script when finished to prevent memory leaks!
As this script is run automatically by any text scripts supporting style inheritance, it is never necessary to run sys_text_style_init
manually.