Table of Contents

Interface IComboBoxArrowBuilder<TBuilder>

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

Configures the arrow of a combo box, which is either a texture or a set of colors.

public interface IComboBoxArrowBuilder<TBuilder>

Type Parameters

TBuilder

Methods

WithClickedColor(string)

Sets the arrow's color while it is pressed. Falls back to the normal color.

IComboBoxArrowBuilder<TBuilder> WithClickedColor(string colorHex)

Parameters

colorHex string

Returns

IComboBoxArrowBuilder<TBuilder>

WithHorizontalThreePatchTextureReference(string)

Uses a horizontal three-patch texture already declared in the view's resources.

IComboBoxArrowBuilder<TBuilder> WithHorizontalThreePatchTextureReference(string id)

Parameters

id string

Returns

IComboBoxArrowBuilder<TBuilder>

WithHoverColor(string)

Sets the color of the item under the pointer.

IComboBoxArrowBuilder<TBuilder> WithHoverColor(string colorHex)

Parameters

colorHex string

Returns

IComboBoxArrowBuilder<TBuilder>

WithNinePatchTextureReference(string)

Uses a nine-patch texture already declared in the view's resources.

IComboBoxArrowBuilder<TBuilder> WithNinePatchTextureReference(string id)

Parameters

id string

Returns

IComboBoxArrowBuilder<TBuilder>

WithNormalColor(string)

Sets the normal state's fill color of the open list.

IComboBoxArrowBuilder<TBuilder> WithNormalColor(string colorHex)

Parameters

colorHex string

Returns

IComboBoxArrowBuilder<TBuilder>

WithTexture(string, string)

Sets the arrow's texture from a file, under the id id.

IComboBoxArrowBuilder<TBuilder> WithTexture(string id, string sourceFile)

Parameters

id string
sourceFile string

Returns

IComboBoxArrowBuilder<TBuilder>

WithTextureIndexAtlas(string, int, string, int, int)

Sets the arrow's texture to one indexed texture of an atlas file.

IComboBoxArrowBuilder<TBuilder> WithTextureIndexAtlas(string id, int index, string sourceFile, int eachTextureWidth, int eachTextureHeight)

Parameters

id string
index int
sourceFile string
eachTextureWidth int
eachTextureHeight int

Returns

IComboBoxArrowBuilder<TBuilder>

WithTextureIndexReference(string, int)

Uses one indexed texture of an atlas already declared in the view's resources.

IComboBoxArrowBuilder<TBuilder> WithTextureIndexReference(string id, int index)

Parameters

id string
index int

Returns

IComboBoxArrowBuilder<TBuilder>

WithTextureReference(string)

Uses a texture already declared in the view's resources.

IComboBoxArrowBuilder<TBuilder> WithTextureReference(string id)

Parameters

id string

Returns

IComboBoxArrowBuilder<TBuilder>

WithTextureRegionAtlas(string, string, string, int, int, int, int)

Sets the arrow's texture to one named region of a texture atlas file.

IComboBoxArrowBuilder<TBuilder> WithTextureRegionAtlas(string id, string sourceFile, string regionId, int x, int y, int width, int height)

Parameters

id string
sourceFile string
regionId string
x int
y int
width int
height int

Returns

IComboBoxArrowBuilder<TBuilder>

WithTextureRegionReference(string, string)

Uses one named region of a texture atlas already declared in the view's resources.

IComboBoxArrowBuilder<TBuilder> WithTextureRegionReference(string id, string regionName)

Parameters

id string
regionName string

Returns

IComboBoxArrowBuilder<TBuilder>