forked from GitHub-Mirrors/foundry-sw5e
SuperVJ Update - 9/14 fix
I somehow didn't update this file, must have checked it against 0.8.9 instead of 0.9.6. Vehicle inventory should work now
This commit is contained in:
parent
702f709605
commit
18790c1406
1 changed files with 42 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
||||||
<div class="inventory-filters">
|
<div class="inventory-filters flexrow">
|
||||||
|
|
||||||
{{#if isCharacter}}
|
{{#unless isNPC}}
|
||||||
<ol class="currency flexrow">
|
<ol class="currency flexrow">
|
||||||
<h3>
|
<h3>
|
||||||
{{localize "SW5E.Currency"}}
|
{{localize "SW5E.Currency"}}
|
||||||
|
@ -11,15 +11,16 @@
|
||||||
<input type="text" name="data.currency.{{k}}" value="{{v}}" data-dtype="Number"/>
|
<input type="text" name="data.currency.{{k}}" value="{{v}}" data-dtype="Number"/>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ol>
|
</ol>
|
||||||
{{/if}}
|
{{/unless}}
|
||||||
|
|
||||||
|
{{#unless isVehicle}}
|
||||||
<ul class="filter-list flexrow" data-filter="inventory">
|
<ul class="filter-list flexrow" data-filter="inventory">
|
||||||
<li class="filter-title">{{localize "SW5E.Filter"}}</li>
|
|
||||||
<li class="filter-item" data-filter="action">{{localize "SW5E.Action"}}</li>
|
<li class="filter-item" data-filter="action">{{localize "SW5E.Action"}}</li>
|
||||||
<li class="filter-item" data-filter="bonus">{{localize "SW5E.BonusAction"}}</li>
|
<li class="filter-item" data-filter="bonus">{{localize "SW5E.BonusAction"}}</li>
|
||||||
<li class="filter-item" data-filter="reaction">{{localize "SW5E.Reaction"}}</li>
|
<li class="filter-item" data-filter="reaction">{{localize "SW5E.Reaction"}}</li>
|
||||||
<li class="filter-item" data-filter="equipped">{{localize "SW5E.Equipped"}}</li>
|
<li class="filter-item" data-filter="equipped">{{localize "SW5E.Equipped"}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
{{/unless}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ol class="inventory-list">
|
<ol class="inventory-list">
|
||||||
|
@ -27,16 +28,23 @@
|
||||||
<li class="inventory-header flexrow">
|
<li class="inventory-header flexrow">
|
||||||
<h3 class="item-name flexrow">{{localize section.label}}</h3>
|
<h3 class="item-name flexrow">{{localize section.label}}</h3>
|
||||||
|
|
||||||
|
{{#if section.columns}}
|
||||||
|
{{#each section.columns}}
|
||||||
|
<div class="item-detail {{css}}">{{label}}</div>
|
||||||
|
{{/each}}
|
||||||
|
{{else}}
|
||||||
{{#if ../isCharacter}}
|
{{#if ../isCharacter}}
|
||||||
<div class="item-detail item-weight">{{localize "SW5E.Weight"}}</div>
|
<div class="item-detail item-weight">{{localize "SW5E.Weight"}}</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<div class="item-detail item-uses">{{localize "SW5E.Charges"}}</div>
|
<div class="item-detail item-uses">{{localize "SW5E.Charges"}}</div>
|
||||||
<div class="item-detail item-action">{{localize "SW5E.Usage"}}</div>
|
<div class="item-detail item-action">{{localize "SW5E.Usage"}}</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{#if ../owner}}
|
{{#if ../owner}}
|
||||||
<div class="item-controls">
|
<div class="item-controls">
|
||||||
<a class="item-control item-create" title='{{localize "SW5E.ItemCreate"}}' {{#each section.dataset as |v k|}}data-{{k}}="{{v}}"{{/each}}>
|
<a class="item-control item-create" title='{{localize "SW5E.ItemCreate"}}'
|
||||||
|
{{#each section.dataset as |v k|}}data-{{k}}="{{v}}"{{/each}}>
|
||||||
<i class="fas fa-plus"></i> {{localize "SW5E.Add"}}
|
<i class="fas fa-plus"></i> {{localize "SW5E.Add"}}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -45,16 +53,35 @@
|
||||||
|
|
||||||
<ol class="item-list">
|
<ol class="item-list">
|
||||||
{{#each section.items as |item iid|}}
|
{{#each section.items as |item iid|}}
|
||||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
<li class="item flexrow {{section.css}}"
|
||||||
|
data-item-id="{{#if section.editableName}}{{iid}}{{else}}{{item._id}}{{/if}}">
|
||||||
<div class="item-name flexrow rollable">
|
<div class="item-name flexrow rollable">
|
||||||
|
{{#if section.editableName}}
|
||||||
|
<input type="text" value="{{item.name}}">
|
||||||
|
{{else}}
|
||||||
<div class="item-image" style="background-image: url({{item.img}})"></div>
|
<div class="item-image" style="background-image: url({{item.img}})"></div>
|
||||||
<h4>
|
<h4>
|
||||||
{{item.name~}}
|
{{item.name~}}
|
||||||
{{~#if item.isStack}} ({{item.data.quantity}}){{/if}}
|
{{~#if item.isStack}} ({{item.data.quantity}}){{/if}}
|
||||||
{{~#if item.data.attuned}} <i class="fas fa-sun attuned" title={{localize "SW5E.Attuned"}}></i>{{/if}}
|
{{~#if item.data.attuned}} <i class="fas fa-sun attuned" title={{localize "SW5E.Attuned"}}></i>{{/if}}
|
||||||
</h4>
|
</h4>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{#if section.columns}}
|
||||||
|
{{#each section.columns}}
|
||||||
|
<div class="item-detail {{css}}">
|
||||||
|
{{#with (getProperty item property)}}
|
||||||
|
{{#if ../editable}}
|
||||||
|
<input type="text" value="{{this}}" placeholder="—"
|
||||||
|
data-dtype="{{../editable}}" data-property="{{../property}}">
|
||||||
|
{{else}}
|
||||||
|
{{this}}
|
||||||
|
{{/if}}
|
||||||
|
{{/with}}
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
{{else}}
|
||||||
{{#if ../../isCharacter}}
|
{{#if ../../isCharacter}}
|
||||||
<div class="item-detail item-weight">
|
<div class="item-detail item-weight">
|
||||||
{{#if item.totalWeight}}
|
{{#if item.totalWeight}}
|
||||||
|
@ -77,11 +104,16 @@
|
||||||
{{item.labels.activation}}
|
{{item.labels.activation}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{#if ../../owner}}
|
{{#if ../../owner}}
|
||||||
<div class="item-controls">
|
<div class="item-controls">
|
||||||
|
{{#unless @root.isVehicle}}
|
||||||
<a class="item-control item-toggle {{item.toggleClass}}" title='{{item.toggleTitle}}'><i class="fas fa-shield-alt"></i></a>
|
<a class="item-control item-toggle {{item.toggleClass}}" title='{{item.toggleTitle}}'><i class="fas fa-shield-alt"></i></a>
|
||||||
|
{{/unless}}
|
||||||
|
{{#unless section.editableName}}
|
||||||
<a class="item-control item-edit" title='{{localize "SW5E.ItemEdit"}}'><i class="fas fa-edit"></i></a>
|
<a class="item-control item-edit" title='{{localize "SW5E.ItemEdit"}}'><i class="fas fa-edit"></i></a>
|
||||||
|
{{/unless}}
|
||||||
<a class="item-control item-delete" title='{{localize "SW5E.ItemDelete"}}'><i class="fas fa-trash"></i></a>
|
<a class="item-control item-delete" title='{{localize "SW5E.ItemDelete"}}'><i class="fas fa-trash"></i></a>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -92,7 +124,7 @@
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
|
|
||||||
{{#if isCharacter }}
|
{{#unless isNPC}}
|
||||||
{{#with data.attributes.encumbrance}}
|
{{#with data.attributes.encumbrance}}
|
||||||
<div class="encumbrance {{#if encumbered}}encumbered{{/if}}">
|
<div class="encumbrance {{#if encumbered}}encumbered{{/if}}">
|
||||||
<span class="encumbrance-bar" style="width:{{pct}}%"></span>
|
<span class="encumbrance-bar" style="width:{{pct}}%"></span>
|
||||||
|
@ -103,4 +135,4 @@
|
||||||
<i class="encumbrance-breakpoint encumbrance-66 arrow-down"></i>
|
<i class="encumbrance-breakpoint encumbrance-66 arrow-down"></i>
|
||||||
</div>
|
</div>
|
||||||
{{/with}}
|
{{/with}}
|
||||||
{{/if}}
|
{{/unless}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue