tModLoader v2024.09
A mod to make and play Terraria mods
LabelArgsAttribute Class Reference

Use to provide values to be interpolated into the label of the annotated property or field.
string arguments starting with "$" are interpreted as localization keys.
Interpolating values can be useful for reusing common labels to keep localization files clean and organized.
For example, if a mod provides toggles for several features, a common label could be used for each with only the provided value being different.
The string formatting section of the Localization wiki pageexplains this concept further.
Scope simplificationcan be used to shorten localization keys passed in.
More...

Inherits ConfigArgsAttribute.

Public Member Functions

 LabelArgsAttribute (params object[] args)
 
- Public Member Functions inherited from ConfigArgsAttribute
 ConfigArgsAttribute (params object[] args)
 

Detailed Description

Use to provide values to be interpolated into the label of the annotated property or field.
string arguments starting with "$" are interpreted as localization keys.
Interpolating values can be useful for reusing common labels to keep localization files clean and organized.
For example, if a mod provides toggles for several features, a common label could be used for each with only the provided value being different.
The string formatting section of the Localization wiki page

explains this concept further.
Scope simplification

can be used to shorten localization keys passed in.