tModLoader  0.12 Alpha
A mod to make and play Terraria mods
Terraria.DataStructures.BossBarDrawParams Struct Reference

Holds data required for boss bar drawing. More...

Public Member Functions

 BossBarDrawParams (Texture2D barTexture, Vector2 barCenter, Texture2D iconTexture, Rectangle iconFrame, Color iconColor, float lifePercentToShow, float shieldPercentToShow=0f, float iconScale=1f)
 
void Deconstruct (out Texture2D barTexture, out Vector2 barCenter, out Texture2D iconTexture, out Rectangle iconFrame, out Color iconColor, out float lifePercentToShow, out float shieldPercentToShow, out float iconScale)
 

Public Attributes

Vector2 barCenter
 The screen position of the center of the bar. More...
 
Texture2D barTexture
 The texture with fixed dimensions (516x348) containing all the necessary parts. More...
 
Color iconColor
 The tint of the icon. More...
 
Rectangle iconFrame
 The icon textures frame. More...
 
float iconScale
 The scale the icon is drawn with. Defaults to 1f, modify if icon is bigger or smaller than 26x28. More...
 
Texture2D iconTexture
 The displayed icon texture. More...
 
float lifePercentToShow
 The % the bar should be filled with. More...
 
float shieldPercentToShow
 The % the shield bar should be filled with. Defaults to 0f (no shield drawn). More...
 

Detailed Description

Holds data required for boss bar drawing.

Member Data Documentation

◆ barCenter

Vector2 Terraria.DataStructures.BossBarDrawParams.barCenter

The screen position of the center of the bar.

◆ barTexture

Texture2D Terraria.DataStructures.BossBarDrawParams.barTexture

The texture with fixed dimensions (516x348) containing all the necessary parts.

◆ iconColor

Color Terraria.DataStructures.BossBarDrawParams.iconColor

The tint of the icon.

◆ iconFrame

Rectangle Terraria.DataStructures.BossBarDrawParams.iconFrame

The icon textures frame.

◆ iconScale

float Terraria.DataStructures.BossBarDrawParams.iconScale

The scale the icon is drawn with. Defaults to 1f, modify if icon is bigger or smaller than 26x28.

◆ iconTexture

Texture2D Terraria.DataStructures.BossBarDrawParams.iconTexture

The displayed icon texture.

◆ lifePercentToShow

float Terraria.DataStructures.BossBarDrawParams.lifePercentToShow

The % the bar should be filled with.

◆ shieldPercentToShow

float Terraria.DataStructures.BossBarDrawParams.shieldPercentToShow

The % the shield bar should be filled with. Defaults to 0f (no shield drawn).