tModLoader v0.11.8.9
A mod to make and play Terraria mods
Terraria.ModLoader.Config.TooltipAttribute Class Reference

This attribute sets a hover tooltip for the annotated property or field to be shown in the ModConfig UI. This can be longer and more descriptive than Label. Starting the tooltip with $ means the tooltip should be interpreted as a Localization key. More...

+ Inheritance diagram for Terraria.ModLoader.Config.TooltipAttribute:
+ Collaboration diagram for Terraria.ModLoader.Config.TooltipAttribute:

Public Member Functions

 TooltipAttribute (string tooltip)
 

Properties

string Tooltip [get]
 

Private Attributes

readonly string tooltip
 

Detailed Description

This attribute sets a hover tooltip for the annotated property or field to be shown in the ModConfig UI. This can be longer and more descriptive than Label. Starting the tooltip with $ means the tooltip should be interpreted as a Localization key.

Definition at line 58 of file ConfigAttributes.cs.

Constructor & Destructor Documentation

◆ TooltipAttribute()

Terraria.ModLoader.Config.TooltipAttribute.TooltipAttribute ( string  tooltip)

Definition at line 61 of file ConfigAttributes.cs.

61 {
62 this.tooltip = tooltip;
63 }

References Terraria.ModLoader.Config.TooltipAttribute.tooltip.

Member Data Documentation

◆ tooltip

readonly string Terraria.ModLoader.Config.TooltipAttribute.tooltip
private

Property Documentation

◆ Tooltip

string Terraria.ModLoader.Config.TooltipAttribute.Tooltip
get

Definition at line 64 of file ConfigAttributes.cs.