TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ ModifyTooltips()

override void Terraria.ModLoader.Default.Patreon.PatreonItem.ModifyTooltips ( List< TooltipLine > tooltips)
inlinevirtualinherited

Allows you to modify all the tooltips that display for this item. See here for information about TooltipLine. To hide tooltips, please use M:Terraria.ModLoader.TooltipLine.Hide and defensive coding.

Parameters
tooltipsThe tooltips.

Reimplemented from Terraria.ModLoader.ModItem.

Definition at line 36 of file PatreonItem.cs.

37 {
38 //IL_001b: Unknown result type (might be due to invalid IL or missing references)
39 TooltipLine line = new TooltipLine(base.Mod, "PatreonThanks", Language.GetTextValue("tModLoader.PatreonSetTooltip"))
40 {
41 OverrideColor = Color.Aquamarine
42 };
43 tooltips.Add(line);
44 }
static string GetTextValue(string key)
Retrieves the text value for a specified localization key. The text returned will be for the currentl...
Definition Language.cs:35
Contains methods to access or retrieve localization values. The Localization Guideteaches more about ...
Definition Language.cs:12

References Terraria.Localization.Language.GetTextValue().

+ Here is the call graph for this function: