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" "plural": "Traits"
}, },
"activeEffects": "Active Effects", "activeEffects": "Active Effects",
"armorSlots": "Armor Slots",
"attack": "Attack", "attack": "Attack",
"basics": "Basics", "basics": "Basics",
"bonus": "Bonus", "bonus": "Bonus",

View file

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

View file

@ -61,7 +61,16 @@
max='{{document.system.armorScore}}' max='{{document.system.armorScore}}'
></progress> ></progress>
<div class="status-label"> <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>
</div> </div>
{{/if}} {{/if}}