Table of Contents

Interface IHorizontalThreePatchTextureBuilder<TBuilder>

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

Builds a horizontal three-patch texture: a left cap, a stretched middle and a right cap.

public interface IHorizontalThreePatchTextureBuilder<out TBuilder>

Type Parameters

TBuilder

Methods

WithColor(string)

Sets the color of the texture. Applies to every segment unless a segment overrides it.

IHorizontalThreePatchTextureBuilder<out TBuilder> WithColor(string colorHex)

Parameters

colorHex string

Returns

IHorizontalThreePatchTextureBuilder<TBuilder>

WithFontColor(string)

Sets the font color to use with this texture, where it applies.

IHorizontalThreePatchTextureBuilder<out TBuilder> WithFontColor(string colorHex)

Parameters

colorHex string

Returns

IHorizontalThreePatchTextureBuilder<TBuilder>

WithLeft(Action<INinePatchSubsectionBuilder<IHorizontalThreePatchTextureBuilder<TBuilder>>>)

Configures the left cap's position and size in the texture.

IHorizontalThreePatchTextureBuilder<out TBuilder> WithLeft(Action<INinePatchSubsectionBuilder<IHorizontalThreePatchTextureBuilder<out TBuilder>>> configure)

Parameters

configure Action<INinePatchSubsectionBuilder<IHorizontalThreePatchTextureBuilder<TBuilder>>>

Returns

IHorizontalThreePatchTextureBuilder<TBuilder>

WithMiddle(Action<INinePatchSubsectionBuilder<IHorizontalThreePatchTextureBuilder<TBuilder>>>)

Configures the stretched middle segment's position and size in the texture.

IHorizontalThreePatchTextureBuilder<out TBuilder> WithMiddle(Action<INinePatchSubsectionBuilder<IHorizontalThreePatchTextureBuilder<out TBuilder>>> configure)

Parameters

configure Action<INinePatchSubsectionBuilder<IHorizontalThreePatchTextureBuilder<TBuilder>>>

Returns

IHorizontalThreePatchTextureBuilder<TBuilder>

WithRight(Action<INinePatchSubsectionBuilder<IHorizontalThreePatchTextureBuilder<TBuilder>>>)

Configures the right cap's position and size in the texture.

IHorizontalThreePatchTextureBuilder<out TBuilder> WithRight(Action<INinePatchSubsectionBuilder<IHorizontalThreePatchTextureBuilder<out TBuilder>>> configure)

Parameters

configure Action<INinePatchSubsectionBuilder<IHorizontalThreePatchTextureBuilder<TBuilder>>>

Returns

IHorizontalThreePatchTextureBuilder<TBuilder>

WithTexture(string, string)

Sets the file the texture's segments are read from, under the id id.

IHorizontalThreePatchTextureBuilder<out TBuilder> WithTexture(string id, string sourceFile)

Parameters

id string
sourceFile string

Returns

IHorizontalThreePatchTextureBuilder<TBuilder>