Skip to Main Content

BTD_Mod_Helper​.Api​.ModOptions​.ModSettingInt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.ModOptions

ModSettingInt Class

ModSetting for int values

public class ModSettingInt : BTD_Mod_Helper.Api.ModOptions.ModSettingNumber<long>

Inheritance System.ObjectModSettingBTD_Mod_Helper.Api.ModOptions.ModSetting<System.Int64>BTD_Mod_Helper.Api.ModOptions.ModSettingNumber<System.Int64>  ModSettingInt

Fields

ModSettingInt.isSlider Field

Old way of doing slider

public bool isSlider;

Field Value

System.Boolean

ModSettingInt.maxValue Field

Old way of doing max

public Nullable<long> maxValue;

Field Value

System.Nullable<System.Int64>

ModSettingInt.minValue Field

Old way of doing min

public Nullable<long> minValue;

Field Value

System.Nullable<System.Int64>

Properties

ModSettingInt.Validation Property

Validation to use for the input component

protected override CharacterValidation Validation { get; }

Property Value

Il2CppTMPro.CharacterValidation

Methods

ModSettingInt.FromFloat(float) Method

Conversion of the type from a float for the slider component

protected override long FromFloat(float f);

Parameters

f System.Single

Returns

System.Int64

ModSettingInt.FromString(string) Method

Get the value from the string input component

protected override long FromString(string s);

Parameters

s System.String

Returns

System.Int64

Operators

ModSettingInt.implicit operator ModSettingInt(int) Operator

Constructs a new ModSetting with the given value as default

public static BTD_Mod_Helper.Api.ModOptions.ModSettingInt implicit operator ModSettingInt(int value);

Parameters

value System.Int32

Returns

ModSettingInt

ModSettingInt.implicit operator int(ModSettingInt) Operator

Gets the current value out of a ModSetting

public static int implicit operator int(BTD_Mod_Helper.Api.ModOptions.ModSettingInt modSettingInt);

Parameters

modSettingInt ModSettingInt

Returns

System.Int32

To learn how to download BTD Mod Helper and install mods, click here