PackageFlairclass

A single badge shown over a package's thumbnail.

objectPackageFlair
Namespace
global
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.Package.PackageFlair

Constructors1

Showing 1 constructors

public PackageFlair(string Kind, string Icon, string Style, string Tooltip)PUBLICCONSTRUCTOR

A single badge shown over a package's thumbnail.

ParameterTypeDescription
KindstringWhat this flair is, e.g. "workshop-approved". Drives the icon/tooltip and lets UI style or de-duplicate them.
IconstringMaterial Symbols icon name, e.g. "verified".
StylestringRaw CSS applied inline to the badge, e.g. "background-color: #2d8cf0; color: #fff;".
TooltipstringHover text explaining why the flair is shown.

Methods1

Showing 1 methods

public void Deconstruct(string Kind, string Icon, string Style, string Tooltip)PUBLIC

ParameterTypeDescription
Kindstring
Iconstring
Stylestring
Tooltipstring
Returns:void

Properties4

Showing 4 properties

public string Sandbox.Package.PackageFlair.Icon { get; set; }PUBLICGETSET

Material Symbols icon name, e.g. "verified".

Returns:string

public string Sandbox.Package.PackageFlair.Kind { get; set; }PUBLICGETSET

What this flair is, e.g. "workshop-approved". Drives the icon/tooltip and lets UI style or de-duplicate them.

Returns:string

public string Sandbox.Package.PackageFlair.Style { get; set; }PUBLICGETSET

Raw CSS applied inline to the badge, e.g. "background-color: #2d8cf0; color: #fff;".

Returns:string

public string Sandbox.Package.PackageFlair.Tooltip { get; set; }PUBLICGETSET

Hover text explaining why the flair is shown.

Returns:string

On this page