Jump to content

YSortAdjust: Difference between revisions

From ModEnc²
en>Crimsonum
mNo edit summary
en>Brsajo
No edit summary
Line 14: Line 14:


Defines the adjustment, in leptons, to apply when sorting this [[animation]] object in its [[layer]]. In most cases, this affects how the animation is drawn relative to other objects on the same layer. By default, objects are sorted based on the sum of their X and Y coordinates, on which {{f|{{PAGENAME}}}} is directly applied. Therefore, negative numbers sort the animation behind and positive numbers sort the animation in front of other objects.
Defines the adjustment, in leptons, to apply when sorting this [[animation]] object in its [[layer]]. In most cases, this affects how the animation is drawn relative to other objects on the same layer. By default, objects are sorted based on the sum of their X and Y coordinates, on which {{f|{{PAGENAME}}}} is directly applied. Therefore, negative numbers sort the animation behind and positive numbers sort the animation in front of other objects.
{{Bugs}}
*{{f|{{PAGENAME}}}} only works on the ground [[layer]].


==See also==
==See also==

Revision as of 17:11, 5 February 2023

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: YSortAdjust
File(s): Art(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767.
Default: 0
Applicable to: Animations


Defines the adjustment, in leptons, to apply when sorting this animation object in its layer. In most cases, this affects how the animation is drawn relative to other objects on the same layer. By default, objects are sorted based on the sum of their X and Y coordinates, on which YSortAdjust is directly applied. Therefore, negative numbers sort the animation behind and positive numbers sort the animation in front of other objects.

Bugs/Side-Effects/Unexpected Limitations

  • YSortAdjust only works on the ground layer.

See also