Skip to Main Content

BTD_Mod_Helper​.Api​.UI​.ModWindowColor


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.UI

ModWindowColor Class

Defines a Window Color theme for ModHelperWindows and related UI components

public abstract class ModWindowColor : BTD_Mod_Helper.Api.NamedModContent

Inheritance System.ObjectModContentNamedModContent  ModWindowColor

Properties

ModWindowColor.Blue Property

Blue

public static BTD_Mod_Helper.Api.UI.ModWindowColor Blue { get; }

Property Value

ModWindowColor

ModWindowColor.Bronze Property

Bronze

public static BTD_Mod_Helper.Api.UI.ModWindowColor Bronze { get; }

Property Value

ModWindowColor

ModWindowColor.Brown Property

Brown

public static BTD_Mod_Helper.Api.UI.ModWindowColor Brown { get; }

Property Value

ModWindowColor

ModWindowColor.DarkBlue Property

Dark Blue

public static BTD_Mod_Helper.Api.UI.ModWindowColor DarkBlue { get; }

Property Value

ModWindowColor

ModWindowColor.Glass Property

Glass

public static BTD_Mod_Helper.Api.UI.ModWindowColor Glass { get; }

Property Value

ModWindowColor

ModWindowColor.Hematite Property

Hematite

public static BTD_Mod_Helper.Api.UI.ModWindowColor Hematite { get; }

Property Value

ModWindowColor

ModWindowColor.InsertPanelPixelMult Property

For insert panels, a multiplier to the UnityEngine.UI.Image.pixelsPerUnitMultiplier to change the scale

public virtual float InsertPanelPixelMult { get; }

Property Value

System.Single

ModWindowColor.InsertPanelSprite Property

Sprite to use for the "insert" or sub-panels of windows that are nested in the outer panels

public abstract string InsertPanelSprite { get; }

Property Value

System.String

ModWindowColor.MainPanelSprite Property

Sprite to use for the main panels of windows

public abstract string MainPanelSprite { get; }

Property Value

System.String

ModWindowColor.PanelPixelMult Property

For main panels, a multiplier to the UnityEngine.UI.Image.pixelsPerUnitMultiplier to change the scale

public virtual float PanelPixelMult { get; }

Property Value

System.Single

ModWindowColor.Purple Property

Purple

public static BTD_Mod_Helper.Api.UI.ModWindowColor Purple { get; }

Property Value

ModWindowColor

ModWindowColor.Silver Property

Silver

public static BTD_Mod_Helper.Api.UI.ModWindowColor Silver { get; }

Property Value

ModWindowColor

Methods

ModWindowColor.Apply(GameObject, PanelType) Method

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);

Parameters

gobject UnityEngine.GameObject

GameObject that has an Image component

type PanelType

panel type

Returns

WindowColorSetter
the added WindowColorSetter component

ModWindowColor.GetPixelMult(PanelType) Method

Get the corresponding pixels per unit multiplier for a given panel type

public float GetPixelMult(BTD_Mod_Helper.Api.UI.ModWindowColor.PanelType type);

Parameters

type PanelType

panel type

Returns

System.Single
pixels per unit multiplier

ModWindowColor.GetSprite(PanelType) Method

Get the corresponding sprite to use for a given panel type

public string GetSprite(BTD_Mod_Helper.Api.UI.ModWindowColor.PanelType type);

Parameters

type PanelType

panel type

Returns

System.String
sprite guid

ModWindowColor.Of(string) Method

Gets a ModWindowColor instance from its Name

public static BTD_Mod_Helper.Api.UI.ModWindowColor Of(string name);

Parameters

name System.String

the mod content name

Returns

ModWindowColor
ModWindowColor instance, Blue if no name match

Operators

ModWindowColor.implicit operator ModWindowColor(string) Operator

Implicitly converts a string into the corresponding ModWindowColor instance

public static BTD_Mod_Helper.Api.UI.ModWindowColor implicit operator ModWindowColor(string name);

Parameters

name System.String

the mod content name

Returns

ModWindowColor
ModWindowColor instance

ModWindowColor.implicit operator string(ModWindowColor) Operator

Implicitly turns a ModWindowColor isntance into its Name

public static string implicit operator string(BTD_Mod_Helper.Api.UI.ModWindowColor modWindowColor);

Parameters

modWindowColor ModWindowColor

mod window color instance

Returns

System.String
its name

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