Click or drag to resize
Icon Constructor (IconType, Anchor, Single, Boolean, NullableVector2)
Create a new icon. Note: if you want to use your own texture for the icon, simply set 'icon' to be IconType.None and replace 'Texture' with your own texture after it is created.

Namespace:  GeonBit.UI.Entities
Assembly:  GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public Icon(
	IconType icon,
	Anchor anchor = Anchor.Auto,
	float scale = 1f,
	bool background = false,
	Nullable<Vector2> offset = null
)

Parameters

icon
Type: GeonBit.UI.EntitiesIconType
A pre-defined icon to draw.
anchor (Optional)
Type: GeonBit.UI.EntitiesAnchor
Position anchor.
scale (Optional)
Type: SystemSingle
Icon default scale.
background (Optional)
Type: SystemBoolean
Whether or not to show icon inventory-like background.
offset (Optional)
Type: SystemNullableVector2
Offset from anchor position.
See Also