Skip to main content

The "sys_scale_init" Function

Syntax#

sys_scale_init(entity, index, width, height, width_init, height_init, scaling);
ArgumentTypeDescription
entityintegerThe data structure of the entity to be scaled
indexintegerThe index of the row containing the target entity
widthrealThe current width in pixels of the reference area being scaled against
heightrealThe current height in pixels of the reference area being scaled against
width_initrealThe initial width in pixels of the reference area being scaled against
height_initrealThe initial height in pixels of the reference area being scaled against
scalinginteger/macroSets the scaling mode to perform on the target entity

Description#

Applies a given scaling technique to the input entity on initialization. Scaling modes are unique from scale modifications and will persist through regular modifications.

As this script is run automatically by any actions that require scaling, it is almost never necessary to run sys_scale_init manually.

See Macros & Keywords for a list of available scaling modes.

note

Note: This script should not be confused with vngen_set_scale, which is completely unrelated.