Skip to Main Content

BTD_Mod_Helper​.Api​.ModOptions​.ModSettingDouble


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.ModOptions

ModSettingDouble Class

ModSetting for a decimal value

public class ModSettingDouble : BTD_Mod_Helper.Api.ModOptions.ModSettingNumber<double>

Inheritance System.ObjectModSettingBTD_Mod_Helper.Api.ModOptions.ModSetting<System.Double>BTD_Mod_Helper.Api.ModOptions.ModSettingNumber<System.Double>  ModSettingDouble

Derived
ModSettingFloat

Fields

ModSettingDouble.isSlider Field

Old way of doing slider

public bool isSlider;

Field Value

System.Boolean

ModSettingDouble.maxValue Field

Old way of doing max

public Nullable<double> maxValue;

Field Value

System.Nullable<System.Double>

ModSettingDouble.minValue Field

Old way of doing min

public Nullable<double> minValue;

Field Value

System.Nullable<System.Double>

ModSettingDouble.stepSize Field

Step size to use for slider, or how much to round the input

public float stepSize;

Field Value

System.Single

Properties

ModSettingDouble.StepSize Property

Step Size for the slider

protected override float StepSize { get; }

Property Value

System.Single

ModSettingDouble.Validation Property

Validation to use for the input component

protected override CharacterValidation Validation { get; }

Property Value

Il2CppTMPro.CharacterValidation

Methods

ModSettingDouble.FromFloat(float) Method

Conversion of the type from a float for the slider component

protected override double FromFloat(float f);

Parameters

f System.Single

Returns

System.Double

ModSettingDouble.FromString(string) Method

Get the value from the string input component

protected override double FromString(string s);

Parameters

s System.String

Returns

System.Double

Operators

ModSettingDouble.implicit operator ModSettingDouble(double) Operator

Constructs a new ModSetting with the given value as default

public static BTD_Mod_Helper.Api.ModOptions.ModSettingDouble implicit operator ModSettingDouble(double value);

Parameters

value System.Double

Returns

ModSettingDouble

ModSettingDouble.implicit operator ModSettingDouble(float) Operator

Constructs a new ModSetting with the given value as default

public static BTD_Mod_Helper.Api.ModOptions.ModSettingDouble implicit operator ModSettingDouble(float value);

Parameters

value System.Single

Returns

ModSettingDouble

ModSettingDouble.implicit operator double(ModSettingDouble) Operator

Gets the current value out of a ModSetting

public static double implicit operator double(BTD_Mod_Helper.Api.ModOptions.ModSettingDouble modSettingDouble);

Parameters

modSettingDouble ModSettingDouble

Returns

System.Double

ModSettingDouble.implicit operator float(ModSettingDouble) Operator

Gets the current value out of a ModSetting

public static float implicit operator float(BTD_Mod_Helper.Api.ModOptions.ModSettingDouble modSettingDouble);

Parameters

modSettingDouble ModSettingDouble

Returns

System.Single

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