tModLoader v0.11.8.9
A mod to make and play Terraria mods
TooltipLine.cs
Go to the documentation of this file.
1using Microsoft.Xna.Framework;
2
3namespace Terraria.ModLoader
4{
8 public class TooltipLine
9 {
13 public readonly string mod;
17 public readonly string Name;
21 public string text;
25 public bool isModifier = false;
29 public bool isModifierBad = false;
33 public Color? overrideColor = null;
34
35 internal bool oneDropLogo = false;
36
96 public TooltipLine(Mod mod, string name, string text) {
97 this.mod = mod.Name;
98 this.Name = name;
99 this.text = text;
100 }
101
102 internal TooltipLine(string mod, string name, string text) {
103 this.mod = mod;
104 this.Name = name;
105 this.text = text;
106 }
107
108 internal TooltipLine(string name, string text) {
109 this.mod = "Terraria";
110 this.Name = name;
111 this.text = text;
112 }
113 }
114}
Mod is an abstract class that you will override. It serves as a central place from which the mod's co...
Definition: Mod.cs:25
This class serves as a way to store information about a line of tooltip for an item....
Definition: TooltipLine.cs:9
bool isModifier
Whether or not this tooltip gives prefix information. This will make it so that the tooltip is colore...
Definition: TooltipLine.cs:25
bool isModifierBad
If isModifier is true, this determines whether the tooltip is colored green or red.
Definition: TooltipLine.cs:29
readonly string Name
The name of the tooltip, used to help you identify its function.
Definition: TooltipLine.cs:17
string text
The actual text that this tooltip displays.
Definition: TooltipLine.cs:21
TooltipLine(Mod mod, string name, string text)
Creates a tooltip line object with the given mod, identifier name, and text.
Definition: TooltipLine.cs:96
readonly string mod
The name of the mod adding this tooltip line. This will be "Terraria" for all vanilla tooltip lines.
Definition: TooltipLine.cs:13
Color? overrideColor
This completely overrides the color the tooltip is drawn in. If it is set to null (the default value)...
Definition: TooltipLine.cs:33