Table of Contents
Defines a Window Color theme for ModHelperWindows and related UI components
public abstract class ModWindowColor : BTD_Mod_Helper.Api.NamedModContent
Inheritance System.Object ModContent NamedModContent ModWindowColor
Blue
public static BTD_Mod_Helper.Api.UI.ModWindowColor Blue { get; }
Bronze
public static BTD_Mod_Helper.Api.UI.ModWindowColor Bronze { get; }
Brown
public static BTD_Mod_Helper.Api.UI.ModWindowColor Brown { get; }
Dark Blue
public static BTD_Mod_Helper.Api.UI.ModWindowColor DarkBlue { get; }
Glass
public static BTD_Mod_Helper.Api.UI.ModWindowColor Glass { get; }
Hematite
public static BTD_Mod_Helper.Api.UI.ModWindowColor Hematite { get; }
For insert panels, a multiplier to the UnityEngine.UI.Image.pixelsPerUnitMultiplier to change the scale
public virtual float InsertPanelPixelMult { get; }
Sprite to use for the "insert" or sub-panels of windows that are nested in the outer panels
public abstract string InsertPanelSprite { get; }
Sprite to use for the main panels of windows
public abstract string MainPanelSprite { get; }
For main panels, a multiplier to the UnityEngine.UI.Image.pixelsPerUnitMultiplier to change the scale
public virtual float PanelPixelMult { get; }
Purple
public static BTD_Mod_Helper.Api.UI.ModWindowColor Purple { get; }
Silver
public static BTD_Mod_Helper.Api.UI.ModWindowColor Silver { get; }
Apply this color to a specific image for a given panel type via a WindowColorSetter component
public BTD_Mod_Helper.Api.Components.WindowColorSetter Apply(GameObject gobject, BTD_Mod_Helper.Api.UI.ModWindowColor.PanelType type);
gobject
UnityEngine.GameObject
GameObject that has an Image component
type
PanelType
panel type
WindowColorSetter
the added WindowColorSetter component
Get the corresponding pixels per unit multiplier for a given panel type
public float GetPixelMult(BTD_Mod_Helper.Api.UI.ModWindowColor.PanelType type);
type
PanelType
panel type
System.Single
pixels per unit multiplier
Get the corresponding sprite to use for a given panel type
public string GetSprite(BTD_Mod_Helper.Api.UI.ModWindowColor.PanelType type);
type
PanelType
panel type
System.String
sprite guid
Gets a ModWindowColor instance from its Name
public static BTD_Mod_Helper.Api.UI.ModWindowColor Of(string name);
name
System.String
the mod content name
ModWindowColor
ModWindowColor instance, Blue if no name match
Implicitly converts a string into the corresponding ModWindowColor instance
public static BTD_Mod_Helper.Api.UI.ModWindowColor implicit operator ModWindowColor(string name);
name
System.String
the mod content name
ModWindowColor
ModWindowColor instance
Implicitly turns a ModWindowColor isntance into its Name
public static string implicit operator string(BTD_Mod_Helper.Api.UI.ModWindowColor modWindowColor);
modWindowColor
ModWindowColor
mod window color instance
System.String
its name