Skip to Main Content

BTD_Mod_Helper​.Api​.ModOptions​.ModSettingString


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.ModOptions

ModSettingString Class

ModSetting for a string value

public class ModSettingString : BTD_Mod_Helper.Api.ModOptions.ModSetting<string>

Inheritance System.ObjectModSettingBTD_Mod_Helper.Api.ModOptions.ModSetting<System.String>  ModSettingString

Fields

ModSettingString.Alphanumeric Field

Allow only alphanumeric characters

public static readonly string Alphanumeric;

Field Value

System.String

ModSettingString.characterValidation Field

Validation for the input field, determining which characters are allowed

public CharacterValidation characterValidation;

Field Value

Il2CppTMPro.CharacterValidation

ModSettingString.Decimal Field

Allow only valid decimals

public static readonly string Decimal;

Field Value

System.String

ModSettingString.Integer Field

Allow only valid integers

public static readonly string Integer;

Field Value

System.String

ModSettingString.modifyInput Field

Action to modify the ModHelperInputField after it's created

public Action<ModHelperInputField> modifyInput;

Field Value

System.Action<ModHelperInputField>

ModSettingString.None Field

Allow all characters

public static readonly string None;

Field Value

System.String

ModSettingString.validation Field

InputField validation, use one of the ModSettingString.[thing] constants

public string validation;

Field Value

System.String

Operators

ModSettingString.implicit operator ModSettingString(string) Operator

Constructs a new ModSetting with the given value as default

public static BTD_Mod_Helper.Api.ModOptions.ModSettingString implicit operator ModSettingString(string value);

Parameters

value System.String

Returns

ModSettingString

ModSettingString.implicit operator string(ModSettingString) Operator

Gets the current value out of a ModSetting

public static string implicit operator string(BTD_Mod_Helper.Api.ModOptions.ModSettingString modSettingString);

Parameters

modSettingString ModSettingString

Returns

System.String

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