Table of Contents

Class HorizontalThreePatchTexture

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

A horizontal three-patch texture: a left cap, a stretched middle and a right cap, read from one image.

public class HorizontalThreePatchTexture : Texture
Inheritance
HorizontalThreePatchTexture
Inherited Members

Properties

Color

The color of the texture. Applies to all segments unless a segment overrides it.

[StringLength(7, MinimumLength = 7)]
public string Color { get; set; }

Property Value

string

FontColor

The font color to use with this texture, where it applies. White by default.

[StringLength(7, MinimumLength = 7)]
public string FontColor { get; set; }

Property Value

string

Left

The left cap.

[Required]
public NinePatchSubsection Left { get; set; }

Property Value

NinePatchSubsection

Middle

The stretched middle segment.

[Required]
public NinePatchSubsection Middle { get; set; }

Property Value

NinePatchSubsection

Right

The right cap.

[Required]
public NinePatchSubsection Right { get; set; }

Property Value

NinePatchSubsection

Texture

The image file the segments are read from.

[Required]
public TextureFile Texture { get; set; }

Property Value

TextureFile