Class AvatarWidgetBuilder
A recyclable widget builder for building user avatars.
Implements
Inherited Members
Namespace: SociallyDistant.Core.UI.Recycling
Assembly: SociallyDistant.Framework.dll
Syntax
public sealed class AvatarWidgetBuilder : IRecyclableWidgetBuilder
Properties
AvatarColor
Gets or sets the favourite color of the user being shown. This is used when generating default avatars.
Declaration
public Color AvatarColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
AvatarTexture
Gets or sets a Microsoft.Xna.Framework.Graphics.Texture2D representing a custom avatar. If none is specified, a default avatar will be generated.
Declaration
public Texture2D? AvatarTexture { get; set; }
Property Value
Type | Description |
---|---|
Texture2D |
Size
Gets or sets a AvatarSize value representing how large the avatar should be displayed as.
Declaration
public AvatarSize Size { get; set; }
Property Value
Type | Description |
---|---|
AvatarSize |
Methods
Build()
Create a RecyclableWidgetController based on this widget builder's properties.
Declaration
public RecyclableWidgetController Build()
Returns
Type | Description |
---|---|
RecyclableWidgetController | A new instance of RecyclableWidgetController. |