Skip to Main Content

BTD_Mod_Helper​.Api​.ModOptions​.ModSettingBool


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.ModOptions

ModSettingBool Class

ModSetting class for a boolean value

public class ModSettingBool : BTD_Mod_Helper.Api.ModOptions.ModSetting<bool>

Inheritance System.ObjectModSettingBTD_Mod_Helper.Api.ModOptions.ModSetting<System.Boolean>  ModSettingBool

Fields

ModSettingBool.button Field

Whether this should display as an Enabled/Disabled button instead of a checkbox

public bool button;

Field Value

System.Boolean

ModSettingBool.disabledButton Field

The sprite to use for the button when it's disabled, RedBtnLong by default

public string disabledButton;

Field Value

System.String

ModSettingBool.disabledText Field

The text that the button should have when it's disabled, if this is a button

public string disabledText;

Field Value

System.String

ModSettingBool.enabledButton Field

The sprite to use for the button when it's enabled, GreenBtnLong by default

public string enabledButton;

Field Value

System.String

ModSettingBool.enabledText Field

The text that the button should have when it's enabled, if this is a button

public string enabledText;

Field Value

System.String

ModSettingBool.modifyButton Field

Action to modify the ModHelperCheckbox after it's created

public Action<ModHelperButton> modifyButton;

Field Value

System.Action<ModHelperButton>

ModSettingBool.modifyCheckbox Field

Action to modify the ModHelperCheckbox after it's created

public Action<ModHelperCheckbox> modifyCheckbox;

Field Value

System.Action<ModHelperCheckbox>

Properties

ModSettingBool.IsButton Property

Old way to do a button before ModSettingButton was a thing

public bool IsButton { get; set; }

Property Value

System.Boolean

Methods

ModSettingBool.SetValue(object) Method

Sets the current value of this ModSetting

public override void SetValue(object val);

Parameters

val System.Object

The new value

Operators

ModSettingBool.implicit operator bool(ModSettingBool) Operator

Gets the current value out of a ModSettingBool

public static bool implicit operator bool(BTD_Mod_Helper.Api.ModOptions.ModSettingBool modSettingBool);

Parameters

modSettingBool ModSettingBool

Returns

System.Boolean

ModSettingBool.implicit operator ModSettingBool(bool) Operator

Create a new ModSetting bool with the given value as default

public static BTD_Mod_Helper.Api.ModOptions.ModSettingBool implicit operator ModSettingBool(bool value);

Parameters

value System.Boolean

Returns

ModSettingBool

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