Table of Contents

Class ControlState

Namespace
BSGameLib.UI.Builder.Models
Assembly
BSGameLib.UI.dll

The look of a control in one state: its colors, texture, border and shadow.

public class ControlState
Inheritance
ControlState
Inherited Members

Properties

BorderColor

A flat border color in this state, drawn inside BorderThickness.

public string BorderColor { get; set; }

Property Value

string

BorderThickness

The border's width in pixels. Has no effect unless BorderColor is set. One by default.

[Range(0, 2147483647)]
public int BorderThickness { get; set; }

Property Value

int

Color

The color of the texture in this state.

public string Color { get; set; }

Property Value

string

FillColor

A flat fill color in this state, as a hex color, a rgb() value or a color name.

public string FillColor { get; set; }

Property Value

string

FillGradient

A gradient fill in this state, naming a Gradient resource. Drawn in place of FillColor when both are set.

public string FillGradient { get; set; }

Property Value

string

FontColor

The color of the text in this state. Black by default.

public string FontColor { get; set; }

Property Value

string

ShadowBlur

The shadow's blur in pixels, read as CSS reads a blur radius.

[Range(0, 2147483647)]
public int ShadowBlur { get; set; }

Property Value

int

ShadowColor

The color of a soft drop shadow in this state. Nothing is drawn without it.

public string ShadowColor { get; set; }

Property Value

string

ShadowOffset

How far the shadow is moved from the control, in pixels. Written through ShadowOffsetValue.

public Point ShadowOffset { get; set; }

Property Value

Point

ShadowOffsetValue

The ShadowOffset attribute's text, as {x,y}. Use ShadowOffset in code.

public string ShadowOffsetValue { get; set; }

Property Value

string

ShadowSpread

How much larger than the control the shadow is, in pixels. Negative values pull it in.

public int ShadowSpread { get; set; }

Property Value

int

Texture

The texture drawn in this state.

public TextureReference Texture { get; set; }

Property Value

TextureReference