TurretAnimYSort
The bias added to where a building's turret animation falls in the draw order.
Specification
- Applies to
- BuildingType
- File
rules.ini- Section
[<ObjectType ID>]- Value
- integer
- When omitted
0
TurretAnimYSort changes whether a building’s turret animation is drawn over or under nearby objects, without moving it on screen. A higher value draws the animation later, over objects it would otherwise fall behind. A lower value draws it earlier. The value is in leptons and is added to the position the animation sorts by among the objects in its layer.
Use it to correct a turret moved up with a negative TurretAnimY or to the right with a positive TurretAnimX. Either shift also moves the animation back in the draw order. TurretAnimX and TurretAnimY move the artwork itself.
The key applies only to a turret drawn as an animation that sorts on its own:
- A
TurretAnimIsVoxel=yesbuilding draws a voxel turret and has no turret animation to sort. - A
BarrelAnimIsVoxel=yesbuilding draws its turret animation itself, together with the barrel, so the animation takes no separate place in the draw order.