Sprite (Badge Type)
The simplest badge: an icon next to the power in the origin selection screen, with no hover text.
Type ID: origins:sprite
note
Badges come from the Origins mod, and core Apoli has nothing like them.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
sprite | Identifier | required | The full path of the texture to draw, such as my_pack:textures/gui/badge/water.png. |
fallback | Identifier or Array of identifiers | optional | Textures to draw when sprite isn't in any loaded resource pack. The first one that exists is used. |
Examples
{
"type": "apoli:swimming",
"badges": [
{
"type": "origins:sprite",
"sprite": "my_pack:textures/gui/badge/water.png"
}
]
}This puts the badge inline on a power.
data/my_pack/badges/aquatic.json
{
"type": "origins:sprite",
"sprite": "my_pack:textures/gui/badge/water.png"
}As a standalone badge in its own file, any power can reference it by ID from its badges array.
Notes
- With no text, a
spritebadge is decoration. Useorigins:tooltipwhenever the icon needs explaining. spriteis a full texture path, includingtextures/and.png. Sprite atlas names don't work.