Skip to Main Content

BTD_Mod_Helper​.Api​.Components​.WindowColorSetter


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.Components

WindowColorSetter Class

Custom component used to easily keep track of Window Color themes and updating them

public class WindowColorSetter

Inheritance UnityEngine.MonoBehaviour  WindowColorSetter

Fields

WindowColorSetter.image Field

The Image this is attached to

public Image image;

Field Value

UnityEngine.UI.Image

WindowColorSetter.type Field

The panel type for determining the texture

public PanelType type;

Field Value

PanelType

WindowColorSetter.window Field

The window this is a part of, possibly null, in which case will follow the default color BTD_Mod_Helper.MelonMain.CurrentDefaultWindowColor

public ModHelperWindow window;

Field Value

ModHelperWindow

Methods

WindowColorSetter.SetColor(string) Method

Change the image texture and pixel scale to a different WindowColor theme

public void SetColor(string windowColor);

Parameters

windowColor System.String

the WindowColor Name

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