2021-06-26 22:02:00 +02:00
|
|
|
// SPDX-FileCopyrightText: 2021 Johannes Loher
|
|
|
|
// SPDX-FileCopyrightText: 2021 Oliver Rümpelein
|
|
|
|
// SPDX-FileCopyrightText: 2021 Gesina Schwalbe
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2022-11-17 00:12:29 +01:00
|
|
|
/**
|
|
|
|
* Register the Handlebars partials for DS4.
|
|
|
|
* @returns {Promise<void>} A promise that resolves once all partials have been registered
|
|
|
|
*/
|
|
|
|
export async function registerHandlebarsPartials() {
|
2021-03-04 00:14:16 +01:00
|
|
|
const templatePaths = [
|
2021-07-12 00:12:59 +02:00
|
|
|
"systems/ds4/templates/sheets/actor/components/actor-header.hbs",
|
|
|
|
"systems/ds4/templates/sheets/actor/components/actor-progression.hbs",
|
2021-07-10 21:02:48 +02:00
|
|
|
"systems/ds4/templates/sheets/actor/components/biography.hbs",
|
2021-07-11 05:04:05 +02:00
|
|
|
"systems/ds4/templates/sheets/actor/components/character-properties.hbs",
|
2021-04-13 23:43:22 +02:00
|
|
|
"systems/ds4/templates/sheets/actor/components/check.hbs",
|
|
|
|
"systems/ds4/templates/sheets/actor/components/checks.hbs",
|
2021-04-13 22:48:37 +02:00
|
|
|
"systems/ds4/templates/sheets/actor/components/combat-value.hbs",
|
2021-04-13 21:40:52 +02:00
|
|
|
"systems/ds4/templates/sheets/actor/components/combat-values.hbs",
|
|
|
|
"systems/ds4/templates/sheets/actor/components/core-value.hbs",
|
|
|
|
"systems/ds4/templates/sheets/actor/components/core-values.hbs",
|
2021-07-12 00:12:59 +02:00
|
|
|
"systems/ds4/templates/sheets/actor/components/creature-properties.hbs",
|
2021-04-13 21:40:52 +02:00
|
|
|
"systems/ds4/templates/sheets/actor/components/currency.hbs",
|
2022-11-03 23:02:46 +01:00
|
|
|
"systems/ds4/templates/sheets/actor/components/description.hbs",
|
2021-07-20 02:16:43 +02:00
|
|
|
"systems/ds4/templates/sheets/actor/components/effect-list-entry.hbs",
|
|
|
|
"systems/ds4/templates/sheets/actor/components/effect-list-header.hbs",
|
2021-04-13 21:40:52 +02:00
|
|
|
"systems/ds4/templates/sheets/actor/components/item-list-entry.hbs",
|
|
|
|
"systems/ds4/templates/sheets/actor/components/item-list-header.hbs",
|
|
|
|
"systems/ds4/templates/sheets/actor/components/items-overview.hbs",
|
2021-07-10 21:02:48 +02:00
|
|
|
"systems/ds4/templates/sheets/actor/components/profile.hbs",
|
2021-04-13 21:40:52 +02:00
|
|
|
"systems/ds4/templates/sheets/actor/tabs/biography.hbs",
|
2021-07-22 04:06:29 +02:00
|
|
|
"systems/ds4/templates/sheets/actor/tabs/character-abilities.hbs",
|
2021-04-13 21:40:52 +02:00
|
|
|
"systems/ds4/templates/sheets/actor/tabs/character-inventory.hbs",
|
2021-07-22 04:06:29 +02:00
|
|
|
"systems/ds4/templates/sheets/actor/tabs/creature-abilities.hbs",
|
2021-04-13 21:40:52 +02:00
|
|
|
"systems/ds4/templates/sheets/actor/tabs/creature-inventory.hbs",
|
|
|
|
"systems/ds4/templates/sheets/actor/tabs/description.hbs",
|
2021-07-20 02:16:43 +02:00
|
|
|
"systems/ds4/templates/sheets/actor/tabs/effects.hbs",
|
2021-04-13 21:40:52 +02:00
|
|
|
"systems/ds4/templates/sheets/actor/tabs/spells.hbs",
|
|
|
|
"systems/ds4/templates/sheets/actor/tabs/values.hbs",
|
2022-01-21 03:22:17 +01:00
|
|
|
"systems/ds4/templates/sheets/item/components/effect-list-entry.hbs",
|
|
|
|
"systems/ds4/templates/sheets/item/components/effect-list-header.hbs",
|
|
|
|
"systems/ds4/templates/sheets/item/components/item-header.hbs",
|
|
|
|
"systems/ds4/templates/sheets/item/components/properties/armor.hbs",
|
|
|
|
"systems/ds4/templates/sheets/item/components/properties/equipable.hbs",
|
|
|
|
"systems/ds4/templates/sheets/item/components/properties/physical.hbs",
|
|
|
|
"systems/ds4/templates/sheets/item/components/properties/protective.hbs",
|
|
|
|
"systems/ds4/templates/sheets/item/components/properties/talent.hbs",
|
|
|
|
"systems/ds4/templates/sheets/item/components/properties/special-creature-ability.hbs",
|
|
|
|
"systems/ds4/templates/sheets/item/components/properties/spell.hbs",
|
|
|
|
"systems/ds4/templates/sheets/item/components/properties/weapon.hbs",
|
2021-04-13 21:40:52 +02:00
|
|
|
"systems/ds4/templates/sheets/item/tabs/description.hbs",
|
|
|
|
"systems/ds4/templates/sheets/item/tabs/effects.hbs",
|
2022-01-21 03:22:17 +01:00
|
|
|
"systems/ds4/templates/sheets/item/tabs/properties.hbs",
|
|
|
|
"systems/ds4/templates/sheets/shared/components/add-button.hbs",
|
|
|
|
"systems/ds4/templates/sheets/shared/components/control-button-group.hbs",
|
|
|
|
"systems/ds4/templates/sheets/shared/components/rollable-image.hbs",
|
2021-03-04 00:14:16 +01:00
|
|
|
];
|
|
|
|
await loadTemplates(templatePaths);
|
|
|
|
}
|