tModLoader v2025.04
A mod to make and play Terraria mods
PlayerDrawLayer.Multiple Class Reference

Places this layer into multiple Positions. Use this as a helper for layers that need to move around in the draw order rather than making multiple PlayerDrawLayer 'slots' manually. An example of this can be seen in PlayerDrawLayers.tML.cs. Note how the conditions for FrontAccFront and HeldItem are mutually exclusive, ensuring that the layer will only be drawn once for a given player. More...

Inherits PlayerDrawLayer.Position, and IEnumerable.

Public Member Functions

 Multiple ()
 
void Add (Between position, Condition condition)
 
delegate bool Condition (PlayerDrawSet drawInfo)
 
IEnumerator GetEnumerator ()
 

Properties

IList<(Between, Condition)> Positions = new List<(Between, Condition)>() [get]
 

Detailed Description

Places this layer into multiple Positions. Use this as a helper for layers that need to move around in the draw order rather than making multiple PlayerDrawLayer 'slots' manually.

An example of this can be seen in PlayerDrawLayers.tML.cs

. Note how the conditions for FrontAccFront and HeldItem are mutually exclusive, ensuring that the layer will only be drawn once for a given player.