Skip to content

Tooltip improvements

Max Hilbrunner requested to merge mhilbrunner/swade:more-tooltips into develop

This MR improves sheet tooltips.

  1. 5cdcb37 converts all title= uses to data-tooltip=; previously, both were used, leading to inconsistent tooltips e.g. on the PC sheet for different fields.
  2. b82f3e5 fixes a few tooltips that were still hardcoded instead of translation strings, or that should have been format strings.
  3. 1ca8bae adds a few more tooltips to sheets, most notably for the character names, so you can easily inspect long actor names.
  4. 440a905 adds handlebar helpers to easily add tooltips for items, effects and their cards to sheets, and makes use of those for status effects and items on PC & NPC sheets. (Status effect descriptions require the Core Rules module or something else injecting the descriptions into CONFIG.statusEffects, otherwise the tooltips won't show, as the core system does not come with descriptions.)

I recommend reviewing the commits separately.

Fixes #1093
Fixes #1094

Preview

tooltips

Edited by Max Hilbrunner

Merge request reports