tModLoader v2024.11
A mod to make and play Terraria mods
|
Use to provide values to be interpolated into the tooltip of the annotated property or field.
string arguments starting with "$" are interpreted as localization keys.
Interpolating values can be useful for reusing common tooltips to keep localization files clean and organized.
For example, if a mod provides toggles for several features, a common tooltip 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 | |
TooltipArgsAttribute (params object[] args) | |
Public Member Functions inherited from ConfigArgsAttribute | |
ConfigArgsAttribute (params object[] args) | |
Use to provide values to be interpolated into the tooltip of the annotated property or field.
string arguments starting with "$" are interpreted as localization keys.
Interpolating values can be useful for reusing common tooltips to keep localization files clean and organized.
For example, if a mod provides toggles for several features, a common tooltip 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.