mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-15 21:21:08 +01:00
feat: add basic style to effects tooltip
This commit is contained in:
parent
5b671a931e
commit
24626545b9
4 changed files with 58 additions and 26 deletions
|
|
@ -1,16 +1,24 @@
|
|||
<div class="daggerheart dh-style tooltip">
|
||||
<div class="tooltip-header">
|
||||
<h3>{{effect.name}}</h3>
|
||||
<div class="helper">
|
||||
{{#unless effect.isLockedCondition}}
|
||||
{{localize "DAGGERHEART.UI.EffectsDisplay.removeThing" thing=(localize "DAGGERHEART.GENERAL.Effect.single")}}
|
||||
{{/unless}}
|
||||
<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>
|
||||
</div>
|
||||
<div>
|
||||
{{#if effect.description}}{{{effect.description}}}{{else}}{{{effect.parent.system.description}}}{{/if}}
|
||||
</div>
|
||||
{{#if effect.appliedBy}}
|
||||
<footer class="tooltip-footer">{{localize "DAGGERHEART.UI.EffectsDisplay.appliedBy" by=effect.appliedBy}}</footer>
|
||||
{{/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