mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
199 - Tooltips (#311)
* Set up templates for all 'advanced' tooltips * Fixed ItemFeature Header label * Fixed less import
This commit is contained in:
parent
72436478c1
commit
b6195127fe
23 changed files with 505 additions and 54 deletions
|
|
@ -1,5 +1,56 @@
|
|||
<div>
|
||||
<div>{{name}}</div>
|
||||
<img src="{{img}}" />
|
||||
<div>{{{system.description}}}</div>
|
||||
<div class="daggerheart dh-style tooltip">
|
||||
<h2 class="tooltip-title">{{item.name}}</h2>
|
||||
<img class="tooltip-image" src="{{item.img}}" />
|
||||
<div class="tooltip-description">{{{item.system.description}}}</div>
|
||||
|
||||
<div class="tooltip-information-section">
|
||||
<div class="tooltip-information">
|
||||
<label>{{localize "DAGGERHEART.ITEMS.Weapon.weaponType"}}</label>
|
||||
<div>{{#if item.system.secondaryWeapon}}{{localize "DAGGERHEART.ITEMS.Weapon.secondaryWeapon"}}{{else}}{{localize "DAGGERHEART.ITEMS.Weapon.primaryWeapon"}}{{/if}}</div>
|
||||
</div>
|
||||
<div class="tooltip-information">
|
||||
<label>{{localize "DAGGERHEART.GENERAL.burden"}}</label>
|
||||
{{#with (lookup config.GENERAL.burden item.system.burden) as | burden |}}
|
||||
<div>{{localize burden.label}}</div>
|
||||
{{/with}}
|
||||
</div>
|
||||
{{#if item.system.attack.roll.trait}}
|
||||
<div class="tooltip-information">
|
||||
<label>{{localize "DAGGERHEART.GENERAL.Trait.single"}}</label>
|
||||
{{#with (lookup config.ACTOR.abilities item.system.attack.roll.trait) as | trait |}}
|
||||
<div>{{localize trait.label}}</div>
|
||||
{{/with}}
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="tooltip-information">
|
||||
<label>{{localize "DAGGERHEART.GENERAL.range"}}</label>
|
||||
{{#with (lookup config.GENERAL.range item.system.attack.range) as | range |}}
|
||||
<div>{{localize range.label}}</div>
|
||||
{{/with}}
|
||||
</div>
|
||||
<div class="tooltip-information">
|
||||
<label>{{localize "DAGGERHEART.GENERAL.damage"}}</label>
|
||||
<div>{{{damageFormula item.system.attack item.parent}}}</div>
|
||||
</div>
|
||||
<div class="tooltip-information">
|
||||
<label>{{localize "DAGGERHEART.GENERAL.damageType"}}</label>
|
||||
<div>{{{damageSymbols item.system.attack.damage.parts}}}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{#if (gt item.system.weaponFeatures.length 0)}}<h4 class="tooltip-sub-title">{{localize "DAGGERHEART.GENERAL.features"}}</h4>{{/if}}
|
||||
<div class="tooltip-tags">
|
||||
{{#each item.system.weaponFeatures}}
|
||||
{{#with (lookup ../config.ITEM.weaponFeatures this.value) as | feature | }}
|
||||
<div class="tooltip-tag">
|
||||
<div class="tooltip-tag-label-container">
|
||||
<div class="tooltip-tag-label">{{localize feature.label}}</div>
|
||||
</div>
|
||||
<div class="tooltip-tag-description">{{{localize feature.description}}}</div>
|
||||
</div>
|
||||
{{/with}}
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
{{> "systems/daggerheart/templates/ui/tooltip/parts/tooltipTags.hbs" features=item.system.customActions label=(localize "DAGGERHEART.GENERAL.Action.plural") }}
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue