Click or drag to resize
Button Constructor (String, ButtonSkin, Anchor, NullableVector2, NullableVector2)
Create the button.

Namespace:  GeonBit.UI.Entities
Assembly:  GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public Button(
	string text,
	ButtonSkin skin = ButtonSkin.Default,
	Anchor anchor = Anchor.Auto,
	Nullable<Vector2> size = null,
	Nullable<Vector2> offset = null
)

Parameters

text
Type: SystemString
Text for the button label.
skin (Optional)
Type: GeonBit.UI.EntitiesButtonSkin
Button skin (texture to use).
anchor (Optional)
Type: GeonBit.UI.EntitiesAnchor
Position anchor.
size (Optional)
Type: SystemNullableVector2
Button size (if not defined will use default size).
offset (Optional)
Type: SystemNullableVector2
Offset from anchor position.
See Also