mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
[Feature] EffectsDisplay (#1340)
* Merged with main * Added the display * . * Removed unused override function * Fixed layout for generic effects * feat: add basic style to effects tooltip * Corrected distancing * Use CSS based solution for shifting the countdowns * Centered tooltip header --------- Co-authored-by: moliloo <dev.murilobrito@gmail.com> Co-authored-by: Carlos Fernandez <cfern1990@gmail.com>
This commit is contained in:
parent
f41f0b20b7
commit
165068a9ee
25 changed files with 399 additions and 41 deletions
24
templates/ui/tooltip/effect-display.hbs
Normal file
24
templates/ui/tooltip/effect-display.hbs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<div class="daggerheart dh-style tooltip">
|
||||
<div class="tooltip-header">
|
||||
<h2>{{effect.name}}</h2>
|
||||
{{#if effect.appliedBy}}
|
||||
<p class="subtitle">{{localize "DAGGERHEART.UI.EffectsDisplay.appliedBy" by=effect.appliedBy}}</p>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
{{#if effect.description}}
|
||||
<div class="description">
|
||||
{{{effect.description}}}
|
||||
</div>
|
||||
{{else if effect.parent.system.description}}
|
||||
<div class="description">
|
||||
{{{effect.parent.system.description}}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#unless effect.isLockedCondition}}
|
||||
<p class="close-hint">
|
||||
<i class="fa-solid fa-computer-mouse"></i> {{localize "DAGGERHEART.UI.EffectsDisplay.removeThing" thing=(localize "DAGGERHEART.GENERAL.Effect.single")}}
|
||||
</p>
|
||||
{{/unless}}
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue