TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ PreDraw()

virtual bool Terraria.ModLoader.ModNPC.PreDraw ( SpriteBatch spriteBatch,
Vector2 screenPos,
Color drawColor )
inlinevirtual

Allows you to draw things behind this NPC, or to modify the way this NPC is drawn. Substract screenPos from the draw position before drawing. Return false to stop the game from drawing the NPC (useful if you're manually drawing the NPC). Returns true by default.

Parameters
spriteBatchThe spritebatch to draw on
screenPosThe screen position used to translate world position into screen position
drawColorThe color the NPC is drawn in
Returns

Definition at line 604 of file ModNPC.cs.

605 {
606 return true;
607 }