diff --git a/module/actor/actor-sheet.js b/module/actor/actor-sheet.js index f739094..1c51f4d 100644 --- a/module/actor/actor-sheet.js +++ b/module/actor/actor-sheet.js @@ -40,6 +40,12 @@ export default class DeltaGreenActorSheet extends DGSheetMixin(ActorSheetV2) { tabs: { template: `templates/generic/tab-navigation.hbs`, // From FoundryVTT }, + skills: { + template: `${this.TEMPLATE_PATH}/actor/parts/skills-tab.html`, + templates: [ + `${this.TEMPLATE_PATH}/actor/partials/custom-skills-partial.html`, + ], + }, }); /* -------------------------------------------- */ diff --git a/module/templates.js b/module/templates.js index 2e602fa..b69083d 100644 --- a/module/templates.js +++ b/module/templates.js @@ -5,7 +5,6 @@ */ export default async function preloadHandlebarsTemplates() { return foundry.applications.handlebars.loadTemplates([ - "systems/deltagreen/templates/actor/actor-sheet.html", "systems/deltagreen/templates/actor/limited-sheet.html", "systems/deltagreen/templates/actor/unnatural-sheet.html", "systems/deltagreen/templates/actor/npc-sheet.html", diff --git a/templates/actor/actor-sheet.html b/templates/actor/actor-sheet.html deleted file mode 100644 index dcbc0b5..0000000 --- a/templates/actor/actor-sheet.html +++ /dev/null @@ -1,320 +0,0 @@ -
- {{!-- Sheet Body --}} -
- {{!-- Skills Tab --}} -
-
- {{localize "DG.Sheet.BlockHeaders.SkillsAndTraining"}} -
-
- {{#each actor.system.sortedSkills as |skill key| }} -
- - - {{#if_eq skill.key 'ritual' }} - {{#if (keepSanityPrivate) }} - - - {{/if}} - {{#unless (keepSanityPrivate)}} - - - {{/unless}} - {{/if_eq}} - {{#if_not_eq skill.key 'ritual' }} - - - {{/if_not_eq}} -
- {{/each}} -
-{{!-- Custom Skills and Special Training --}} -
{{> "systems/deltagreen/templates/actor/partials/custom-skills-partial.html" actorType="agent"}}
-
-{{!-- Physical Statistics like STR, CON, etc. --}} -
-
- {{localize "DG.Sheet.BlockHeaders.Attributes"}} -
- {{> "systems/deltagreen/templates/actor/partials/attributes-grid-partial.html" actorType="agent"}} -
-
- {{localize "DG.Sheet.BlockHeaders.Injuries"}} -
-
-
- - -
-
- - - {{#if actor.system.physical.exhausted }} - - - {{/if}} -
-
- - - - -
-
-
-{{!-- Psychological Tab (formerly 'Mental', formerly 'Motivations') --}} -
-
- {{localize "DG.Sheet.BlockHeaders.BreakingPointAndAdaptations"}} -
-
-
- - - {{localize 'DG.Mental.Reset'}} -
-
-

{{localize 'DG.Mental.SanityLossIncidentsLabel'}}

-
- - - - - - - - - - -
-
-
-
- {{localize "DG.Sheet.BlockHeaders.MotivationsAndDisorders"}} -
-
-
    -
  1. -
    {{localize 'DG.Mental.Motivations'}}
    -
    {{localize 'DG.Mental.Disorders'}}
    - -
  2. - {{#each actor.items as |item id| }} - {{#if_eq item.type 'motivation' }} -
  3. -

    - {{item.name}} -

    - {{#if item.system.crossedOut }} -

    {{item.system.disorder}}

    - {{/if}} -
    - - -
    -
  4. - {{/if_eq}} - {{/each}} -
-
-
-{{!-- GEAR Tab --}} -
- {{> "systems/deltagreen/templates/actor/partials/equipment-partial.html" }} -
-{{!-- PERSONAL (Biography) Tab --}} -
-
- {{localize "DG.Sheet.BlockHeaders.PersonalInfoCV"}} -
- {{> "systems/deltagreen/templates/actor/partials/cv-partial.html" }} -
-{{!-- Bonds Tab --}} -
-
- {{localize "DG.Sheet.BlockHeaders.BondsRelationshipsContacts"}} -
-
-
    -
  1. -
    - -
    -
    -
    {{localize 'DG.Bonds.Name'}}
    -
    {{localize 'DG.Bonds.Relationship'}}
    -
    {{localize 'DG.Bonds.Score'}}
    - -
  2. - {{#each actor.items as |item id| }} - {{#if_eq item.type 'bond' }} -
  3. - -
    - -
    -

    {{item.name}}

    - {{item.system.relationship}} - {{item.system.score}} -
    - - -
    -
  4. - {{/if_eq}} - {{/each}} -
-
- {{localizeWithFallback 'DG.Generic.CheckDamagedBondsBoxUntilNextHomeScene' 'Check a damaged Bond's box until the next Home scene ends.' }} -
-
-
-{{!-- About Tab --}} -
- {{> "systems/deltagreen/templates/actor/partials/help-and-licensing-partial.html" }} -
-
-
diff --git a/templates/actor/parts/skills-tab.html b/templates/actor/parts/skills-tab.html new file mode 100644 index 0000000..f6b91c3 --- /dev/null +++ b/templates/actor/parts/skills-tab.html @@ -0,0 +1,90 @@ +
+
+ {{localize "DG.Sheet.BlockHeaders.SkillsAndTraining"}} +
+
+ {{#each actor.system.sortedSkills as |skill key| }} +
+ + {{#if_eq skill.key 'ritual' }} + {{#if (keepSanityPrivate) }} + + + {{/if}} + {{#unless (keepSanityPrivate)}} + + + {{/unless}} + {{/if_eq}} + {{#if_not_eq skill.key 'ritual' }} + + + {{/if_not_eq}} +
+ {{/each}} +
+ {{!-- Custom Skills and Special Training --}} +
+ {{> "systems/deltagreen/templates/actor/partials/custom-skills-partial.html" actorType="agent"}} +
+