Skip to Main Content

BTD_Mod_Helper​.Api​.Display​.ModBuffIcon


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.Display

ModBuffIcon Class

Class for adding a new buff icon that can be displayed for towers

public abstract class ModBuffIcon : BTD_Mod_Helper.Api.NamedModContent

Inheritance System.ObjectModContentNamedModContent  ModBuffIcon

Properties

ModBuffIcon.BuffIconName Property

What should go in a Model's buffIconName field

public string BuffIconName { get; }

Property Value

System.String

ModBuffIcon.BuffLocsName Property

What should go in a Model's buffLocsName field

public string BuffLocsName { get; }

Property Value

System.String

ModBuffIcon.Description Property

The in game description of this

public sealed override string Description { get; }

Property Value

System.String

ModBuffIcon.DisplayName Property

The name that will be actually displayed for this in game

public sealed override string DisplayName { get; }

Property Value

System.String

ModBuffIcon.DisplayNamePlural Property

The name that will actually be display when referring to multiple of these

public sealed override string DisplayNamePlural { get; }

Property Value

System.String

ModBuffIcon.GlobalRange Property

Whether the buff affects every tower on screen

public virtual bool GlobalRange { get; }

Property Value

System.Boolean

ModBuffIcon.Icon Property

The Icon for to display for the buff


(Name of .png or .jpg, not including file extension)

public virtual string Icon { get; }

Property Value

System.String

ModBuffIcon.IconReference Property

If you're not going to use a custom .png for your Icon, use this to directly control its SpriteReference

public virtual SpriteReference IconReference { get; }

Property Value

Il2CppNinjaKiwi.Common.ResourceUtils.SpriteReference

ModBuffIcon.MaxStackSize Property

If greater than 0, the total number of stacks that a tower can have at one time

public virtual int MaxStackSize { get; }

Property Value

System.Int32

ModBuffIcon.OnlyShowBuffIfMutated Property

Controls the OnlyShowBuffIfMutated property on the model

public virtual bool OnlyShowBuffIfMutated { get; }

Property Value

System.Boolean

Methods

ModBuffIcon.ApplyTo(SupportModel) Method

Makes a support model use this as its buff indicator

public void ApplyTo(SupportModel model);

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.SupportModel

The support model to apply to

ModBuffIcon.ApplyTo(TowerBehaviorBuffModel) Method

Makes a support model use this as its buff indicator

public void ApplyTo(TowerBehaviorBuffModel model);

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.TowerBehaviorBuffModel

The support model to apply to

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