![]() |
Terraria ModLoader
0.11.8.1
A mod to make and play Terraria mods
|
This attribute sets a label for the property, field, or class for use in the ModConfig UI. Starting the label with $ means the label should be interpreted as a Localization key. More...
Public Member Functions | |
LabelAttribute (string label) | |
Public Attributes | |
string | Label => label.StartsWith("$") ? Localization.Language.GetTextValue(label.Substring(1)) : label |
Private Attributes | |
readonly string | label |
This attribute sets a label for the property, field, or class for use in the ModConfig UI. Starting the label with $ means the label should be interpreted as a Localization key.
Definition at line 44 of file ConfigAttributes.cs.
Terraria.ModLoader.Config.LabelAttribute.LabelAttribute | ( | string | label | ) |
Definition at line 47 of file ConfigAttributes.cs.
|
private |
Definition at line 46 of file ConfigAttributes.cs.
string Terraria.ModLoader.Config.LabelAttribute.Label => label.StartsWith("$") ? Localization.Language.GetTextValue(label.Substring(1)) : label |
Definition at line 50 of file ConfigAttributes.cs.