GeonBit.UI Documentation
Icon Constructor |
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)

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
Weather or not to show icon inventory-like background. - offset (Optional)
- Type: SystemNullableVector2
Offset from anchor position.
