Skip to Main Content

BTD_Mod_Helper​.Api​.Towers​.ModBaseTsmTheme


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.Towers

ModBaseTsmTheme Class

Base ModContent for making Tower Selection Menu Theme related additions

public abstract class ModBaseTsmTheme : BTD_Mod_Helper.Api.ModContent

Inheritance System.ObjectModContent  ModBaseTsmTheme

Derived
ModTsmTheme
ModVanillaTsmTheme

Fields

ModBaseTsmTheme.AboveArrowsY Field

Y position above the target type switch arrows, at which TSM Buttons are often placed

public const int AboveArrowsY = -428;

Field Value

System.Int32

ModBaseTsmTheme.DefaultButtonSize Field

Default size for Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu.TowerSelectionMenuThemes.TSMButtons

public const int DefaultButtonSize = 180;

Field Value

System.Int32

ModBaseTsmTheme.DefaultButtonSpacing Field

Default spacing between Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu.TowerSelectionMenuThemes.TSMButtons when there are multiple

public const int DefaultButtonSpacing = 198;

Field Value

System.Int32

ModBaseTsmTheme.DefaultIconSize Field

Default size for icons within Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu.TowerSelectionMenuThemes.TSMButtons

public const int DefaultIconSize = 128;

Field Value

System.Int32

ModBaseTsmTheme.LeftArrowX Field

X position of the left target type switch arrow, at which TSM Buttons are often placed

public const int LeftArrowX = -372;

Field Value

System.Int32

ModBaseTsmTheme.RightArrowX Field

X position of the right target type switch arrow, at which TSM Buttons are often placed

public const int RightArrowX = 372;

Field Value

System.Int32

Methods

ModBaseTsmTheme.AppliesTo(string) Method

Whether to affect the theme based on the Id, defaults to always affecting

public virtual bool AppliesTo(string themeId);

Parameters

themeId System.String

string ID for the theme, same as Il2CppAssets.Scripts.Models.Towers.TowerModel.towerSelectionMenuThemeId

Returns

System.Boolean

ModBaseTsmTheme.OnButtonPressed(BaseTSMTheme, TowerToSimulation, string) Method

Called when a Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu.TowerSelectionMenuThemes.TSMButton is pressed on this theme

public virtual void OnButtonPressed(BaseTSMTheme theme, TowerToSimulation tower, string buttonId);

Parameters

theme Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu.TowerSelectionMenuThemes.BaseTSMTheme

BaseTSMTheme

tower Il2CppAssets.Scripts.Unity.Bridge.TowerToSimulation

tower

buttonId System.String

id of the TSMButton

ModBaseTsmTheme.OnDestroy(BaseTSMTheme) Method

Unity lifecycle OnDestroy for the theme component

public virtual void OnDestroy(BaseTSMTheme theme);

Parameters

theme Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu.TowerSelectionMenuThemes.BaseTSMTheme

ModBaseTsmTheme.OnDisable(BaseTSMTheme) Method

Unity lifecycle OnDisable for the theme component

public virtual void OnDisable(BaseTSMTheme theme);

Parameters

theme Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu.TowerSelectionMenuThemes.BaseTSMTheme

ModBaseTsmTheme.OnEnable(BaseTSMTheme) Method

Unity lifecycle OnEnable for the theme component

public virtual void OnEnable(BaseTSMTheme theme);

Parameters

theme Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu.TowerSelectionMenuThemes.BaseTSMTheme

ModBaseTsmTheme.SetupTheme(BaseTSMTheme) Method

Called once the first time the theme is being setup, usually the first time a tower that uses it is selected

public abstract void SetupTheme(BaseTSMTheme theme);

Parameters

theme Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu.TowerSelectionMenuThemes.BaseTSMTheme

BaseTSMTheme

ModBaseTsmTheme.TowerChanged(BaseTSMTheme, TowerToSimulation) Method

Called when the tower that uses this theme is changed, either from a change in which tower is selected or an update of that tower's info

public virtual void TowerChanged(BaseTSMTheme theme, TowerToSimulation tower);

Parameters

theme Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu.TowerSelectionMenuThemes.BaseTSMTheme

BaseTSMTheme

tower Il2CppAssets.Scripts.Unity.Bridge.TowerToSimulation

tower

ModBaseTsmTheme.Update(BaseTSMTheme) Method

Unity lifecycle Update for the theme component

public virtual void Update(BaseTSMTheme theme);

Parameters

theme Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu.TowerSelectionMenuThemes.BaseTSMTheme