Table of Contents
ModSetting for int values
public class ModSettingInt : BTD_Mod_Helper.Api.ModOptions.ModSettingNumber<long>
Inheritance System.Object ModSetting BTD_Mod_Helper.Api.ModOptions.ModSetting<System.Int64> BTD_Mod_Helper.Api.ModOptions.ModSettingNumber<System.Int64> ModSettingInt
Old way of doing slider
public bool isSlider;
Old way of doing max
public Nullable<long> maxValue;
Old way of doing min
public Nullable<long> minValue;
Validation to use for the input component
protected override CharacterValidation Validation { get; }
Il2CppTMPro.CharacterValidation
Conversion of the type from a float for the slider component
protected override long FromFloat(float f);
Get the value from the string input component
protected override long FromString(string s);
Constructs a new ModSetting with the given value as default
public static BTD_Mod_Helper.Api.ModOptions.ModSettingInt implicit operator ModSettingInt(int value);
value
System.Int32
Gets the current value out of a ModSetting
public static int implicit operator int(BTD_Mod_Helper.Api.ModOptions.ModSettingInt modSettingInt);
modSettingInt
ModSettingInt