break out physical tab

This commit is contained in:
jalensailin
2025-07-18 22:47:29 -04:00
parent 2a819ca288
commit 8a49460f3c
2 changed files with 74 additions and 0 deletions
+6
View File
@@ -46,6 +46,12 @@ export default class DeltaGreenActorSheet extends DGSheetMixin(ActorSheetV2) {
`${this.TEMPLATE_PATH}/actor/partials/custom-skills-partial.html`,
],
},
physical: {
template: `${this.TEMPLATE_PATH}/actor/parts/physical-tab.html`,
templates: [
`${this.TEMPLATE_PATH}/actor/partials/attributes-grid-partial.html`,
],
},
});
/* -------------------------------------------- */
+68
View File
@@ -0,0 +1,68 @@
{{!-- Physical Statistics like STR, CON, etc. --}}
<div class="tab physical" data-group="primary" data-tab="physical">
<div class="horizontal-bar-section-divider">
<span>{{localize "DG.Sheet.BlockHeaders.Attributes"}}</span>
</div>
{{> "systems/deltagreen/templates/actor/partials/attributes-grid-partial.html" actorType="agent"}}
<br />
<div class="horizontal-bar-section-divider">
<span>{{localize "DG.Sheet.BlockHeaders.Injuries"}}</span>
</div>
<div>
<div class="first-aid-received-section resource">
<label class="bolded-label first-aid-label"
title="{{localize 'DG.Tooltip.FirstAidAttempted'}}">
{{localize 'DG.Physical.FirstAidLabel'}}
</label>
<input class="labeled-resource-checkbox"
type="checkbox"
name="system.physical.firstAidAttempted"
{{checked actor.system.physical.firstAidAttempted}}
data-dtype="Boolean"
title="{{localize 'DG.Tooltip.FirstAidAttempted'}}" />
</div>
<div class="exhausted-section resource">
<label class="bolded-label exhaustion-label"
title="{{localize 'DG.Tooltip.Exhaustion'}}">
{{localize 'DG.Physical.Exhausted'}}
</label>
<input class="labeled-resource-checkbox"
type="checkbox"
name="system.physical.exhausted"
{{checked actor.system.physical.exhausted}}
data-dtype="Boolean"
title="{{localize 'DG.Tooltip.Exhaustion'}}" />
{{#if actor.system.physical.exhausted }}
<label class="bolded-label exhaustion-label"
title="{{localize 'DG.Tooltip.Exhaustion'}}">
{{localize 'DG.Physical.ExhaustionPenalty'}}
</label>
<input type="number"
name="system.physical.exhaustedPenalty"
value="{{actor.system.physical.exhaustedPenalty}}"
data-dtype="Number"
title="{{localize 'DG.Tooltip.Exhaustion'}}"
min="-99"
max="0" />
{{/if}}
</div>
<div>
<label class="bolded-label">{{localize 'DG.Physical.Wounds'}}</label>
<!--<input class="fill-remaining-space"
type="text"
name="system.physical.wounds"
value="{{system.physical.wounds}}"
data-dtype="String" /> -->
<!-- This seems to save values, but not retrieve them... -->
<textarea class="wounds" rows="10" cols="10" name="system.physical.wounds">{{actor.system.physical.wounds}}</textarea>
</div>
</div>
</div>