Skip to Main Content

BTD_Mod_Helper​.Api​.Components​.ModHelperDropdown


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.Components

ModHelperDropdown Class

ModHelperComponent for a

public class ModHelperDropdown : BTD_Mod_Helper.Api.Components.ModHelperComponent

Inheritance UnityEngine.MonoBehaviourModHelperComponent  ModHelperDropdown

Properties

ModHelperDropdown.Arrow Property

The Arrow image

public BTD_Mod_Helper.Api.Components.ModHelperImage Arrow { get; }

Property Value

ModHelperImage

ModHelperDropdown.Background Property

The Image being displayed

public Image Background { get; }

Property Value

UnityEngine.UI.Image

ModHelperDropdown.Dropdown Property

The component which handles the dropdown

public TMP_Dropdown Dropdown { get; }

Property Value

Il2CppTMPro.TMP_Dropdown

ModHelperDropdown.TemplateItem Property

The default item in the template

public BTD_Mod_Helper.Api.Components.ModHelperPanel TemplateItem { get; }

Property Value

ModHelperPanel

ModHelperDropdown.TemplatePanel Property

The template object for the window of the dropdown

public BTD_Mod_Helper.Api.Components.ModHelperScrollPanel TemplatePanel { get; }

Property Value

ModHelperScrollPanel

ModHelperDropdown.Text Property

The Text which shows the currently selected value

public BTD_Mod_Helper.Api.Components.ModHelperText Text { get; }

Property Value

ModHelperText

Methods

ModHelperDropdown.Create(Info, List, float, UnityAction, string, float) Method

Creates a new ModHelperDropdown

public static BTD_Mod_Helper.Api.Components.ModHelperDropdown Create(BTD_Mod_Helper.Api.Components.Info info, List<string> options, float windowHeight, UnityAction<int> onValueChanged, string background=null, float labelFontSize=42f);

Parameters

info Info

The name/position/size info. NOTE: width/height must be set to actual values

options Il2CppSystem.Collections.Generic.List

The list of options

windowHeight System.Single

Height of the created dropdown window

onValueChanged UnityEngine.Events.UnityAction

Action that should happen when an option of the given index is selected

background System.String

The background image

labelFontSize System.Single

Text size of label

Returns

ModHelperDropdown
The created ModHelperDropdown

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