Table of Contents

Class WeedAppearanceSettings

Namespace
S1API.Products
Assembly
S1API.dll

Configures the four native color channels used by a weed product.

public sealed class WeedAppearanceSettings
Inheritance
WeedAppearanceSettings
Inherited Members
Extension Methods

Constructors

WeedAppearanceSettings(Color32, Color32, Color32, Color32)

Creates weed appearance settings.

public WeedAppearanceSettings(Color32 mainColor, Color32 secondaryColor, Color32 leafColor, Color32 stemColor)

Parameters

mainColor Color32

The primary bud color.

secondaryColor Color32

The secondary bud color.

leafColor Color32

The leaf color.

stemColor Color32

The stem color.

Exceptions

ArgumentException

Thrown when any color is fully clear. The native creator treats a clear channel as an uninitialized appearance and replaces all supplied colors with generated colors.

Properties

LeafColor

Gets the leaf color.

public Color32 LeafColor { get; }

Property Value

Color32

MainColor

Gets the primary bud color.

public Color32 MainColor { get; }

Property Value

Color32

SecondaryColor

Gets the secondary bud color.

public Color32 SecondaryColor { get; }

Property Value

Color32

StemColor

Gets the stem color.

public Color32 StemColor { get; }

Property Value

Color32