tModLoader v2024.02
A mod to make and play Terraria mods
BigProgressBarSystem Class Reference

Public Member Functions

void BindTo (Preferences preferences)
 
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 ()
 

Static Public Member Functions

static void ToggleShowText ()
 

Static Public Attributes

static bool ShowText = true
 

Properties

NeverValidProgressBar NeverValid [get]
 

Member Function Documentation

◆ TryGetSpecialVanillaBossBar()

bool 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.