Table of Contents
ModSetting class for a boolean value
public class ModSettingBool : BTD_Mod_Helper.Api.ModOptions.ModSetting<bool>
Inheritance System.Object ModSetting BTD_Mod_Helper.Api.ModOptions.ModSetting<System.Boolean> ModSettingBool
Whether this should display as an Enabled/Disabled button instead of a checkbox
public bool button;
The sprite to use for the button when it's disabled, RedBtnLong by default
public string disabledButton;
The text that the button should have when it's disabled, if this is a button
public string disabledText;
The sprite to use for the button when it's enabled, GreenBtnLong by default
public string enabledButton;
The text that the button should have when it's enabled, if this is a button
public string enabledText;
Action to modify the ModHelperCheckbox after it's created
public Action<ModHelperButton> modifyButton;
System.Action<ModHelperButton>
Action to modify the ModHelperCheckbox after it's created
public Action<ModHelperCheckbox> modifyCheckbox;
System.Action<ModHelperCheckbox>
Old way to do a button before ModSettingButton was a thing
public bool IsButton { get; set; }
Sets the current value of this ModSetting
public override void SetValue(object val);
val
System.Object
The new value
Gets the current value out of a ModSettingBool
public static bool implicit operator bool(BTD_Mod_Helper.Api.ModOptions.ModSettingBool modSettingBool);
modSettingBool
ModSettingBool
Create a new ModSetting bool with the given value as default
public static BTD_Mod_Helper.Api.ModOptions.ModSettingBool implicit operator ModSettingBool(bool value);
value
System.Boolean