Restored armorSlots when empty and added localization

This commit is contained in:
WBHarry 2025-07-15 12:02:23 +02:00
parent c681251b2a
commit 90f8028683
3 changed files with 16 additions and 7 deletions

View file

@ -1138,6 +1138,7 @@
"plural": "Traits"
},
"activeEffects": "Active Effects",
"armorSlots": "Armor Slots",
"attack": "Attack",
"basics": "Basics",
"bonus": "Bonus",

View file

@ -186,7 +186,7 @@
position: relative;
top: 30px;
height: 22px;
width: 94px;
width: 95px;
border-radius: 3px;
background: light-dark(@dark-blue, @golden);
@ -259,23 +259,18 @@
&::-webkit-progress-bar {
border: none;
background: light-dark(transparent, @dark-blue);
}
&::-webkit-progress-value {
background: @gradient-stress;
}
&.stress-color::-webkit-progress-value {
background: @gradient-stress;
}
&::-moz-progress-bar {
background: @gradient-stress;
}
&.stress-color::-moz-progress-bar {
background: @gradient-stress;
}
}
}
@ -283,6 +278,10 @@
.status-number {
justify-items: center;
&.armor-slots {
width: 95px;
}
.status-value {
position: relative;
display: flex;

View file

@ -61,7 +61,16 @@
max='{{document.system.armorScore}}'
></progress>
<div class="status-label">
<h4>Armor Slots</h4>
<h4>{{localize "DAGGERHEART.GENERAL.armorSlots"}}</h4>
</div>
</div>
{{else}}
<div class="status-number armor-slots">
<div class='status-value'>
<p>-</p>
</div>
<div class="status-label">
<h4>{{localize "DAGGERHEART.GENERAL.armorSlots"}}</h4>
</div>
</div>
{{/if}}