Table of Contents
ModHelperComponent for a background panel
public class ModHelperButton : BTD_Mod_Helper.Api.Components.ModHelperComponent
Inheritance UnityEngine.MonoBehaviour ModHelperComponent ModHelperButton
The aspect ratio of LongBtn sprites, since they aren't sliced for some reason lol
public const float LongBtnRatio = 2.81;
The actual button component
public Button Button { get; }
The displayed image of the button
public Image Image { get; }
Creates a new ModHelperButton
public static BTD_Mod_Helper.Api.Components.ModHelperButton Create(BTD_Mod_Helper.Api.Components.Info info, string sprite, Action onClick);
info
Info
The name/position/size info
sprite
System.String
The button's visuals
onClick
Il2CppSystem.Action
What should happen when the button is clicked