tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.GameContent.UI.BigProgressBar.BigProgressBarSystem Class Reference

Public Member Functions

void Draw (SpriteBatch spriteBatch)
 
bool TryGetSpecialVanillaBossBar (int netID, out IBigProgressBar bossBar)
 Gets the special IBigProgressBar associated with this vanilla NPCs netID (usually the type). More...
 
bool TryTracking (int npcIndex)
 
void Update ()
 

Properties

NeverValidProgressBar NeverValid [get]
 

Member Function Documentation

◆ TryGetSpecialVanillaBossBar()

bool Terraria.GameContent.UI.BigProgressBar.BigProgressBarSystem.TryGetSpecialVanillaBossBar ( int  netID,
out IBigProgressBar  bossBar 
)

Gets the special IBigProgressBar associated with this vanilla NPCs netID (usually the type).

Reminder: If no special bar exists or NPC.BossBar is not assigned, any NPC with a boss head index will automatically display a common boss bar shared among all simple bosses.

Parameters
netIDThe NPC netID (usually the type)
bossBarWhen this method returns, contains the IBigProgressBar associated with the specified NPC netID
Returns
true if IBigProgressBar exists; otherwise, false.