tModLoader v2024.10
A mod to make and play Terraria mods
|
A label is the text shown to the user in the ModConfig UI.
This attribute sets a custom localization key for the label of the annotated property, field, or class.
The provided localization key must start with "$".
Without this attribute, the localization key "Mods.{ModName}.Configs.{ConfigName}.{MemberName}.Label" will be assumed for members of ModConfig classes.
Annotations on members of non-ModConfig classes need to supply a custom localization key using this attribute to be localized, otherwise they will appear as the member name directly.
If the translation value of a property or field that is an object is an empty string, the label of the class will be used instead.
Values can be interpolated into the resulting label text using LabelArgsAttribute.
More...
Inherits ConfigKeyAttribute.
Public Member Functions | |
LabelKeyAttribute (string key) | |
Public Member Functions inherited from ConfigKeyAttribute | |
ConfigKeyAttribute (string key) | |
A label is the text shown to the user in the ModConfig UI.
This attribute sets a custom localization key for the label of the annotated property, field, or class.
The provided localization key must start with "$".
Without this attribute, the localization key "Mods.{ModName}.Configs.{ConfigName}.{MemberName}.Label" will be assumed for members of ModConfig classes.
Annotations on members of non-ModConfig classes need to supply a custom localization key using this attribute to be localized, otherwise they will appear as the member name directly.
If the translation value of a property or field that is an object is an empty string, the label of the class will be used instead.
Values can be interpolated into the resulting label text using LabelArgsAttribute.