Click or drag to resize
ButtonSetCustomSkin Method
Override the default theme textures and set a custom skin for this specific button.

Namespace:  GeonBit.UI.Entities
Assembly:  GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public void SetCustomSkin(
	Texture2D defaultTexture,
	Texture2D mouseHoverTexture,
	Texture2D mouseDownTexture,
	Nullable<Vector2> frameWidth = null
)

Parameters

defaultTexture
Type: Texture2D
Texture to use for default state.
mouseHoverTexture
Type: Texture2D
Texture to use when mouse hover over the button.
mouseDownTexture
Type: Texture2D
Texture to use when mouse button is down over this button.
frameWidth (Optional)
Type: SystemNullableVector2
The width of the custom texture's frame, in percents of texture size.
Remarks
You must provide all state textures when overriding button skin.
See Also