Table of Contents
Class for adding a new buff icon that can be displayed for towers
public abstract class ModBuffIcon : BTD_Mod_Helper.Api.NamedModContent
Inheritance System.Object ModContent NamedModContent ModBuffIcon
What should go in a Model's buffIconName field
public string BuffIconName { get; }
What should go in a Model's buffLocsName field
public string BuffLocsName { get; }
The in game description of this
public sealed override string Description { get; }
The name that will be actually displayed for this in game
public sealed override string DisplayName { get; }
The name that will actually be display when referring to multiple of these
public sealed override string DisplayNamePlural { get; }
Whether the buff affects every tower on screen
public virtual bool GlobalRange { get; }
The Icon for to display for the buff
(Name of .png or .jpg, not including file extension)
public virtual string Icon { get; }
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; }
Il2CppNinjaKiwi.Common.ResourceUtils.SpriteReference
If greater than 0, the total number of stacks that a tower can have at one time
public virtual int MaxStackSize { get; }
Controls the OnlyShowBuffIfMutated property on the model
public virtual bool OnlyShowBuffIfMutated { get; }
Makes a support model use this as its buff indicator
public void ApplyTo(SupportModel model);
model
Il2CppAssets.Scripts.Models.Towers.Behaviors.SupportModel
The support model to apply to
Makes a support model use this as its buff indicator
public void ApplyTo(TowerBehaviorBuffModel model);
model
Il2CppAssets.Scripts.Models.Towers.Behaviors.TowerBehaviorBuffModel
The support model to apply to