Skip to content

Commit

Permalink
PF2e Wealth width
Browse files Browse the repository at this point in the history
  • Loading branch information
mclemente committed Jan 6, 2022
1 parent 3da5c1c commit e570516
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 37 deletions.
4 changes: 4 additions & 0 deletions module/SystemProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down
74 changes: 37 additions & 37 deletions templates/pf2e.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<div class="table-row header">
{{> "modules/party-overview/templates/parts/FilterButton.html"}}
<div class="text">{{localize "party-overview.NAME"}}</div>
<div class="num" title="{{localize "PF2E.HeroPointsHeader"}}">Hero</div>
<div class="num" title="{{localize "PF2E.HitPointsHeader"}}"><i class="fas fa-heart"></i></div>
<div class="num" title="{{localize "PF2E.ArmorClassLabel"}}"><i class="fas fa-shield-alt"></i></div>
<div class="num" title="{{localize "PF2E.PerceptionHeader"}}"><i class="far fa-eye"></i></div>
{{!-- <div class="num" title="{{localize "PF2E.Speed"}}"><i class="fas fa-tachometer-alt"></i></div> --}}
<div class="num" title="{{localize "PF2E.SavesFortitude"}}"><i class="fas fa-hard-hat"></i></div>
<div class="num" title="{{localize "PF2E.SavesReflex"}}"><i class="fas fa-running"></i></div>
<div class="num" title="{{localize "PF2E.SavesWill"}}"><i class="fas fa-brain"></i></div>
<div class="text icon" title="{{localize "PF2E.HeroPointsHeader"}}">Hero</div>
<div class="text icon" title="{{localize "PF2E.HitPointsHeader"}}"><i class="fas fa-heart"></i></div>
<div class="text icon" title="{{localize "PF2E.ArmorClassLabel"}}"><i class="fas fa-shield-alt"></i></div>
<div class="text icon" title="{{localize "PF2E.PerceptionHeader"}}"><i class="far fa-eye"></i></div>
{{!-- <div class="text icon" title="{{localize "PF2E.Speed"}}"><i class="fas fa-tachometer-alt"></i></div> --}}
<div class="text icon" title="{{localize "PF2E.SavesFortitude"}}"><i class="fas fa-hard-hat"></i></div>
<div class="text icon" title="{{localize "PF2E.SavesReflex"}}"><i class="fas fa-running"></i></div>
<div class="text icon" title="{{localize "PF2E.SavesWill"}}"><i class="fas fa-brain"></i></div>
</div>

{{#each actors as | actor | }}
Expand All @@ -24,14 +24,14 @@
</button>
</div>
<div class="text">{{ actor.shortestName }}</div>
<div class="num">{{ actor.heroPoints.rank }}/{{ actor.heroPoints.max }}</div>
<div class="num">{{ actor.hp.value }}/{{ actor.hp.max }}</div>
<div class="num">{{ actor.armor }} {{#if actor.shieldAC}}{{ actor.shieldAC }}{{/if}}</div>
<div class="num">{{ actor.perception }}</div>
{{!-- <div class="num">{{ actor.speed }}</div> --}}
<div class="num">{{ actor.saves.fortitude }}</div>
<div class="num">{{ actor.saves.reflex }}</div>
<div class="num">{{ actor.saves.will }}</div>
<div class="text icon">{{ actor.heroPoints.rank }}/{{ actor.heroPoints.max }}</div>
<div class="text icon">{{ actor.hp.value }}/{{ actor.hp.max }}</div>
<div class="text icon">{{ actor.armor }} {{#if actor.shieldAC}}{{ actor.shieldAC }}{{/if}}</div>
<div class="text icon">{{ actor.perception }}</div>
{{!-- <div class="text icon">{{ actor.speed }}</div> --}}
<div class="text icon">{{ actor.saves.fortitude }}</div>
<div class="text icon">{{ actor.saves.reflex }}</div>
<div class="text icon">{{ actor.saves.will }}</div>
</div>
{{/each}}
</div>
Expand All @@ -46,13 +46,13 @@
<div class="table-row header">
{{> "modules/party-overview/templates/parts/FilterButton.html"}}
<div class="text">Name</div>
<div class="num" title='{{localize "PF2E.CurrencyPP"}}' style="text-transform: uppercase;">{{localize "PF2E.CurrencyAbbreviations.pp"}}</div>
<div class="num" title='{{localize "PF2E.CurrencyGP"}}' style="text-transform: uppercase;">{{localize "PF2E.CurrencyAbbreviations.gp"}}</div>
<div class="num" title='{{localize "PF2E.CurrencySP"}}' style="text-transform: uppercase;">{{localize "PF2E.CurrencyAbbreviations.sp"}}</div>
<div class="num" title='{{localize "PF2E.CurrencyCP"}}' style="text-transform: uppercase;">{{localize "PF2E.CurrencyAbbreviations.cp"}}</div>
<div class="num">{{localize "PF2E.StackGroupCoins"}} ({{localize "PF2E.CurrencyGP"}})</div>
<div class="num">{{localize "PF2E.Item.Plural"}} ({{localize "PF2E.CurrencyGP"}})</div>
<div class="num">{{localize "party-overview.TOTAL"}}</div>
<div class="text icon" title='{{localize "PF2E.CurrencyPP"}}' style="text-transform: uppercase;">{{localize "PF2E.CurrencyAbbreviations.pp"}}</div>
<div class="text icon" title='{{localize "PF2E.CurrencyGP"}}' style="text-transform: uppercase;">{{localize "PF2E.CurrencyAbbreviations.gp"}}</div>
<div class="text icon" title='{{localize "PF2E.CurrencySP"}}' style="text-transform: uppercase;">{{localize "PF2E.CurrencyAbbreviations.sp"}}</div>
<div class="text icon" title='{{localize "PF2E.CurrencyCP"}}' style="text-transform: uppercase;">{{localize "PF2E.CurrencyAbbreviations.cp"}}</div>
<div class="text icon">{{localize "PF2E.StackGroupCoins"}} ({{localize "PF2E.CurrencyGP"}})</div>
<div class="text icon">{{localize "PF2E.Item.Plural"}} ({{localize "PF2E.CurrencyGP"}})</div>
<div class="text icon">{{localize "party-overview.TOTAL"}}</div>
</div>

{{#each actors as | actor | }}
Expand All @@ -64,27 +64,27 @@
</button>
</div>
<div class="text">{{ actor.shortestName }}</div>
<div class="num">{{currency.pp}}</div>
<div class="num">{{currency.gp}}</div>
<div class="num">{{currency.sp}}</div>
<div class="num">{{currency.cp}}</div>
<div class="num"><b>{{actor.totalGP}}</b></div>
<div class="num"><b>{{itemsValue}}</b></div>
<div class="num"><b>{{actor.sumItemsGP}}</b></div>
<div class="text icon">{{currency.pp}}</div>
<div class="text icon">{{currency.gp}}</div>
<div class="text icon">{{currency.sp}}</div>
<div class="text icon">{{currency.cp}}</div>
<div class="text icon"><b>{{actor.totalGP}}</b></div>
<div class="text icon"><b>{{itemsValue}}</b></div>
<div class="text icon"><b>{{actor.sumItemsGP}}</b></div>
</div>
{{/each}}
<div class="table-row">
<div class="button">

</div>
<div class="text">{{localize "party-overview.TOTAL"}}</div>
<div class="num">{{totalCurrency.pp}}</div>
<div class="num">{{totalCurrency.gp}}</div>
<div class="num">{{totalCurrency.sp}}</div>
<div class="num">{{totalCurrency.cp}}</div>
<div class="num"><b>{{totalPartyGP}}</b></div>
<div class="num"><b>{{itemsValue}}</b></div>
<div class="num"><b>{{sumItemsGP}}</b></div>
<div class="text icon">{{totalCurrency.pp}}</div>
<div class="text icon">{{totalCurrency.gp}}</div>
<div class="text icon">{{totalCurrency.sp}}</div>
<div class="text icon">{{totalCurrency.cp}}</div>
<div class="text icon"><b>{{totalPartyGP}}</b></div>
<div class="text icon"><b>{{itemsValue}}</b></div>
<div class="text icon"><b>{{sumItemsGP}}</b></div>
</div>
</div>

Expand Down

0 comments on commit e570516

Please sign in to comment.