diff --git a/css/fvtt-prism-rpg.css b/css/fvtt-prism-rpg.css index 9c60a5a..1b28050 100644 --- a/css/fvtt-prism-rpg.css +++ b/css/fvtt-prism-rpg.css @@ -13,6 +13,9 @@ --font-secondary: "BaskervilleBold", serif; --logo-standard: url("../assets/ui/prism-rpg-logo-01.webp"); } +.tab[data-group]:not(.active) { + display: none; +} .initiative-area { min-width: 8rem; max-width: 8rem; diff --git a/lang/en.json b/lang/en.json index a4cae03..98e1c9b 100644 --- a/lang/en.json +++ b/lang/en.json @@ -402,6 +402,7 @@ "damage": "Damage", "description": "Description", "details": "Details", + "effects": "Effects", "dex": "DEX", "equipment": "Equipment", "experience": "Experience", diff --git a/module/applications/sheets/armor-sheet.mjs b/module/applications/sheets/armor-sheet.mjs index 540504c..a1acc60 100644 --- a/module/applications/sheets/armor-sheet.mjs +++ b/module/applications/sheets/armor-sheet.mjs @@ -19,10 +19,32 @@ export default class PrismRPGArmorSheet extends PrismRPGItemSheet { }, } + /** @override */ + tabGroups = { + primary: "details", + } + + /** + * Prepare an array of form header tabs. + * @returns {Record>} + */ + #getTabs() { + const tabs = { + details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" }, + description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" }, + effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" }, + } + for (const v of Object.values(tabs)) { + v.active = this.tabGroups[v.group] === v.id + v.cssClass = v.active ? "active" : "" + } + return tabs + } /** @override */ async _prepareContext() { const context = await super._prepareContext() + context.tabs = this.#getTabs() context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true }) context.enrichedPassiveDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.passiveDescription, { async: true }) context.enrichedAugmentDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.augmentDescription, { async: true }) diff --git a/module/applications/sheets/base-item-sheet.mjs b/module/applications/sheets/base-item-sheet.mjs index 6e953ce..5774cb0 100644 --- a/module/applications/sheets/base-item-sheet.mjs +++ b/module/applications/sheets/base-item-sheet.mjs @@ -75,6 +75,20 @@ export default class PrismRPGItemSheet extends HandlebarsApplicationMixin(foundr _onRender(context, options) { super._onRender(context, options) this.#dragDrop.forEach((d) => d.bind(this.element)) + + // Activate tab navigation + const nav = this.element.querySelector('nav.tabs[data-group]') + if (nav) { + const group = nav.dataset.group + nav.querySelectorAll('[data-tab]').forEach(link => { + link.addEventListener('click', (event) => { + event.preventDefault() + const tab = event.currentTarget.dataset.tab + this.tabGroups[group] = tab + this.render() + }) + }) + } } // #region Drag-and-Drop Workflow diff --git a/module/applications/sheets/equipment-sheet.mjs b/module/applications/sheets/equipment-sheet.mjs index 5162776..93d0c7d 100644 --- a/module/applications/sheets/equipment-sheet.mjs +++ b/module/applications/sheets/equipment-sheet.mjs @@ -19,9 +19,32 @@ export default class PrismRPGEquipmentSheet extends PrismRPGItemSheet { }, } + /** @override */ + tabGroups = { + primary: "details", + } + + /** + * Prepare an array of form header tabs. + * @returns {Record>} + */ + #getTabs() { + const tabs = { + details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" }, + description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" }, + effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" }, + } + for (const v of Object.values(tabs)) { + v.active = this.tabGroups[v.group] === v.id + v.cssClass = v.active ? "active" : "" + } + return tabs + } + /** @override */ async _prepareContext() { const context = await super._prepareContext() + context.tabs = this.#getTabs() context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true }) // Enrich passive description if equipment is a kit diff --git a/module/applications/sheets/miracle-sheet.mjs b/module/applications/sheets/miracle-sheet.mjs index 6c53212..0899397 100644 --- a/module/applications/sheets/miracle-sheet.mjs +++ b/module/applications/sheets/miracle-sheet.mjs @@ -19,9 +19,32 @@ export default class PrismRPGMiracleSheet extends PrismRPGItemSheet { }, } + /** @override */ + tabGroups = { + primary: "details", + } + + /** + * Prepare an array of form header tabs. + * @returns {Record>} + */ + #getTabs() { + const tabs = { + details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" }, + description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" }, + effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" }, + } + for (const v of Object.values(tabs)) { + v.active = this.tabGroups[v.group] === v.id + v.cssClass = v.active ? "active" : "" + } + return tabs + } + /** @override */ async _prepareContext() { const context = await super._prepareContext() + context.tabs = this.#getTabs() context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true }) return context } diff --git a/module/applications/sheets/shield-sheet.mjs b/module/applications/sheets/shield-sheet.mjs index 21ffe94..26938b7 100644 --- a/module/applications/sheets/shield-sheet.mjs +++ b/module/applications/sheets/shield-sheet.mjs @@ -19,9 +19,32 @@ export default class PrismRPGShieldSheet extends PrismRPGItemSheet { }, } + /** @override */ + tabGroups = { + primary: "details", + } + + /** + * Prepare an array of form header tabs. + * @returns {Record>} + */ + #getTabs() { + const tabs = { + details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" }, + description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" }, + effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" }, + } + for (const v of Object.values(tabs)) { + v.active = this.tabGroups[v.group] === v.id + v.cssClass = v.active ? "active" : "" + } + return tabs + } + /** @override */ async _prepareContext() { const context = await super._prepareContext() + context.tabs = this.#getTabs() context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true }) context.enrichedBlockAugmentDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.blockAugmentDescription, { async: true }) return context diff --git a/module/applications/sheets/spell-sheet.mjs b/module/applications/sheets/spell-sheet.mjs index b3acd6b..c7ffb37 100644 --- a/module/applications/sheets/spell-sheet.mjs +++ b/module/applications/sheets/spell-sheet.mjs @@ -19,9 +19,32 @@ export default class PrismRPGSpellSheet extends PrismRPGItemSheet { }, } + /** @override */ + tabGroups = { + primary: "details", + } + + /** + * Prepare an array of form header tabs. + * @returns {Record>} + */ + #getTabs() { + const tabs = { + details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" }, + description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" }, + effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" }, + } + for (const v of Object.values(tabs)) { + v.active = this.tabGroups[v.group] === v.id + v.cssClass = v.active ? "active" : "" + } + return tabs + } + /** @override */ async _prepareContext() { const context = await super._prepareContext() + context.tabs = this.#getTabs() context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true }) context.enrichedColorEffect = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.colorEffect, { async: true }) context.enrichedAscensionEffect = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.ascensionEffect, { async: true }) diff --git a/module/applications/sheets/weapon-sheet.mjs b/module/applications/sheets/weapon-sheet.mjs index bf83612..647c2b7 100644 --- a/module/applications/sheets/weapon-sheet.mjs +++ b/module/applications/sheets/weapon-sheet.mjs @@ -19,9 +19,32 @@ export default class PrismRPGWeaponSheet extends PrismRPGItemSheet { }, } + /** @override */ + tabGroups = { + primary: "details", + } + + /** + * Prepare an array of form header tabs. + * @returns {Record>} + */ + #getTabs() { + const tabs = { + details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" }, + description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" }, + effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" }, + } + for (const v of Object.values(tabs)) { + v.active = this.tabGroups[v.group] === v.id + v.cssClass = v.active ? "active" : "" + } + return tabs + } + /** @override */ async _prepareContext() { const context = await super._prepareContext() + context.tabs = this.#getTabs() context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true }) // Enrich descriptions for all passives diff --git a/styles/global.less b/styles/global.less index 617798f..0853bcf 100644 --- a/styles/global.less +++ b/styles/global.less @@ -6,6 +6,11 @@ --logo-standard: url("../assets/ui/prism-rpg-logo-01.webp"); } +// Tab system - hide inactive tabs +.tab[data-group]:not(.active) { + display: none; +} + .initiative-area { min-width: 8rem; max-width: 8rem; diff --git a/templates/armor.hbs b/templates/armor.hbs index 45e7403..aeb6734 100644 --- a/templates/armor.hbs +++ b/templates/armor.hbs @@ -10,105 +10,155 @@ {{formInput fields.name value=source.name}} - {{! Armor Type (Light/Medium/Heavy) }} - {{formField - systemFields.armorType - value=system.armorType - localize=true - label="PRISMRPG.Label.armorType" - }} + {{! Navigation des onglets }} + - {{! Maximum Reduction Rating (MRR) }} - {{formField - systemFields.mrr - value=system.mrr - localize=true - label="PRISMRPG.Label.mrr" - }} - - {{! Encumbrance Load }} - {{formField - systemFields.encLoad - value=system.encLoad - localize=true - label="PRISMRPG.Label.encumbranceLoad" - }} - - {{! Equipment Status }} - {{formField - systemFields.isHelmet - value=system.isHelmet - localize=true - label="PRISMRPG.Label.isHelmet" - }} - {{formField - systemFields.equipped - value=system.equipped - localize=true - label="PRISMRPG.Label.equipped" - }} - - {{! Prism RPG: Armor Passive }} -
- {{localize "PRISMRPG.Label.armorPassive"}} + {{! Onglet Details }} +
+ {{! Armor Type (Light/Medium/Heavy) }} {{formField - systemFields.passive - value=system.passive + systemFields.armorType + value=system.armorType localize=true - label="PRISMRPG.Label.passiveName" + label="PRISMRPG.Label.armorType" }} - - {{formInput - systemFields.passiveDescription - enriched=enrichedPassiveDescription - value=system.passiveDescription - name="system.passiveDescription" - toggled=true - }} -
- {{! Prism RPG: Armor Augment }} -
- {{localize "PRISMRPG.Label.armorAugment"}} + {{! Maximum Reduction Rating (MRR) }} {{formField - systemFields.augment - value=system.augment + systemFields.mrr + value=system.mrr localize=true - label="PRISMRPG.Label.augmentName" + label="PRISMRPG.Label.mrr" }} - - {{formInput - systemFields.augmentDescription - enriched=enrichedAugmentDescription - value=system.augmentDescription - name="system.augmentDescription" - toggled=true - }} -
- {{! Cost }} - {{formField - systemFields.cost - value=system.cost - localize=true - label="PRISMRPG.Label.cost" - }} - {{formField - systemFields.money - value=system.money - localize=true - label="PRISMRPG.Label.currency" - }} - - {{! Description }} -
- {{localize "PRISMRPG.Label.description"}} - {{formInput - systemFields.description - enriched=enrichedDescription - value=system.description - name="system.description" - toggled=true + {{! Encumbrance Load }} + {{formField + systemFields.encLoad + value=system.encLoad + localize=true + label="PRISMRPG.Label.encumbranceLoad" }} -
+ + {{! Equipment Status }} + {{formField + systemFields.isHelmet + value=system.isHelmet + localize=true + label="PRISMRPG.Label.isHelmet" + }} + {{formField + systemFields.equipped + value=system.equipped + localize=true + label="PRISMRPG.Label.equipped" + }} + + {{! Cost }} + {{formField + systemFields.cost + value=system.cost + localize=true + label="PRISMRPG.Label.cost" + }} + {{formField + systemFields.money + value=system.money + localize=true + label="PRISMRPG.Label.currency" + }} + + + {{! Onglet Description }} +
+ {{! Description }} +
+ {{localize "PRISMRPG.Label.description"}} + {{formInput + systemFields.description + enriched=enrichedDescription + value=system.description + name="system.description" + toggled=true + }} +
+
+ + {{! Onglet Effects }} +
+ {{! Prism RPG: Armor Passive }} +
+ {{localize "PRISMRPG.Label.armorPassive"}} + {{formField + systemFields.passive + value=system.passive + localize=true + label="PRISMRPG.Label.passiveName" + }} + + {{formInput + systemFields.passiveDescription + enriched=enrichedPassiveDescription + value=system.passiveDescription + name="system.passiveDescription" + toggled=true + }} +
+ + {{! Prism RPG: Armor Augment }} +
+ {{localize "PRISMRPG.Label.armorAugment"}} + {{formField + systemFields.augment + value=system.augment + localize=true + label="PRISMRPG.Label.augmentName" + }} + + {{formInput + systemFields.augmentDescription + enriched=enrichedAugmentDescription + value=system.augmentDescription + name="system.augmentDescription" + toggled=true + }} +
+ + {{! Cost }} + {{formField + systemFields.cost + value=system.cost + localize=true + label="PRISMRPG.Label.cost" + }} + {{formField + systemFields.money + value=system.money + localize=true + label="PRISMRPG.Label.currency" + }} +
+ \ No newline at end of file diff --git a/templates/equipment.hbs b/templates/equipment.hbs index 8b97cd5..654aa75 100644 --- a/templates/equipment.hbs +++ b/templates/equipment.hbs @@ -9,12 +9,39 @@ /> {{formInput fields.name value=source.name}} + + {{! Navigation des onglets }} + + + {{! Onglet Details }} +
{{formField systemFields.encLoad value=system.encLoad localize=true}} {{formField systemFields.cost value=system.cost localize=true}} {{formField systemFields.money value=system.money localize=true}} {{formField systemFields.isKit value=system.isKit localize=true label="PRISMRPG.Label.isKit"}} +
+ {{! Onglet Description }} +
+
+ {{localize "PRISMRPG.Label.description"}} + {{formInput + systemFields.description + enriched=enrichedDescription + value=system.description + name="system.description" + toggled=true + }} +
+
+ + {{! Onglet Effects }} +
{{#if system.isKit}} {{! Kit Passive }}
@@ -73,16 +100,6 @@ {{/unless}}
{{/if}} - -
- {{localize "PRISMRPG.Label.description"}} - {{formInput - systemFields.description - enriched=enrichedDescription - value=system.description - name="system.description" - toggled=true - }} -
+
\ No newline at end of file diff --git a/templates/miracle.hbs b/templates/miracle.hbs index 3461961..bf547a1 100644 --- a/templates/miracle.hbs +++ b/templates/miracle.hbs @@ -10,157 +10,192 @@ {{formInput fields.name value=source.name}} - {{! Prism RPG: Miracle Type }} - {{formField - systemFields.miracleType - value=system.miracleType - localize=true - label="PRISMRPG.Label.miracleType" - }} + {{! Navigation des onglets }} + - {{! Prism RPG: APC (Action Point Cost) }} - {{formField - systemFields.apc - value=system.apc - localize=true - label="PRISMRPG.Label.apc" - }} - - {{! Prism RPG: Faith Cost }} - {{formField - systemFields.faithCost - value=system.faithCost - localize=true - label="PRISMRPG.Label.faithCost" - }} - - {{! Prism RPG: Divine Favor }} - {{formField - systemFields.divineFavor - value=system.divineFavor - localize=true - label="PRISMRPG.Label.divineFavor" - }} - - {{! Prism RPG: Miracle Augment }} -
- {{localize "PRISMRPG.Label.miracleAugment"}} + {{! Onglet Details }} +
+ {{! Prism RPG: Miracle Type }} {{formField - systemFields.augment - value=system.augment + systemFields.miracleType + value=system.miracleType localize=true - label="PRISMRPG.Label.augmentName" + label="PRISMRPG.Label.miracleType" }} -
- + + {{! Prism RPG: APC (Action Point Cost) }} + {{formField + systemFields.apc + value=system.apc + localize=true + label="PRISMRPG.Label.apc" + }} + + {{! Prism RPG: Faith Cost }} + {{formField + systemFields.faithCost + value=system.faithCost + localize=true + label="PRISMRPG.Label.faithCost" + }} + + {{! Prism RPG: Divine Favor }} + {{formField + systemFields.divineFavor + value=system.divineFavor + localize=true + label="PRISMRPG.Label.divineFavor" + }} + + {{! Miracle Components (includes Religious) }} +
+ {{localize "PRISMRPG.Label.components"}} +
+ {{formField + systemFields.components.fields.verbal + value=system.components.verbal + localize=true + label="PRISMRPG.Label.verbal" + }} + {{formField + systemFields.components.fields.somatic + value=system.components.somatic + localize=true + label="PRISMRPG.Label.somatic" + }} + {{formField + systemFields.components.fields.material + value=system.components.material + localize=true + label="PRISMRPG.Label.material" + }} + {{formField + systemFields.components.fields.catalyst + value=system.components.catalyst + localize=true + label="PRISMRPG.Label.catalyst" + }} + {{formField + systemFields.components.fields.religious + value=system.components.religious + localize=true + label="PRISMRPG.Label.religious" + }} +
+ {{formField + systemFields.materialComponent + value=system.materialComponent + localize=true + label="PRISMRPG.Label.materialComponent" + }} + {{formField + systemFields.catalyst + value=system.catalyst + localize=true + label="PRISMRPG.Label.catalystDetails" + }} +
+ + {{! Miracle Properties }} + {{formField + systemFields.prayerTime + value=system.prayerTime + localize=true + label="PRISMRPG.Label.prayerTime" + }} + {{formField + systemFields.miracleRange + value=system.miracleRange + localize=true + label="PRISMRPG.Label.range" + }} + {{formField + systemFields.areaAffected + value=system.areaAffected + localize=true + label="PRISMRPG.Label.areaAffected" + }} + {{formField + systemFields.duration + value=system.duration + localize=true + label="PRISMRPG.Label.duration" + }} + {{formField + systemFields.savingThrow + value=system.savingThrow + localize=true + label="PRISMRPG.Label.savingThrow" + }} + + {{! Legacy Level field }} + {{formField + systemFields.level + value=system.level + localize=true + label="PRISMRPG.Label.level" + }} +
+ + {{! Onglet Description }} +
+
+ {{localize "PRISMRPG.Label.description"}} {{formInput - systemFields.augmentDescription - enriched=enrichedAugmentDescription - value=system.augmentDescription - name="system.augmentDescription" + systemFields.description + enriched=enrichedDescription + value=system.description + name="system.description" toggled=true }} -
-
+ + - {{! Miracle Components (includes Religious) }} -
- {{localize "PRISMRPG.Label.components"}} -
+ {{! Onglet Effects }} +
+ {{! Prism RPG: Miracle Augment }} +
+ {{localize "PRISMRPG.Label.miracleAugment"}} {{formField - systemFields.components.fields.verbal - value=system.components.verbal + systemFields.augment + value=system.augment localize=true - label="PRISMRPG.Label.verbal" + label="PRISMRPG.Label.augmentName" }} - {{formField - systemFields.components.fields.somatic - value=system.components.somatic - localize=true - label="PRISMRPG.Label.somatic" - }} - {{formField - systemFields.components.fields.material - value=system.components.material - localize=true - label="PRISMRPG.Label.material" - }} - {{formField - systemFields.components.fields.catalyst - value=system.components.catalyst - localize=true - label="PRISMRPG.Label.catalyst" - }} - {{formField - systemFields.components.fields.religious - value=system.components.religious - localize=true - label="PRISMRPG.Label.religious" - }} -
- {{formField - systemFields.materialComponent - value=system.materialComponent - localize=true - label="PRISMRPG.Label.materialComponent" - }} - {{formField - systemFields.catalyst - value=system.catalyst - localize=true - label="PRISMRPG.Label.catalystDetails" - }} -
- - {{! Miracle Properties }} - {{formField - systemFields.prayerTime - value=system.prayerTime - localize=true - label="PRISMRPG.Label.prayerTime" - }} - {{formField - systemFields.miracleRange - value=system.miracleRange - localize=true - label="PRISMRPG.Label.range" - }} - {{formField - systemFields.areaAffected - value=system.areaAffected - localize=true - label="PRISMRPG.Label.areaAffected" - }} - {{formField - systemFields.duration - value=system.duration - localize=true - label="PRISMRPG.Label.duration" - }} - {{formField - systemFields.savingThrow - value=system.savingThrow - localize=true - label="PRISMRPG.Label.savingThrow" - }} - - {{! Legacy Level field }} - {{formField - systemFields.level - value=system.level - localize=true - label="PRISMRPG.Label.level" - }} - -
- {{localize "PRISMRPG.Label.description"}} - {{formInput - systemFields.description - enriched=enrichedDescription - value=system.description - name="system.description" - toggled=true - }} -
+
+ + {{formInput + systemFields.augmentDescription + enriched=enrichedAugmentDescription + value=system.augmentDescription + name="system.augmentDescription" + toggled=true + }} +
+ + \ No newline at end of file diff --git a/templates/shield.hbs b/templates/shield.hbs index c1cff90..7ed8eeb 100644 --- a/templates/shield.hbs +++ b/templates/shield.hbs @@ -10,95 +10,130 @@ {{formInput fields.name value=source.name}} -
-
+ {{! Navigation des onglets }} + - {{! Prism RPG: Shield Type (Buckler/Light/Heavy/Tower) }} - {{formField - systemFields.shieldType - value=system.shieldType - localize=true - label="PRISMRPG.Label.shieldType" - }} + {{! Onglet Details }} +
+
+
- {{! Prism RPG: Block APC (Action Point Cost) }} - {{formField - systemFields.apc - value=system.apc - localize=true - label="PRISMRPG.Label.blockAPC" - }} + {{! Prism RPG: Shield Type (Buckler/Light/Heavy/Tower) }} + {{formField + systemFields.shieldType + value=system.shieldType + localize=true + label="PRISMRPG.Label.shieldType" + }} - {{! Prism RPG: Shield Rating (SR) }} - {{formField - systemFields.sr - value=system.sr - localize=true - label="PRISMRPG.Label.shieldRating" - }} + {{! Prism RPG: Block APC (Action Point Cost) }} + {{formField + systemFields.apc + value=system.apc + localize=true + label="PRISMRPG.Label.blockAPC" + }} - {{formField - systemFields.equipped - value=system.equipped - localize=true - label="PRISMRPG.Label.equipped" - }} + {{! Prism RPG: Shield Rating (SR) }} + {{formField + systemFields.sr + value=system.sr + localize=true + label="PRISMRPG.Label.shieldRating" + }} -
+ {{formField + systemFields.equipped + value=system.equipped + localize=true + label="PRISMRPG.Label.equipped" + }} -
+
- {{formField - systemFields.encLoad - value=system.encLoad - localize=true - label="PRISMRPG.Label.encumbranceLoad" - }} +
- {{formField - systemFields.cost - value=system.cost - localize=true - label="PRISMRPG.Label.cost" - }} - {{formField - systemFields.money - value=system.money - localize=true - label="PRISMRPG.Label.currency" - }} + {{formField + systemFields.encLoad + value=system.encLoad + localize=true + label="PRISMRPG.Label.encumbranceLoad" + }} + {{formField + systemFields.cost + value=system.cost + localize=true + label="PRISMRPG.Label.cost" + }} + {{formField + systemFields.money + value=system.money + localize=true + label="PRISMRPG.Label.currency" + }} + +
- {{! Prism RPG: Block Augment }} -
- {{localize "PRISMRPG.Label.blockAugment"}} - {{formField - systemFields.blockAugment - value=system.blockAugment - localize=true - label="PRISMRPG.Label.blockAugmentName" - }} - - {{formInput - systemFields.blockAugmentDescription - enriched=enrichedBlockAugmentDescription - value=system.blockAugmentDescription - name="system.blockAugmentDescription" - toggled=true - }} -
+ {{! Onglet Description }} +
+
+ {{localize "PRISMRPG.Label.description"}} + {{formInput + systemFields.description + enriched=enrichedDescription + value=system.description + name="system.description" + toggled=true + }} +
+
-
- {{localize "PRISMRPG.Label.description"}} - {{formInput - systemFields.description - enriched=enrichedDescription - value=system.description - name="system.description" - toggled=true - }} -
+ {{! Onglet Effects }} +
+ {{! Prism RPG: Block Augment }} +
+ {{localize "PRISMRPG.Label.blockAugment"}} + {{formField + systemFields.blockAugment + value=system.blockAugment + localize=true + label="PRISMRPG.Label.blockAugmentName" + }} + + {{formInput + systemFields.blockAugmentDescription + enriched=enrichedBlockAugmentDescription + value=system.blockAugmentDescription + name="system.blockAugmentDescription" + toggled=true + }} +
+
\ No newline at end of file diff --git a/templates/spell.hbs b/templates/spell.hbs index 20891b7..b777241 100644 --- a/templates/spell.hbs +++ b/templates/spell.hbs @@ -10,145 +10,180 @@ {{formInput fields.name value=source.name}}
- {{! Prism RPG: Mana Cost }} - {{formField - systemFields.manaCost - value=system.manaCost - localize=true - label="PRISMRPG.Label.manaCost" - }} + {{! Navigation des onglets }} + - {{! Prism RPG: Mana Upkeep }} - {{formField - systemFields.manaUpkeep - value=system.manaUpkeep - localize=true - label="PRISMRPG.Label.manaUpkeep" - }} - - {{! Prism RPG: APC (Action Point Cost) }} - {{formField - systemFields.apc - value=system.apc - localize=true - label="PRISMRPG.Label.apc" - }} - - {{! Prism RPG: Prism Color }} - {{formField - systemFields.color - value=system.color - localize=true - label="PRISMRPG.Label.prismColor" - }} - - {{! Prism RPG: Color Effect }} -
- {{localize "PRISMRPG.Label.colorEffect"}} - {{formInput - systemFields.colorEffect - enriched=enrichedColorEffect - value=system.colorEffect - name="system.colorEffect" - toggled=true + {{! Onglet Details }} +
+ {{! Prism RPG: Mana Cost }} + {{formField + systemFields.manaCost + value=system.manaCost + localize=true + label="PRISMRPG.Label.manaCost" }} -
- {{! Prism RPG: Spell Ascension }} -
- {{localize "PRISMRPG.Label.spellAscension"}} -
- - -

{{localize "PRISMRPG.Hint.spellAscension"}}

-
- {{#if system.canAscend}} - + {{! Prism RPG: Mana Upkeep }} + {{formField + systemFields.manaUpkeep + value=system.manaUpkeep + localize=true + label="PRISMRPG.Label.manaUpkeep" + }} + + {{! Prism RPG: APC (Action Point Cost) }} + {{formField + systemFields.apc + value=system.apc + localize=true + label="PRISMRPG.Label.apc" + }} + + {{! Prism RPG: Prism Color }} + {{formField + systemFields.color + value=system.color + localize=true + label="PRISMRPG.Label.prismColor" + }} + + {{! Spell Properties }} + {{formField + systemFields.memorized + value=system.memorized + localize=true + label="PRISMRPG.Label.memorized" + }} + {{formField + systemFields.level + value=system.level + localize=true + label="PRISMRPG.Label.level" + }} + {{formField + systemFields.targets + value=system.targets + localize=true + label="PRISMRPG.Label.targets" + }} + {{formField + systemFields.resolve + value=system.resolve + localize=true + label="PRISMRPG.Label.resolve" + }} + {{formField + systemFields.castingTime + value=system.castingTime + localize=true + label="PRISMRPG.Label.castingTime" + }} + {{formField + systemFields.spellRange + value=system.spellRange + localize=true + label="PRISMRPG.Label.range" + }} + {{formField + systemFields.areaAffected + value=system.areaAffected + localize=true + label="PRISMRPG.Label.areaAffected" + }} + {{formField + systemFields.duration + value=system.duration + localize=true + label="PRISMRPG.Label.duration" + }} + {{formField + systemFields.savingThrow + value=system.savingThrow + localize=true + label="PRISMRPG.Label.savingThrow" + }} + {{formField + systemFields.keywords + value=system.keywords + localize=true + label="PRISMRPG.Label.keywords" + }} +
+ + {{! Onglet Description }} +
+
+ {{localize "PRISMRPG.Label.description"}} {{formInput - systemFields.ascensionEffect - enriched=enrichedAscensionEffect - value=system.ascensionEffect - name="system.ascensionEffect" + systemFields.description + enriched=enrichedDescription + value=system.description + name="system.description" toggled=true }} - {{/if}} -
+ +
- {{! Spell Properties }} - {{formField - systemFields.memorized - value=system.memorized - localize=true - label="PRISMRPG.Label.memorized" - }} - {{formField - systemFields.level - value=system.level - localize=true - label="PRISMRPG.Label.level" - }} - {{formField - systemFields.targets - value=system.targets - localize=true - label="PRISMRPG.Label.targets" - }} - {{formField - systemFields.resolve - value=system.resolve - localize=true - label="PRISMRPG.Label.resolve" - }} - {{formField - systemFields.castingTime - value=system.castingTime - localize=true - label="PRISMRPG.Label.castingTime" - }} - {{formField - systemFields.spellRange - value=system.spellRange - localize=true - label="PRISMRPG.Label.range" - }} - {{formField - systemFields.areaAffected - value=system.areaAffected - localize=true - label="PRISMRPG.Label.areaAffected" - }} - {{formField - systemFields.duration - value=system.duration - localize=true - label="PRISMRPG.Label.duration" - }} - {{formField - systemFields.savingThrow - value=system.savingThrow - localize=true - label="PRISMRPG.Label.savingThrow" - }} - {{formField - systemFields.keywords - value=system.keywords - localize=true - label="PRISMRPG.Label.keywords" - }} + {{! Onglet Effects }} +
+ {{! Prism RPG: Color Effect }} +
+ {{localize "PRISMRPG.Label.colorEffect"}} + {{formInput + systemFields.colorEffect + enriched=enrichedColorEffect + value=system.colorEffect + name="system.colorEffect" + toggled=true + }} +
-
- {{localize "PRISMRPG.Label.description"}} - {{formInput - systemFields.description - enriched=enrichedDescription - value=system.description - name="system.description" - toggled=true - }} -
+ {{! Prism RPG: Spell Ascension }} +
+ {{localize "PRISMRPG.Label.spellAscension"}} +
+ + +

{{localize "PRISMRPG.Hint.spellAscension"}}

+
+ {{#if system.canAscend}} + + {{formInput + systemFields.ascensionEffect + enriched=enrichedAscensionEffect + value=system.ascensionEffect + name="system.ascensionEffect" + toggled=true + }} + {{/if}} +
+
\ No newline at end of file diff --git a/templates/weapon.hbs b/templates/weapon.hbs index 2fa1ca7..b01962f 100644 --- a/templates/weapon.hbs +++ b/templates/weapon.hbs @@ -10,6 +10,15 @@ {{formInput fields.name value=source.name}} + {{! Navigation des onglets }} + + + {{! Onglet Details }} +
@@ -100,7 +109,24 @@ {{formField systemFields.money value=system.money localize=true}}
+
+ {{! Onglet Description }} +
+
+ {{localize "PRISMRPG.Label.description"}} + {{formInput + systemFields.description + enriched=enrichedDescription + value=system.description + name="system.description" + toggled=true + }} +
+
+ + {{! Onglet Effects }} +
{{! Prism RPG: Weapon Passives }}
@@ -176,15 +202,6 @@

{{localize "PRISMRPG.Hint.noManeuvers"}}

{{/unless}}
+
-
- {{localize "PRISMRPG.Label.description"}} - {{formInput - systemFields.description - enriched=enrichedDescription - value=system.description - name="system.description" - toggled=true - }} -
\ No newline at end of file