Skip to Main Content

BTD_Mod_Helper​.Api​.Components​.ModHelperDockButton


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.Components

ModHelperDockButton Class

public sealed class ModHelperDockButton : BTD_Mod_Helper.Api.Components.ModHelperPanel

Inheritance UnityEngine.MonoBehaviourModHelperComponentModHelperPanel  ModHelperDockButton

Fields

ModHelperDockButton.button Field

The button component

public ModHelperButton button;

Field Value

ModHelperButton

ModHelperDockButton.icon Field

The icon of this button, if any

public ModHelperImage icon;

Field Value

ModHelperImage

ModHelperDockButton.Size Field

Constant amount of size that Dock buttons have based on the 16x9 aspect ratio border bars

public const int Size = 50;

Field Value

System.Int32

ModHelperDockButton.text Field

The label

public ModHelperText text;

Field Value

ModHelperText

ModHelperDockButton.window Field

The window this corresponds to

public ModHelperWindow window;

Field Value

ModHelperWindow

Methods

ModHelperDockButton.Create(ModHelperPanel, ModHelperWindow, string, float, string) Method

Creates a new Dock button for a window

public static BTD_Mod_Helper.Api.Components.ModHelperDockButton Create(BTD_Mod_Helper.Api.Components.ModHelperPanel parent, BTD_Mod_Helper.Api.Components.ModHelperWindow window, string icon=null, float iconScale=1f, string dockTitle=null);

Parameters

parent ModHelperPanel

Parent panel of the button

window ModHelperWindow

window the button will correspond to

icon System.String

icon to use for the button

iconScale System.Single

visual scale for the icon

dockTitle System.String

title for the dock button

Returns

ModHelperDockButton
the created dock button

ModHelperDockButton.OnClick() Method

When the button is clicked

public void OnClick();
To learn how to download BTD Mod Helper and install mods, click here