tModLoader v2024.03
A mod to make and play Terraria mods
BigProgressBarHelper Class Reference

Static Public Member Functions

static void DrawBareBonesBar (SpriteBatch spriteBatch, float lifePercent)
 
static void DrawFancyBar (SpriteBatch spriteBatch, float lifeAmount, float lifeMax, Texture2D barIconTexture, Rectangle barIconFrame)
 
static void DrawFancyBar (SpriteBatch spriteBatch, float lifeAmount, float lifeMax, Texture2D barIconTexture, Rectangle barIconFrame, float shieldCurrent, float shieldMax)
 
static void DrawHealthText (SpriteBatch spriteBatch, Rectangle area, Vector2 textOffset, float current, float max)
 Draws "<paramref name="current"/>/<paramref name="max"/>" as text centered on area , offset by textOffset . More...
 

Member Function Documentation

◆ DrawHealthText()

static void BigProgressBarHelper.DrawHealthText ( SpriteBatch  spriteBatch,
Rectangle  area,
Vector2  textOffset,
float  current,
float  max 
)
static

Draws "<paramref name="current"/>/<paramref name="max"/>" as text centered on area , offset by textOffset .

Parameters
spriteBatchThe spriteBatch that is drawn on
areaThe Rectangle that the text is centered on
textOffsetOffset for the text position
currentNumber shown left of the "/"
maxNumber shown right of the "/"