Class AvatarWidgetController
A recyclable widget controller for user avatars.
Inherited Members
Namespace: SociallyDistant.Core.UI.Recycling
Assembly: SociallyDistant.Framework.dll
Syntax
public sealed class AvatarWidgetController : RecyclableWidgetControllerProperties
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(ContentWidget)
Declaration
public override void Build(ContentWidget destination)Parameters
| Type | Name | Description | 
|---|---|---|
| ContentWidget | destination | 
Overrides
Recycle()
Declaration
public override void Recycle()