Skip to Main Content

BTD_Mod_Helper​.Api​.ModOptions​.ModSettingCategory


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.ModOptions

ModSettingCategory Class

Category of mod settings

public class ModSettingCategory

Inheritance System.Object  ModSettingCategory

Constructors

ModSettingCategory(string) Constructor

Creates a new ModSettingCategory with the given displayName

public ModSettingCategory(string displayName);

Parameters

displayName System.String

Fields

ModSettingCategory.collapsed Field

Whether this category is currently collapsed / hiding its elements

public bool collapsed;

Field Value

System.Boolean

ModSettingCategory.displayName Field

Name of the category

public string displayName;

Field Value

System.String

ModSettingCategory.icon Field

Icon of the category, if any

public string icon;

Field Value

System.String

ModSettingCategory.modifyCategory Field

Action to modify the ModHelperCategory after it's created

public Action<ModHelperCategory> modifyCategory;

Field Value

System.Action<ModHelperCategory>

ModSettingCategory.order Field

Order of this category in relation to other categories. A setting not having a category will have order = 0

public int order;

Field Value

System.Int32

Methods

ModSettingCategory.Create() Method

Creates the visual ModHelperCategory for this option

public BTD_Mod_Helper.Api.Components.ModHelperCategory Create();

Returns

ModHelperCategory

Operators

ModSettingCategory.implicit operator ModSettingCategory(string) Operator

Creates a new category with the given name

public static BTD_Mod_Helper.Api.ModOptions.ModSettingCategory implicit operator ModSettingCategory(string displayName);

Parameters

displayName System.String

Returns

ModSettingCategory

ModSettingCategory.implicit operator string(ModSettingCategory) Operator

Gets the name from a category

public static string implicit operator string(BTD_Mod_Helper.Api.ModOptions.ModSettingCategory category);

Parameters

category ModSettingCategory

Returns

System.String

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