Skip to Main Content

BTD_Mod_Helper​.Api​.Display​.ModTowerDisplay


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.Display

ModTowerDisplay Class

A ModDisplay that will automatically apply to a ModTower for specific tiers

public abstract class ModTowerDisplay : BTD_Mod_Helper.Api.Display.ModDisplay

Inheritance System.ObjectModContentModDisplay  ModTowerDisplay

Derived
ModTowerCustomDisplay
ModTowerDisplay<T>

Fields

ModTowerDisplay.TotalParagonDisplays Field

Number of different Paragon displays that are used by default

protected const int TotalParagonDisplays = 5;

Field Value

System.Int32

Properties

ModTowerDisplay.DisplayCategory Property

The DisplayCategory to use for the DisplayModel

public override DisplayCategory DisplayCategory { get; }

Property Value

Il2CppAssets.Scripts.Models.GenericBehaviors.DisplayCategory

ModTowerDisplay.ParagonDisplayIndex Property

A number between 0 and 4 (inclusive) representing which set of paragon degrees this display applies to


0: Degree 1 - 20


1: Degree 21 - 40


2: Degree 41 - 60


3: Degree 61 - 80


4: Degree 81 - 100


If you don't have one for every index, then the next highest one will be used

public virtual int ParagonDisplayIndex { get; }

Property Value

System.Int32

ModTowerDisplay.Tower Property

The ModTower that this ModDisplay is used for

public abstract BTD_Mod_Helper.Api.Towers.ModTower Tower { get; }

Property Value

ModTower

Methods

ModTowerDisplay.ApplyToTower(TowerModel) Method

Applies this ModTowerDisplay to the towerModel. Override to change how this applies, i.e. making it
apply to an AttackModel instead

public virtual void ApplyToTower(TowerModel towerModel);

Parameters

towerModel Il2CppAssets.Scripts.Models.Towers.TowerModel

ModTowerDisplay.IsParagon(int[]) Method

If the tower tiers make it count as a Paragon

protected bool IsParagon(params int[] tiers);

Parameters

tiers System.Int32[]

Returns

System.Boolean

ModTowerDisplay.ModifyDisplayNode(UnityDisplayNode) Method

Alters the UnityDisplayNode that was copied from the one used by BaseDisplay

By default, this will change the main texture of the first SkinnedMeshRenderer of the node to that of a
png with the same name as the class

public override void ModifyDisplayNode(UnityDisplayNode node);

Parameters

node Il2CppAssets.Scripts.Unity.Display.UnityDisplayNode

The UnityDisplayNode

ModTowerDisplay.UseForTower(int[]) Method

Returns true if this display should be used by its Tower for the given tiers

public abstract bool UseForTower(params int[] tiers);

Parameters

tiers System.Int32[]

The potential tiers of the tower

Returns

System.Boolean
If the Tower should have this display

To learn how to download BTD Mod Helper and install mods, click here