From 98ce35f83159c6b393db7d0041bd82b02dc1d5f8 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Sun, 3 Jan 2021 20:54:45 +0100 Subject: [PATCH] Add dummy profile tab to character sheet --- src/lang/en.json | 2 ++ src/module/ds4.ts | 3 +++ src/templates/actor/actor-sheet.hbs | 8 ++++++-- src/templates/actor/partials/profile.hbs | 1 + 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 src/templates/actor/partials/profile.hbs diff --git a/src/lang/en.json b/src/lang/en.json index f529b69c..8159ced0 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -5,6 +5,8 @@ "DS4.DescriptionAbbr": "Desc", "DS4.Details": "Details", "DS4.Effects": "Effects", + "DS4.Profile": "Profile", + "DS4.Items": "Items", "DS4.AttackType": "Attack Type", "DS4.AttackTypeAbbr": "AT", "DS4.WeaponBonus": "Weapon Bonus", diff --git a/src/module/ds4.ts b/src/module/ds4.ts index 358074b0..2fef8f04 100644 --- a/src/module/ds4.ts +++ b/src/module/ds4.ts @@ -39,6 +39,7 @@ async function registerHandlebarsPartials() { "systems/ds4/templates/actor/partials/items-overview.hbs", "systems/ds4/templates/actor/partials/attributes-traits.hbs", "systems/ds4/templates/actor/partials/combat-values.hbs", + "systems/ds4/templates/actor/partials/profile.hbs", ]; return loadTemplates(templatePaths); } @@ -66,6 +67,8 @@ Hooks.once("setup", function () { "combatValues", "baseInfo", "progression", + "language", + "profile", ]; // Exclude some from sorting where the default order matters diff --git a/src/templates/actor/actor-sheet.hbs b/src/templates/actor/actor-sheet.hbs index 475ce2fd..aa9658d4 100644 --- a/src/templates/actor/actor-sheet.hbs +++ b/src/templates/actor/actor-sheet.hbs @@ -90,8 +90,9 @@ {{!-- Sheet Tab Navigation --}} {{!-- Sheet Body --}} @@ -101,6 +102,9 @@ {{editor content=data.biography target="data.biography" button=true owner=owner editable=editable}} + {{! Profile Tab --}} + {{> systems/ds4/templates/actor/partials/profile.hbs}} + {{!-- Items Tab --}} {{> systems/ds4/templates/actor/partials/items-overview.hbs}} diff --git a/src/templates/actor/partials/profile.hbs b/src/templates/actor/partials/profile.hbs new file mode 100644 index 00000000..4755d267 --- /dev/null +++ b/src/templates/actor/partials/profile.hbs @@ -0,0 +1 @@ +
\ No newline at end of file