Skip to main content

Tooltip (Badge Type)

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

Type ID: origins:tooltip

note

Badges come from the Origins mod, and core Apoli has nothing like them. Don't confuse this with the apoli:tooltip power, which adds a line to an item's tooltip in the world.

Fields

FieldTypeDefaultDescription
spriteIdentifierrequiredThe full path of the texture to draw, such as origins:textures/gui/badge/isaacfanta/active.png.
fallbackIdentifier or Array of identifiersoptionalTextures to draw when sprite isn't in any loaded resource pack. The first one that exists is used.
textText ComponentrequiredThe hover text. A plain string is literal text, and an object can use a translation key or styling.

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

Examples

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

This badge shows literal text.

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

This one uses a translation key, so the badge follows the player's language.