Table of Contents
public sealed class ModHelperDockButton : BTD_Mod_Helper.Api.Components.ModHelperPanel
Inheritance UnityEngine.MonoBehaviour ModHelperComponent ModHelperPanel ModHelperDockButton
The button component
public ModHelperButton button;
The icon of this button, if any
public ModHelperImage icon;
Constant amount of size that Dock buttons have based on the 16x9 aspect ratio border bars
public const int Size = 50;
The label
public ModHelperText text;
The window this corresponds to
public ModHelperWindow window;
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);
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
ModHelperDockButton
the created dock button
When the button is clicked
public void OnClick();