tModLoader v2024.09
A mod to make and play Terraria mods
|
Represents floating text in the game world most typically used for damage numbers and healing numbers.
For non-overlapping in-game text, such as reforge messages, use PopupText instead. Use the NewText(Rectangle, Color, int, bool, bool) or NewText(Rectangle, Color, string, bool, bool) methods to create a new instance.
In multiplayer, ID.MessageID.CombatTextInt and ID.MessageID.CombatTextString network messages can be used to sync a combat text if manually spawned.
More...
Public Member Functions | |
void | Update () |
Public Attributes | |
bool | active |
float | alpha |
int | alphaDir = 1 |
Color | color |
bool | crit |
bool | dot |
int | lifeTime |
Vector2 | position |
float | rotation |
float | scale = 1f |
string | text = "" |
Vector2 | velocity |
Properties | |
static float | TargetScale [get] |
Represents floating text in the game world most typically used for damage numbers and healing numbers.
For non-overlapping in-game text, such as reforge messages, use PopupText instead. Use the NewText(Rectangle, Color, int, bool, bool) or NewText(Rectangle, Color, string, bool, bool) methods to create a new instance.
In multiplayer, ID.MessageID.CombatTextInt and ID.MessageID.CombatTextString network messages can be used to sync a combat text if manually spawned.