Table of Contents
ModSetting for a string value
public class ModSettingString : BTD_Mod_Helper.Api.ModOptions.ModSetting<string>
Inheritance System.Object ModSetting BTD_Mod_Helper.Api.ModOptions.ModSetting<System.String> ModSettingString
Allow only alphanumeric characters
public static readonly string Alphanumeric;
Validation for the input field, determining which characters are allowed
public CharacterValidation characterValidation;
Il2CppTMPro.CharacterValidation
Allow only valid decimals
public static readonly string Decimal;
Allow only valid integers
public static readonly string Integer;
Action to modify the ModHelperInputField after it's created
public Action<ModHelperInputField> modifyInput;
System.Action<ModHelperInputField>
Allow all characters
public static readonly string None;
InputField validation, use one of the ModSettingString.[thing] constants
public string validation;
Constructs a new ModSetting with the given value as default
public static BTD_Mod_Helper.Api.ModOptions.ModSettingString implicit operator ModSettingString(string value);
value
System.String
Gets the current value out of a ModSetting
public static string implicit operator string(BTD_Mod_Helper.Api.ModOptions.ModSettingString modSettingString);
modSettingString
ModSettingString