Add the toggle for item equipped status and inventory properties

This commit is contained in:
Oliver 2026-03-23 00:23:32 -06:00
parent 44372d0a17
commit f5c7e1c4bc
5 changed files with 37 additions and 9 deletions

View file

@ -5,15 +5,21 @@
>
<section class="inventory-summary">
<h3 class="grow">
Carrying Capacity:
{{localize "taf.Apps.PlayerSheet.carrying-capacity.title"}}
</h3>
<div>
({{carryCapacityPercent}}% Used)
{{localize
"taf.Apps.PlayerSheet.carry-capacity-used"
percent=carryCapacityPercent
}}
</div>
<input
type="text"
value="{{totalWeight}}"
disabled
aria-label="{{localize "taf.Apps.PlayerSheet.total-weight"}}"
data-tooltip
data-tooltip-direction="UP"
>
<div aria-hidden="true">
/
@ -22,6 +28,9 @@
type="number"
name="system.carryCapacity"
value="{{system.carryCapacity}}"
aria-label="{{localize "taf.Apps.PlayerSheet.carrying-capacity.label"}}"
data-tooltip
data-tooltip-direction="UP"
>
</section>
{{#each itemGroups as | group |}}

View file

@ -3,6 +3,11 @@
data-item-uuid="{{uuid}}"
>
<div class="summary">
<taf-toggle
var:size="8px"
var:padding="2px"
{{checked equipped}}
></taf-toggle>
<img
src="{{img}}"
alt=""
@ -21,6 +26,7 @@
data-action="toggleExpand"
data-expanded="{{isExpanded}}"
{{disabled (not canExpand)}}
aria-label="{{localize "taf.Apps.PlayerSheet.toggle-item-description"}}"
>
<taf-icon
name="icons/chevron"