tModLoader v2025.04
A mod to make and play Terraria mods
IncrementAttribute Class Reference

Use this to set an increment for sliders (if using SliderAttribute) or the +/- buttons. The slider will move by the amount assigned. The +/- buttons will adjust the value by the amount as well. Remember that this is just a UI suggestion and manual editing of config files can specify other values, so validate your values. Defaults are as follows:
float: 0.01f
byte/int/uint/long/ulong: 1 When using this, you might need to cast the arguments to the desired numeric type to call the correct overload. More...

Inherits Attribute.

Public Member Functions

 IncrementAttribute (byte increment)
 
 IncrementAttribute (float increment)
 
 IncrementAttribute (int increment)
 
 IncrementAttribute (long increment)
 
 IncrementAttribute (uint increment)
 
 IncrementAttribute (ulong increment)
 

Properties

object Increment [get]
 

Detailed Description

Use this to set an increment for sliders (if using SliderAttribute) or the +/- buttons. The slider will move by the amount assigned. The +/- buttons will adjust the value by the amount as well.

Remember that this is just a UI suggestion and manual editing of config files can specify other values, so validate your values.

Defaults are as follows:
float: 0.01f
byte/int/uint/long/ulong: 1

When using this, you might need to cast the arguments to the desired numeric type to call the correct overload.