From e570516e5e0dc6768ff7de8364ecb81deadb36bb Mon Sep 17 00:00:00 2001 From: mclemente Date: Wed, 5 Jan 2022 21:53:27 -0300 Subject: [PATCH] PF2e Wealth width https://github.com/mclemente/party-overview/issues/18 --- module/SystemProvider.js | 4 +++ templates/pf2e.hbs | 74 ++++++++++++++++++++-------------------- 2 files changed, 41 insertions(+), 37 deletions(-) diff --git a/module/SystemProvider.js b/module/SystemProvider.js index b729206..3eb9f58 100644 --- a/module/SystemProvider.js +++ b/module/SystemProvider.js @@ -346,6 +346,10 @@ export class pf2eProvider extends SystemProvider { get template() { return "/modules/party-overview/templates/pf2e.hbs"; } + + get width() { + return 600; + } getCurrency(data) { const coins = ["Platinum Pieces", "Gold Pieces", "Silver Pieces", "Copper Pieces"]; diff --git a/templates/pf2e.hbs b/templates/pf2e.hbs index 91da6d0..0a1371a 100644 --- a/templates/pf2e.hbs +++ b/templates/pf2e.hbs @@ -5,14 +5,14 @@
{{> "modules/party-overview/templates/parts/FilterButton.html"}}
{{localize "party-overview.NAME"}}
-
Hero
-
-
-
- {{!--
--}} -
-
-
+
Hero
+
+
+
+ {{!--
--}} +
+
+
{{#each actors as | actor | }} @@ -24,14 +24,14 @@
{{ actor.shortestName }}
-
{{ actor.heroPoints.rank }}/{{ actor.heroPoints.max }}
-
{{ actor.hp.value }}/{{ actor.hp.max }}
-
{{ actor.armor }} {{#if actor.shieldAC}}{{ actor.shieldAC }}{{/if}}
-
{{ actor.perception }}
- {{!--
{{ actor.speed }}
--}} -
{{ actor.saves.fortitude }}
-
{{ actor.saves.reflex }}
-
{{ actor.saves.will }}
+
{{ actor.heroPoints.rank }}/{{ actor.heroPoints.max }}
+
{{ actor.hp.value }}/{{ actor.hp.max }}
+
{{ actor.armor }} {{#if actor.shieldAC}}{{ actor.shieldAC }}{{/if}}
+
{{ actor.perception }}
+ {{!--
{{ actor.speed }}
--}} +
{{ actor.saves.fortitude }}
+
{{ actor.saves.reflex }}
+
{{ actor.saves.will }}
{{/each}} @@ -46,13 +46,13 @@
{{> "modules/party-overview/templates/parts/FilterButton.html"}}
Name
-
{{localize "PF2E.CurrencyAbbreviations.pp"}}
-
{{localize "PF2E.CurrencyAbbreviations.gp"}}
-
{{localize "PF2E.CurrencyAbbreviations.sp"}}
-
{{localize "PF2E.CurrencyAbbreviations.cp"}}
-
{{localize "PF2E.StackGroupCoins"}} ({{localize "PF2E.CurrencyGP"}})
-
{{localize "PF2E.Item.Plural"}} ({{localize "PF2E.CurrencyGP"}})
-
{{localize "party-overview.TOTAL"}}
+
{{localize "PF2E.CurrencyAbbreviations.pp"}}
+
{{localize "PF2E.CurrencyAbbreviations.gp"}}
+
{{localize "PF2E.CurrencyAbbreviations.sp"}}
+
{{localize "PF2E.CurrencyAbbreviations.cp"}}
+
{{localize "PF2E.StackGroupCoins"}} ({{localize "PF2E.CurrencyGP"}})
+
{{localize "PF2E.Item.Plural"}} ({{localize "PF2E.CurrencyGP"}})
+
{{localize "party-overview.TOTAL"}}
{{#each actors as | actor | }} @@ -64,13 +64,13 @@
{{ actor.shortestName }}
-
{{currency.pp}}
-
{{currency.gp}}
-
{{currency.sp}}
-
{{currency.cp}}
-
{{actor.totalGP}}
-
{{itemsValue}}
-
{{actor.sumItemsGP}}
+
{{currency.pp}}
+
{{currency.gp}}
+
{{currency.sp}}
+
{{currency.cp}}
+
{{actor.totalGP}}
+
{{itemsValue}}
+
{{actor.sumItemsGP}}
{{/each}}
@@ -78,13 +78,13 @@
{{localize "party-overview.TOTAL"}}
-
{{totalCurrency.pp}}
-
{{totalCurrency.gp}}
-
{{totalCurrency.sp}}
-
{{totalCurrency.cp}}
-
{{totalPartyGP}}
-
{{itemsValue}}
-
{{sumItemsGP}}
+
{{totalCurrency.pp}}
+
{{totalCurrency.gp}}
+
{{totalCurrency.sp}}
+
{{totalCurrency.cp}}
+
{{totalPartyGP}}
+
{{itemsValue}}
+
{{sumItemsGP}}