![]() |
tModLoader v2024.07
A mod to make and play Terraria mods
|
Holds data required for boss bar drawing. More...
Public Attributes | |
Vector2 | BarCenter |
The screen position of the center of the bar. | |
Texture2D | BarTexture |
The texture with fixed dimensions (516x348) containing all the necessary parts. | |
Color | IconColor |
The tint of the icon. | |
Rectangle | IconFrame |
The icon textures frame. | |
float | IconScale |
The scale the icon is drawn with. Defaults to 1f, modify if icon is bigger or smaller than 26x28. | |
Texture2D | IconTexture |
The displayed icon texture. | |
float | Life |
The current life of the boss | |
float | LifeMax |
The max life of the boss (the amount it spawned with) | |
float | Shield |
The current shield of the boss | |
float | ShieldMax |
The max shield of the boss (may be 0 if the boss has no shield) | |
bool | ShowText |
If the current life (or shield) of the boss should be written on the bar. | |
Vector2 | TextOffset |
The text offset from the center (BarCenter) | |
Holds data required for boss bar drawing.