mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-16 13:41:07 +01:00
feat: style attack hbs tooltip
This commit is contained in:
parent
908f7b0bb8
commit
82727cffe7
1 changed files with 25 additions and 24 deletions
|
|
@ -1,35 +1,36 @@
|
||||||
<div class="daggerheart dh-style tooltip card-style">
|
<div class="daggerheart dh-style tooltip card-style">
|
||||||
<h2 class="tooltip-title">{{attack.name}}</h2>
|
|
||||||
<img class="tooltip-image" src="{{attack.img}}" />
|
<img class="tooltip-image" src="{{attack.img}}" />
|
||||||
<div class="tooltip-description">{{{description}}}</div>
|
<h2 class="tooltip-title">{{attack.name}}</h2>
|
||||||
|
<div class="tags">
|
||||||
<div class="tooltip-information-section spaced">
|
|
||||||
|
|
||||||
{{#if (lookup config.ACTOR.abilities attack.roll.trait)}}
|
{{#if (lookup config.ACTOR.abilities attack.roll.trait)}}
|
||||||
<div class="tooltip-information">
|
<div class="tag">
|
||||||
<label>{{localize "DAGGERHEART.GENERAL.Trait.single"}}</label>
|
<span>
|
||||||
{{#with (lookup config.ACTOR.abilities attack.roll.trait) as | trait |}}
|
{{localize "DAGGERHEART.GENERAL.Trait.single"}}
|
||||||
<div>{{localize trait.label}}</div>
|
{{#with (lookup config.ACTOR.abilities attack.roll.trait) as | trait |}}
|
||||||
{{/with}}
|
{{localize trait.label}}
|
||||||
|
{{/with}}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if (lookup config.GENERAL.range attack.range)}}
|
{{#if (lookup config.GENERAL.range attack.range)}}
|
||||||
<div class="tooltip-information">
|
<div class="tag">
|
||||||
<label>{{localize "DAGGERHEART.GENERAL.range"}}</label>
|
<span>
|
||||||
{{#with (lookup config.GENERAL.range attack.range) as | range |}}
|
{{localize "DAGGERHEART.GENERAL.range"}}
|
||||||
<div>{{localize range.label}}</div>
|
{{#with (lookup config.GENERAL.range attack.range) as | range |}}
|
||||||
{{/with}}
|
{{localize range.label}}
|
||||||
|
{{/with}}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
<div class="tag">
|
||||||
<div class="tooltip-information">
|
<span>{{{damageFormula attack}}} {{{damageSymbols attack.damage.parts}}}</span>
|
||||||
<label>{{localize "DAGGERHEART.GENERAL.damage"}}</label>
|
|
||||||
<div>{{{damageFormula attack}}}</div>
|
|
||||||
</div>
|
|
||||||
<div class="tooltip-information">
|
|
||||||
<label>{{localize "DAGGERHEART.GENERAL.damageType"}}</label>
|
|
||||||
<div>{{{damageSymbols attack.damage.parts}}}</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{{#if description}}
|
||||||
|
<div class="tooltip-description">{{{description}}}</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
<p class="tooltip-hint">
|
||||||
|
<i class="fa-solid fa-computer-emouse"></i> {{localize "DAGGERHEART.UI.Tooltip.middleClick"}}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue