Terraria ModLoader  0.11.5
A framework for Terraria mods
Terraria.ModLoader.Config.HeaderAttribute Class Reference

This attribute adds a label above this property or field in the ModConfig UI that acts as a header. Use this to delineate sections within your config. Note that fields will be in order, and properties will be in order, but fields and properties will not be interleaved together in the source code order. More...

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

Public Member Functions

 HeaderAttribute (string header)
 

Public Attributes

string Header => header.StartsWith("$") ? Localization.Language.GetTextValue(header.Substring(1)) : header
 

Private Attributes

readonly string header
 

Detailed Description

This attribute adds a label above this property or field in the ModConfig UI that acts as a header. Use this to delineate sections within your config. Note that fields will be in order, and properties will be in order, but fields and properties will not be interleaved together in the source code order.

Definition at line 72 of file ConfigAttributes.cs.

Constructor & Destructor Documentation

Terraria.ModLoader.Config.HeaderAttribute.HeaderAttribute ( string  header)

Definition at line 75 of file ConfigAttributes.cs.

75  {
76  this.header = header;
77  }

Member Data Documentation

readonly string Terraria.ModLoader.Config.HeaderAttribute.header
private

Definition at line 74 of file ConfigAttributes.cs.

string Terraria.ModLoader.Config.HeaderAttribute.Header => header.StartsWith("$") ? Localization.Language.GetTextValue(header.Substring(1)) : header

Definition at line 78 of file ConfigAttributes.cs.