tModLoader v0.11.8.9
A mod to make and play Terraria mods
|
This class serves as a way to store information about a line of tooltip for an item. You will create and manipulate objects of this class if you use the ModifyTooltips hook. More...
Public Member Functions | |
TooltipLine (Mod mod, string name, string text) | |
Creates a tooltip line object with the given mod, identifier name, and text. More... | |
Public Attributes | |
bool | isModifier = false |
Whether or not this tooltip gives prefix information. This will make it so that the tooltip is colored either green or red. More... | |
bool | isModifierBad = false |
If isModifier is true, this determines whether the tooltip is colored green or red. More... | |
readonly string | mod |
The name of the mod adding this tooltip line. This will be "Terraria" for all vanilla tooltip lines. More... | |
readonly string | Name |
The name of the tooltip, used to help you identify its function. More... | |
Color? | overrideColor = null |
This completely overrides the color the tooltip is drawn in. If it is set to null (the default value) then the tooltip's color will not be overridden. More... | |
string | text |
The actual text that this tooltip displays. More... | |
This class serves as a way to store information about a line of tooltip for an item. You will create and manipulate objects of this class if you use the ModifyTooltips hook.
Definition at line 8 of file TooltipLine.cs.
Terraria.ModLoader.TooltipLine.TooltipLine | ( | Mod | mod, |
string | name, | ||
string | text | ||
) |
Creates a tooltip line object with the given mod, identifier name, and text.
These are the names of the vanilla tooltip lines, in the order in which they appear, along with their functions. All of them will have a mod name of "Terraria". Remember that most of these tooltip lines will not exist depending on the item.
mod | The mod instance |
name | The name of the tooltip |
text | The content of the tooltip |
Definition at line 96 of file TooltipLine.cs.
References Terraria.ModLoader.TooltipLine.mod, and Terraria.ModLoader.TooltipLine.text.
bool Terraria.ModLoader.TooltipLine.isModifier = false |
Whether or not this tooltip gives prefix information. This will make it so that the tooltip is colored either green or red.
Definition at line 25 of file TooltipLine.cs.
Referenced by Terraria.ModLoader.DrawableTooltipLine.DrawableTooltipLine().
bool Terraria.ModLoader.TooltipLine.isModifierBad = false |
If isModifier is true, this determines whether the tooltip is colored green or red.
Definition at line 29 of file TooltipLine.cs.
Referenced by Terraria.ModLoader.DrawableTooltipLine.DrawableTooltipLine().
readonly string Terraria.ModLoader.TooltipLine.mod |
The name of the mod adding this tooltip line. This will be "Terraria" for all vanilla tooltip lines.
Definition at line 13 of file TooltipLine.cs.
Referenced by Terraria.ModLoader.TooltipLine.TooltipLine().
readonly string Terraria.ModLoader.TooltipLine.Name |
The name of the tooltip, used to help you identify its function.
Definition at line 17 of file TooltipLine.cs.
Color? Terraria.ModLoader.TooltipLine.overrideColor = null |
This completely overrides the color the tooltip is drawn in. If it is set to null (the default value) then the tooltip's color will not be overridden.
Definition at line 33 of file TooltipLine.cs.
Referenced by Terraria.ModLoader.DrawableTooltipLine.DrawableTooltipLine().
string Terraria.ModLoader.TooltipLine.text |
The actual text that this tooltip displays.
Definition at line 21 of file TooltipLine.cs.
Referenced by Terraria.ModLoader.DrawableTooltipLine.DrawableTooltipLine(), and Terraria.ModLoader.TooltipLine.TooltipLine().