s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
PackageFlair
chevron_left
Classes
struct
PackageFlair
Constructors
functions
PackageFlair
Properties
data_object
Icon
data_object
Kind
data_object
Style
data_object
Tooltip
Methods
functions
Deconstruct
PackageFlair
A single badge shown over a package's thumbnail.
struct
Sandbox.Package
.
sealed
Sandbox.Engine
build
Constructors
1
PackageFlair
(
Kind
,
Icon
,
Style
,
Tooltip
)
A single badge shown over a package's thumbnail.
data_object
Properties
4
Icon
string
Material Symbols icon name, e.g. "verified".
Kind
string
What this flair is, e.g. "workshop-approved". Drives the icon/tooltip and lets UI style or de-duplicate them.
Style
string
Raw CSS applied inline to the badge, e.g. "background-color: #2d8cf0; color: #fff;".
Tooltip
string
Hover text explaining why the flair is shown.
functions
Methods
1
Deconstruct
(
Kind
,
Icon
,
Style
,
Tooltip
)
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.