diff --git a/module/Apps/ActorSheets/HeroSkillsCardV1.mjs b/module/Apps/ActorSheets/HeroSkillsCardV1.mjs index 799e604..9b55105 100644 --- a/module/Apps/ActorSheets/HeroSkillsCardV1.mjs +++ b/module/Apps/ActorSheets/HeroSkillsCardV1.mjs @@ -32,7 +32,7 @@ export class HeroSkillsCardV1 extends GenericAppMixin(HandlebarsApplicationMixin static PARTS = { content: { - template: filePath(`Apps/HeroSkillsCardV1/content.hbs`), + template: filePath(`templates/Apps/HeroSkillsCardV1/content.hbs`), }, }; // #endregion diff --git a/module/Apps/ActorSheets/HeroSummaryCardV1.mjs b/module/Apps/ActorSheets/HeroSummaryCardV1.mjs index f342355..c38b6f4 100644 --- a/module/Apps/ActorSheets/HeroSummaryCardV1.mjs +++ b/module/Apps/ActorSheets/HeroSummaryCardV1.mjs @@ -31,7 +31,7 @@ export class HeroSummaryCardV1 extends GenericAppMixin(HandlebarsApplicationMixi static PARTS = { content: { - template: filePath(`Apps/HeroSummaryCardV1/content.hbs`), + template: filePath(`templates/Apps/HeroSummaryCardV1/content.hbs`), }, }; // #endregion diff --git a/module/Apps/CryptApp.mjs b/module/Apps/CryptApp.mjs index 0669b27..a4c3053 100644 --- a/module/Apps/CryptApp.mjs +++ b/module/Apps/CryptApp.mjs @@ -19,7 +19,7 @@ export class CryptApp extends GenericAppMixin(HandlebarsApplicationMixin(Applica static PARTS = { main: { - template: filePath(`Apps/CryptApp/main.hbs`), + template: filePath(`templates/Apps/CryptApp/main.hbs`), }, }; // #endregion diff --git a/module/Apps/elements/Icon.mjs b/module/Apps/elements/Icon.mjs index 3caaece..722ee36 100644 --- a/module/Apps/elements/Icon.mjs +++ b/module/Apps/elements/Icon.mjs @@ -11,7 +11,7 @@ export class RipCryptIcon extends StyledShadowElement(HTMLElement) { static formAssociated = false; /* Stuff for the mixin to use */ - static _stylePath = `components/icon.css`; + static _stylePath = `css/components/icon.css`; static _cache = new Map(); diff --git a/module/Apps/elements/mixins/StyledShadowElement.mjs b/module/Apps/elements/mixins/StyledShadowElement.mjs index 19ce403..c645111 100644 --- a/module/Apps/elements/mixins/StyledShadowElement.mjs +++ b/module/Apps/elements/mixins/StyledShadowElement.mjs @@ -60,7 +60,7 @@ export function StyledShadowElement(Base) { if (this.constructor._styles) { this._style.innerHTML = this.constructor._styles; } else { - fetch(`./systems/${game.system.id}/Apps/${this.constructor._stylePath}`) + fetch(`./systems/${game.system.id}/templates/${this.constructor._stylePath}`) .then(r => r.text()) .then(t => { this.constructor._styles = t; diff --git a/system.json b/system.json index 30a907e..c717ddc 100644 --- a/system.json +++ b/system.json @@ -18,8 +18,8 @@ "module/main.mjs" ], "styles": [ - "Apps/common.css", - "Apps/apps.css" + "templates/css/common.css", + "templates/Apps/apps.css" ], "languages": [ { diff --git a/Apps/CryptApp/main.hbs b/templates/Apps/CryptApp/main.hbs similarity index 100% rename from Apps/CryptApp/main.hbs rename to templates/Apps/CryptApp/main.hbs diff --git a/Apps/HeroSkillsCardV1/content.hbs b/templates/Apps/HeroSkillsCardV1/content.hbs similarity index 100% rename from Apps/HeroSkillsCardV1/content.hbs rename to templates/Apps/HeroSkillsCardV1/content.hbs diff --git a/Apps/HeroSkillsCardV1/style.css b/templates/Apps/HeroSkillsCardV1/style.css similarity index 100% rename from Apps/HeroSkillsCardV1/style.css rename to templates/Apps/HeroSkillsCardV1/style.css diff --git a/Apps/HeroSummaryCardV1/content.hbs b/templates/Apps/HeroSummaryCardV1/content.hbs similarity index 100% rename from Apps/HeroSummaryCardV1/content.hbs rename to templates/Apps/HeroSummaryCardV1/content.hbs diff --git a/Apps/HeroSummaryCardV1/style.css b/templates/Apps/HeroSummaryCardV1/style.css similarity index 100% rename from Apps/HeroSummaryCardV1/style.css rename to templates/Apps/HeroSummaryCardV1/style.css diff --git a/Apps/apps.css b/templates/Apps/apps.css similarity index 100% rename from Apps/apps.css rename to templates/Apps/apps.css diff --git a/templates/chat/roll.hbs b/templates/chat/roll.hbs new file mode 100644 index 0000000..ff9c893 --- /dev/null +++ b/templates/chat/roll.hbs @@ -0,0 +1,3 @@ +