set up vehicle sheet:
notes tab, only showing HP, no vehicle-sheet.html
This commit is contained in:
@@ -150,6 +150,7 @@
|
||||
"DG.Navigation.NPC.skills": "Skills & Training",
|
||||
"DG.Navigation.NPC.gear": "Attacks & Abilities",
|
||||
"DG.Navigation.Vehicle.gear": "Gear",
|
||||
"DG.Navigation.Vehicle.notes": "Notes",
|
||||
|
||||
"DG.About.Changelog": "CHANGELOG (ONLINE)",
|
||||
"DG.About.Copyright": "Published by Arc Dream Publishing by arrangement with the Delta Green Partnership. The intellectual property known as Delta Green is a trademark and copyright owned by the Delta Green Partnership, who has licensed its use here.",
|
||||
|
||||
@@ -8,6 +8,7 @@ export default class DGVehicleSheet extends DGActorSheet {
|
||||
initial: "gear",
|
||||
labelPrefix: "DG.Navigation.Vehicle",
|
||||
tabs: [
|
||||
{ id: "notes" },
|
||||
{ id: "gear" },
|
||||
{ id: "about", icon: "fas fa-question-circle", label: "" },
|
||||
],
|
||||
@@ -16,10 +17,11 @@ export default class DGVehicleSheet extends DGActorSheet {
|
||||
|
||||
/** @override */
|
||||
static PARTS = /** @type {const} */ ({
|
||||
main: {
|
||||
template: `${this.TEMPLATE_PATH}/vehicle-sheet.html`,
|
||||
},
|
||||
header: this.BASE_PARTS.header,
|
||||
tabs: this.BASE_PARTS.tabs,
|
||||
notes: {
|
||||
template: `${this.TEMPLATE_PATH}/partials/notes-partial.html`,
|
||||
},
|
||||
gear: this.BASE_PARTS.gear,
|
||||
about: this.BASE_PARTS.about,
|
||||
});
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
<section class="notes">
|
||||
<section class="tab notes {{tabs.notes.cssClass}}"
|
||||
{{#if (eq actor.type "vehicle") }}
|
||||
data-group="primary"
|
||||
data-tab="notes"
|
||||
{{/if }}>
|
||||
<div class="horizontal-bar-section-divider">
|
||||
<span>{{localize "DG.Sheet.BlockHeaders.PhysicalDescriptionNotes"}}</span>
|
||||
</div>
|
||||
|
||||
@@ -49,28 +49,30 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{!-- WP --}}
|
||||
<div class="resource-outer-grid-1col">
|
||||
<label for="system.wp.value"
|
||||
class="resource-label"
|
||||
data-tooltip="{{localize 'DG.Attributes.Tooltip.WP'}}">
|
||||
{{localize 'DG.Attributes.WP' }}
|
||||
</label>
|
||||
<div class="resource-inner-grid-3col">
|
||||
<input class="centered"
|
||||
type="text"
|
||||
name="system.wp.value"
|
||||
value="{{actor.system.wp.value}}"
|
||||
data-dtype="Number" />
|
||||
<span>/</span>
|
||||
<div class="max-resource-value"
|
||||
data-tooltip="{{localize 'DG.Tooltip.MaximumWP'}}">
|
||||
<div>{{numberFormat actor.system.wp.max decimals=0 sign=false}}</div>
|
||||
{{#if (ne actor.type "vehicle") }}
|
||||
{{!-- WP --}}
|
||||
<div class="resource-outer-grid-1col">
|
||||
<label for="system.wp.value"
|
||||
class="resource-label"
|
||||
data-tooltip="{{localize 'DG.Attributes.Tooltip.WP'}}">
|
||||
{{localize 'DG.Attributes.WP' }}
|
||||
</label>
|
||||
<div class="resource-inner-grid-3col">
|
||||
<input class="centered"
|
||||
type="text"
|
||||
name="system.wp.value"
|
||||
value="{{actor.system.wp.value}}"
|
||||
data-dtype="Number" />
|
||||
<span>/</span>
|
||||
<div class="max-resource-value"
|
||||
data-tooltip="{{localize 'DG.Tooltip.MaximumWP'}}">
|
||||
<div>{{numberFormat actor.system.wp.max decimals=0 sign=false}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{!-- Sanity --}}
|
||||
{{> "systems/deltagreen/templates/actor/partials/sanity-partial.html" }}
|
||||
{{!-- Sanity --}}
|
||||
{{> "systems/deltagreen/templates/actor/partials/sanity-partial.html" }}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<div class="tab notes {{tabs.notes.cssClass}}"
|
||||
data-group="primary"
|
||||
data-tab="notes">
|
||||
{{!-- This document is a wrapper around the notes partial. --}}
|
||||
{{> "systems/deltagreen/templates/actor/partials/notes-partial.html" }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user