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

◆ PreDraw()

virtual bool Terraria.ModLoader.GlobalBossBar.PreDraw ( SpriteBatch spriteBatch,
NPC npc,
ref BossBarDrawParams drawParams )
inlinevirtual

Allows you to draw things before the default draw code is ran. Return false to prevent drawing the bar. Returns true by default.

Parameters
spriteBatchThe spriteBatch that is drawn on
npcThe NPC this bar is focused on
drawParamsThe draw parameters for the boss bar
Returns
true for allowing drawing, false for preventing drawing

Definition at line 28 of file GlobalBossBar.cs.

29 {
30 return true;
31 }