Tooltip (Badge Type)

Badge — an icon with hover text in the origin screen.

An icon in the origin-selection screen that shows a line of text when hovered. The everyday badge type for explaining a power.

Type ID: origins:tooltip — a badge type.

Needs the Origins mod. Badges are an Origins concept; core Apoli has no equivalent. Not to be confused with the apoli:tooltip power, which adds a line to an item’s tooltip in-world.

Fields

FieldTypeDefaultPurpose
spriteIdentifierrequiredFull path to the texture to draw, e.g. origins:textures/gui/badge/active.png.
textText ComponentrequiredThe hover text. A bare string is a literal; use an object for a translation key or styling.

The text wraps to the width of the origin panel, so a couple of sentences is fine.

Examples

A plain literal:

{
  "type": "origins:tooltip",
  "sprite": "my_pack:textures/gui/badge/water.png",
  "text": "You breathe water, but drown in air."
}

A translated one, so the badge follows the player’s language:

{
  "type": "origins:tooltip",
  "sprite": "my_pack:textures/gui/badge/water.png",
  "text": { "translate": "badge.my_pack.aquatic" }
}