|
class | BackgroundColorAttribute |
| Specifies a background color to be used for the property, field, or class in the ModConfig UI. More...
|
|
class | ConfigManager |
|
class | CustomModConfigItemAttribute |
| Use this attribute to specify a custom UI element to be used for the annotated property, field, or class in the ModConfig UI. More...
|
|
class | DefaultListValueAttribute |
| Defines the default value to be added when using the ModConfig UI to add elements to a List More...
|
|
class | DrawTicksAttribute |
| Add this attribute and the sliders will show white tick marks at each increment. More...
|
|
class | HeaderAttribute |
| 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...
|
|
class | IncrementAttribute |
| Use this to set an increment for sliders. The slider will move by the amount assigned. Remember that this is just a UI suggestion and manual editing of config files can specify other values, so validate your values. Defaults are: float: 0.01f - byte/int/uint: 1 More...
|
|
class | ItemDefinition |
|
class | ItemDefinitionConverter |
|
class | LabelAttribute |
| 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...
|
|
class | ModConfig |
| ModConfig provides a way for mods to be configurable. ModConfigs can either be Client specific or Server specific. When joining a MP server, Client configs are kept but Server configs are synced from the server. Using serialization attributes such as [DefaultValue(5)] or [JsonIgnore] are critical for proper usage of ModConfig. tModLoader also provides its own attributes such as ReloadRequiredAttribute and LabelAttribute. More...
|
|
class | OptionStringsAttribute |
| By default, string fields will provide the user with a text input field. Use this attribute to restrict strings to a selection of options. More...
|
|
class | RangeAttribute |
| Specifies a range for primative data values. Without this, default min and max are as follows: float: 0, 1 - int/uint: 0, 100 - byte: 0, 255 More...
|
|
class | ReloadRequiredAttribute |
| This attribute hints that changing the value of the annotated property or field will put the config in a state that requires a reload. An overridden ModConfig.NeedsReload can further validate if more complex logic is needed. More...
|
|
class | SeparatePageAttribute |
| This specifies that the annotated item will appear as a button that leads to a separate page in the UI. Use this to organize hierarchies. More...
|
|
class | TooltipAttribute |
| This attribute sets a hover tooltip for the annotated property or field to be shown in the ModConfig UI. This can be longer and more descriptive than Label. Starting the tooltip with $ means the tooltip should be interpreted as a Localization key. More...
|
|