mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-10 19:17:09 +01:00
feat: add style to armors tooltip, add a style to make armor slot label more clear that was a button and add a tooltip location
This commit is contained in:
parent
420d436bb1
commit
3bfa6b28ed
5 changed files with 59 additions and 17 deletions
|
|
@ -45,7 +45,7 @@
|
|||
</a>
|
||||
{{/times}}
|
||||
</div>
|
||||
<a class="slot-label" data-action="toggleArmorMangement">
|
||||
<a class="slot-label" data-action="toggleArmorMangement" data-tooltip="{{localize 'DAGGERHEART.UI.Tooltip.clickManageArmor'}}">
|
||||
<span class="label">{{localize "DAGGERHEART.GENERAL.armorSlots"}}</span>
|
||||
<div class="slot-value-container">
|
||||
<span class="value">{{document.system.armorScore.value}} / {{document.system.armorScore.max}}</span>
|
||||
|
|
@ -64,7 +64,7 @@
|
|||
value='{{document.system.armorScore.value}}'
|
||||
max='{{document.system.armorScore.max}}'
|
||||
></progress>
|
||||
<a class="status-label" data-action="toggleArmorMangement">
|
||||
<a class="status-label" data-action="toggleArmorMangement" data-tooltip="{{localize 'DAGGERHEART.UI.Tooltip.clickManageArmor'}}">
|
||||
<h4>{{localize "DAGGERHEART.GENERAL.armorSlots"}}</h4>
|
||||
<i class="fa-solid fa-gear"></i>
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
<div class="daggerheart armor-management-container">
|
||||
<h3>{{localize "DAGGERHEART.GENERAL.armorSlots"}}</h3>
|
||||
{{#each sources as |source|}}
|
||||
{{#if ../useResourcePips}}
|
||||
<div class="armor-source-container">
|
||||
<label class="armor-source-label">{{source.name}}</label>
|
||||
<p class="armor-source-label">{{source.name}}</p>
|
||||
<div class="slot-bar">
|
||||
{{#times source.max}}
|
||||
<a class='armor-slot' data-value="{{add this 1}}" data-uuid="{{source.uuid}}">
|
||||
|
|
@ -17,7 +18,7 @@
|
|||
</div>
|
||||
{{else}}
|
||||
<div class="armor-source-container">
|
||||
<label class="armor-source-label">{{source.name}}</label>
|
||||
<p class="armor-source-label">{{source.name}}</p>
|
||||
<div class="status-bar armor-slots">
|
||||
<div class='status-value'>
|
||||
<input class="bar-input armor-marks-input" value="{{source.value}}" data-uuid="{{source.uuid}}" type="number">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue