Base ModContent for making Tower Selection Menu Theme related additions
public abstract class ModBaseTsmTheme : BTD_Mod_Helper.Api.ModContent
Inheritance System.Object ModContent ModBaseTsmTheme
Derived
↳ ModTsmTheme
↳ ModVanillaTsmTheme
Y position above the target type switch arrows, at which TSM Buttons are often placed
public const int AboveArrowsY = -428;
Default size for Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu.TowerSelectionMenuThemes.TSMButtons
public const int DefaultButtonSize = 180;
Default spacing between Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu.TowerSelectionMenuThemes.TSMButtons when there are multiple
public const int DefaultButtonSpacing = 198;
Default size for icons within Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu.TowerSelectionMenuThemes.TSMButtons
public const int DefaultIconSize = 128;
X position of the left target type switch arrow, at which TSM Buttons are often placed
public const int LeftArrowX = -372;
X position of the right target type switch arrow, at which TSM Buttons are often placed
public const int RightArrowX = 372;
Whether to affect the theme based on the Id, defaults to always affecting
public virtual bool AppliesTo(string themeId);
themeId System.String
string ID for the theme, same as Il2CppAssets.Scripts.Models.Towers.TowerModel.towerSelectionMenuThemeId
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);
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
Unity lifecycle OnDestroy for the theme component
public virtual void OnDestroy(BaseTSMTheme theme);
theme Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu.TowerSelectionMenuThemes.BaseTSMTheme
Unity lifecycle OnDisable for the theme component
public virtual void OnDisable(BaseTSMTheme theme);
theme Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu.TowerSelectionMenuThemes.BaseTSMTheme
Unity lifecycle OnEnable for the theme component
public virtual void OnEnable(BaseTSMTheme theme);
theme Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu.TowerSelectionMenuThemes.BaseTSMTheme
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);
theme Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu.TowerSelectionMenuThemes.BaseTSMTheme
BaseTSMTheme
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);
theme Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu.TowerSelectionMenuThemes.BaseTSMTheme
BaseTSMTheme
tower Il2CppAssets.Scripts.Unity.Bridge.TowerToSimulation
tower
Unity lifecycle Update for the theme component
public virtual void Update(BaseTSMTheme theme);
theme Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu.TowerSelectionMenuThemes.BaseTSMTheme