2020-12-29 19:06:17 +01:00
|
|
|
{{!-- TODO: Where possible use icons with complete names as hovers instead of long names --}}
|
2020-12-28 20:38:02 +01:00
|
|
|
{{!-- Tab with overview and quick-actions on owned items --}}
|
|
|
|
<div class="tab items" data-group="primary" data-tab="items">
|
2020-12-29 01:44:54 +01:00
|
|
|
|
|
|
|
{{!-- WEAPONS --}}
|
2020-12-29 23:58:45 +01:00
|
|
|
<h4 class="items-list-title">{{localize 'DS4.ItemTypeWeapon'}}</h4> {{!-- SPECIFIC --}}
|
2020-12-28 20:38:02 +01:00
|
|
|
<ol class="items-list">
|
|
|
|
<li class="item flexrow item-header">
|
2020-12-29 01:44:54 +01:00
|
|
|
<div class="flexrow flex15">
|
2020-12-29 23:58:45 +01:00
|
|
|
<div title="{{localize 'DS4.ItemEquipped'}}">E</div> {{!-- equipped --}} {{!-- SPECIFIC --}}
|
2020-12-29 01:44:54 +01:00
|
|
|
<div class="item-image"></div>
|
2020-12-29 23:58:45 +01:00
|
|
|
<div class="item-num-val" title="{{localize 'DS4.Quantity'}}">#</div> {{!-- amount --}}
|
2020-12-29 01:44:54 +01:00
|
|
|
</div>
|
2020-12-29 23:58:45 +01:00
|
|
|
<div class="item-name flex3">{{localize 'DS4.ItemName'}}</div>
|
|
|
|
<div title="{{localize 'DS4.AttackType'}}">{{localize 'DS4.AttackTypeAbbr'}}</div> {{!-- SPECIFIC --}}
|
2020-12-29 01:44:54 +01:00
|
|
|
<div class="flexrow flex15">
|
2020-12-29 23:58:45 +01:00
|
|
|
<div class="item-num-val" title="{{localize 'DS4.WeaponBonus'}}">{{localize 'DS4.WeaponBonusAbbr'}}
|
|
|
|
</div> {{!-- SPECIFIC --}}
|
|
|
|
<div class="item-num-val" title="{{localize 'DS4.OpponentDefense'}}">{{localize
|
|
|
|
'DS4.OpponentDefenseAbbr'}}</div> {{!-- SPECIFIC --}}
|
2020-12-29 01:44:54 +01:00
|
|
|
</div>
|
2020-12-29 23:58:45 +01:00
|
|
|
<div class="flex4">{{localize 'DS4.Description'}}</div>
|
2020-12-29 01:44:54 +01:00
|
|
|
{{!-- add button --}}
|
|
|
|
<div class="item-controls"> {{!-- SPECIFIC --}}
|
2020-12-29 23:58:45 +01:00
|
|
|
<a class="item-control item-create" title="Create item" data-type="weapon" {{!-- SPECIFIC --}}>
|
2020-12-29 22:01:40 +01:00
|
|
|
<i class="fas fa-plus"></i>
|
2020-12-29 23:58:45 +01:00
|
|
|
{{localize 'DS4.UserInteractionAddItem'}}</a>
|
2020-12-28 20:38:02 +01:00
|
|
|
</div>
|
|
|
|
</li>
|
2020-12-29 01:44:54 +01:00
|
|
|
{{#each itemsByType.weapon as |item id|}} {{!-- SPECIFIC --}}
|
|
|
|
{{#with item.data.data as |itemData|}}
|
2020-12-28 20:38:02 +01:00
|
|
|
<li class="item flexrow" data-item-id="{{item._id}}">
|
2020-12-29 01:44:54 +01:00
|
|
|
<div class="flexrow flex15">
|
|
|
|
{{!-- equipped? --}}
|
|
|
|
{{#if itemData.equipped}}<i class="fas fa-check-square"></i>
|
|
|
|
{{else}}<i class="far fa-square"></i>
|
|
|
|
{{/if}} {{!--SPECIFIC --}}
|
|
|
|
{{!-- image --}}
|
|
|
|
<div class="item-image">
|
|
|
|
<img src="{{item.img}}" title="{{item.name}}" width="24" height="24" />
|
|
|
|
</div>
|
|
|
|
{{!-- amount --}}
|
2020-12-29 22:01:40 +01:00
|
|
|
<div class="item-num-val">{{itemData.quantity}}</div>
|
2020-12-29 01:44:54 +01:00
|
|
|
</div>
|
|
|
|
{{!-- name --}}
|
2020-12-29 22:01:40 +01:00
|
|
|
<h4 class="item-name flex3">{{item.name}}</h4>
|
2020-12-29 01:44:54 +01:00
|
|
|
{{!-- item specifics --}}
|
2020-12-30 00:01:41 +01:00
|
|
|
<div>
|
|
|
|
<img src="{{lookup ../../config.attackTypesIcons itemData.attackType}}" {{!--
|
|
|
|
title="{{lookup ../../config.attackTypesIcons itemData.attackType}}" --}}
|
|
|
|
title="{{lookup ../../config.attackTypes itemData.attackType}}" width="24" height="24" />
|
|
|
|
</div> {{!-- SPECIFIC --}}
|
2020-12-29 01:44:54 +01:00
|
|
|
<div class="flexrow flex15">
|
2020-12-29 22:01:40 +01:00
|
|
|
<div class="item-num-val">{{itemData.weaponBonus}}</div> {{!-- SPECIFIC --}}
|
|
|
|
<div class="item-num-val">{{itemData.opponentDefense}}</div> {{!-- SPECIFIC --}}
|
2020-12-28 20:38:02 +01:00
|
|
|
</div>
|
2020-12-29 01:44:54 +01:00
|
|
|
{{!-- description --}}
|
|
|
|
<div class="flex4 item-description">{{{itemData.description}}}</div>
|
|
|
|
{{!-- edit & delete buttons --}}
|
2020-12-29 22:02:43 +01:00
|
|
|
<div class="item-controls">
|
2020-12-28 20:38:02 +01:00
|
|
|
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
|
|
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
|
|
|
</div>
|
|
|
|
</li>
|
2020-12-29 01:44:54 +01:00
|
|
|
{{/with}}
|
2020-12-28 20:38:02 +01:00
|
|
|
{{/each}}
|
|
|
|
</ol>
|
2020-12-29 19:07:20 +01:00
|
|
|
|
|
|
|
{{!-- ARMOR --}}
|
2020-12-29 23:58:45 +01:00
|
|
|
<h4 class="items-list-title">{{localize 'DS4.ItemTypeArmor'}}</h4> {{!-- SPECIFIC --}}
|
2020-12-29 19:07:20 +01:00
|
|
|
<ol class="items-list">
|
|
|
|
<li class="item flexrow item-header">
|
|
|
|
<div class="flexrow flex15">
|
2020-12-29 23:58:45 +01:00
|
|
|
<div title="{{localize 'DS4.ItemEquipped'}}">E</div> {{!-- equipped --}} {{!-- SPECIFIC --}}
|
2020-12-29 19:07:20 +01:00
|
|
|
<div class="item-image"></div>
|
2020-12-29 23:58:45 +01:00
|
|
|
<div class="item-num-val" title="{{localize 'DS4.Quantity'}}">#</div> {{!-- amount --}}
|
2020-12-29 19:07:20 +01:00
|
|
|
</div>
|
2020-12-29 23:58:45 +01:00
|
|
|
<div class="item-name flex3">{{localize 'DS4.ItemName'}}</div>
|
|
|
|
<div title="{{localize 'DS4.ArmorMaterialType'}}">{{localize 'DS4.ArmorMaterialTypeAbbr'}}</div> {{!--
|
|
|
|
SPECIFIC --}}
|
|
|
|
<div title="{{localize 'DS4.ArmorType'}}">{{localize 'DS4.ArmorTypeAbbr'}}</div> {{!-- SPECIFIC --}}
|
|
|
|
<div class="flex05 item-num-val" title="{{localize 'DS4.ArmorValue'}}">{{localize 'DS4.ArmorValueAbbr'}}
|
|
|
|
</div> {{!-- SPECIFIC --}}
|
|
|
|
<div class="flex4">{{localize 'DS4.Description'}}</div>
|
2020-12-29 19:07:20 +01:00
|
|
|
{{!-- add button --}}
|
|
|
|
<div class="item-controls"> {{!-- SPECIFIC --}}
|
2020-12-29 23:58:45 +01:00
|
|
|
<a class="item-control item-create" title="Create item" data-type="armor" {{!-- SPECIFIC --}}>
|
2020-12-29 22:01:40 +01:00
|
|
|
<i class="fas fa-plus"></i>
|
2020-12-29 23:58:45 +01:00
|
|
|
{{localize 'DS4.UserInteractionAddItem'}}</a>
|
2020-12-29 19:07:20 +01:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{{#each itemsByType.armor as |item id|}} {{!-- SPECIFIC --}}
|
|
|
|
{{#with item.data.data as |itemData|}}
|
|
|
|
<li class="item flexrow" data-item-id="{{item._id}}">
|
|
|
|
<div class="flexrow flex15">
|
|
|
|
{{!-- equipped? --}}
|
|
|
|
{{#if itemData.equipped}}<i class="fas fa-check-square"></i>
|
|
|
|
{{else}}<i class="far fa-square"></i>
|
|
|
|
{{/if}} {{!--SPECIFIC --}}
|
|
|
|
{{!-- image --}}
|
|
|
|
<div class="item-image">
|
|
|
|
<img src="{{item.img}}" title="{{item.name}}" width="24" height="24" />
|
|
|
|
</div>
|
|
|
|
{{!-- amount --}}
|
2020-12-29 22:36:27 +01:00
|
|
|
<div class="item-num-val">{{itemData.quantity}}</div>
|
2020-12-29 19:07:20 +01:00
|
|
|
</div>
|
|
|
|
{{!-- name --}}
|
2020-12-29 22:01:40 +01:00
|
|
|
<h4 class="item-name flex3">{{item.name}}</h4>
|
2020-12-29 19:07:20 +01:00
|
|
|
{{!-- item specifics --}}
|
|
|
|
<div>{{lookup ../../config.armorMaterialTypes itemData.armorMaterialType}}</div> {{!-- SPECIFIC --}}
|
|
|
|
<div>{{lookup ../../config.armorTypes itemData.armorType}}</div> {{!-- SPECIFIC --}}
|
2020-12-29 22:01:40 +01:00
|
|
|
<div class="flex05 item-num-val">{{itemData.armorValue}}</div> {{!-- SPECIFIC --}}
|
2020-12-29 19:07:20 +01:00
|
|
|
{{!-- description --}}
|
|
|
|
<div class="flex4 item-description">{{{itemData.description}}}</div>
|
|
|
|
{{!-- edit & delete buttons --}}
|
2020-12-29 22:02:43 +01:00
|
|
|
<div class="item-controls">
|
2020-12-29 19:07:20 +01:00
|
|
|
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
|
|
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{{/with}}
|
|
|
|
{{/each}}
|
|
|
|
</ol>
|
2020-12-29 20:37:30 +01:00
|
|
|
|
|
|
|
|
|
|
|
{{!-- SHIELD --}}
|
2020-12-29 23:58:45 +01:00
|
|
|
<h4 class="items-list-title">{{localize 'DS4.ItemTypeShield'}}</h4> {{!-- SPECIFIC --}}
|
2020-12-29 20:37:30 +01:00
|
|
|
<ol class="items-list">
|
|
|
|
<li class="item flexrow item-header">
|
|
|
|
<div class="flexrow flex15">
|
2020-12-29 23:58:45 +01:00
|
|
|
<div title="{{localize 'DS4.ItemEquipped'}}">E</div> {{!-- equipped --}} {{!-- SPECIFIC --}}
|
2020-12-29 20:37:30 +01:00
|
|
|
<div class="item-image"></div>
|
2020-12-29 23:58:45 +01:00
|
|
|
<div class="item-num-val" title="{{localize 'DS4.Quantity'}}">#</div> {{!-- amount --}}
|
2020-12-29 20:37:30 +01:00
|
|
|
</div>
|
2020-12-29 23:58:45 +01:00
|
|
|
<div class="item-name flex3">{{localize 'DS4.ItemName'}}</div>
|
|
|
|
<div class="flex05 item-num-val" title="{{localize 'DS4.ArmorValue'}}">{{localize 'DS4.ArmorValueAbbr'}}
|
|
|
|
</div> {{!-- SPECIFIC --}}
|
|
|
|
<div class="flex4">{{localize 'DS4.Description'}}</div>
|
2020-12-29 20:37:30 +01:00
|
|
|
{{!-- add button --}}
|
|
|
|
<div class="item-controls"> {{!-- SPECIFIC --}}
|
2020-12-29 23:58:45 +01:00
|
|
|
<a class="item-control item-create" title="Create item" data-type="shield" {{!-- SPECIFIC --}}>
|
2020-12-29 22:01:40 +01:00
|
|
|
<i class="fas fa-plus"></i>
|
2020-12-29 23:58:45 +01:00
|
|
|
{{localize 'DS4.UserInteractionAddItem'}}</a>
|
2020-12-29 20:37:30 +01:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{{#each itemsByType.shield as |item id|}} {{!-- SPECIFIC --}}
|
|
|
|
{{#with item.data.data as |itemData|}}
|
|
|
|
<li class="item flexrow" data-item-id="{{item._id}}">
|
|
|
|
<div class="flexrow flex15">
|
|
|
|
{{!-- equipped? --}}
|
|
|
|
{{#if itemData.equipped}}<i class="fas fa-check-square"></i>
|
|
|
|
{{else}}<i class="far fa-square"></i>
|
|
|
|
{{/if}} {{!--SPECIFIC --}}
|
|
|
|
{{!-- image --}}
|
|
|
|
<div class="item-image">
|
|
|
|
<img src="{{item.img}}" title="{{item.name}}" width="24" height="24" />
|
|
|
|
</div>
|
|
|
|
{{!-- amount --}}
|
2020-12-29 22:36:27 +01:00
|
|
|
<div class="item-num-val">{{itemData.quantity}}</div>
|
2020-12-29 20:37:30 +01:00
|
|
|
</div>
|
|
|
|
{{!-- name --}}
|
2020-12-29 22:01:40 +01:00
|
|
|
<h4 class="item-name flex3">{{item.name}}</h4>
|
2020-12-29 20:37:30 +01:00
|
|
|
{{!-- item specifics --}}
|
2020-12-29 22:01:40 +01:00
|
|
|
<div class="flex05 item-num-val">{{itemData.armorValue}}</div> {{!-- SPECIFIC --}}
|
2020-12-29 20:37:30 +01:00
|
|
|
{{!-- description --}}
|
|
|
|
<div class="flex4 item-description">{{{itemData.description}}}</div>
|
|
|
|
{{!-- edit & delete buttons --}}
|
2020-12-29 22:02:43 +01:00
|
|
|
<div class="item-controls">
|
2020-12-29 20:37:30 +01:00
|
|
|
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
|
|
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{{/with}}
|
|
|
|
{{/each}}
|
|
|
|
</ol>
|
2020-12-29 21:27:50 +01:00
|
|
|
|
|
|
|
{{!-- TRINKET --}}
|
2020-12-29 23:58:45 +01:00
|
|
|
<h4 class="items-list-title">{{localize 'DS4.ItemTypeTrinket'}}</h4> {{!-- SPECIFIC --}}
|
2020-12-29 21:27:50 +01:00
|
|
|
<ol class="items-list">
|
|
|
|
<li class="item flexrow item-header">
|
|
|
|
<div class="flexrow flex15">
|
2020-12-29 23:58:45 +01:00
|
|
|
<div title="{{localize 'DS4.ItemEquipped'}}">E</div> {{!-- equipped --}} {{!-- SPECIFIC --}}
|
2020-12-29 21:27:50 +01:00
|
|
|
<div class="item-image"></div>
|
2020-12-29 23:58:45 +01:00
|
|
|
<div class="item-num-val" title="{{localize 'DS4.Quantity'}}">#</div> {{!-- amount --}}
|
2020-12-29 21:27:50 +01:00
|
|
|
</div>
|
2020-12-29 23:58:45 +01:00
|
|
|
<div class="item-name flex3">{{localize 'DS4.ItemName'}}</div>
|
|
|
|
<div class="flex2">{{localize 'DS4.StorageLocation'}}</div> {{!-- SPECIFIC --}}
|
|
|
|
<div class="flex4">{{localize 'DS4.Description'}}</div>
|
2020-12-29 21:27:50 +01:00
|
|
|
{{!-- add button --}}
|
|
|
|
<div class="item-controls"> {{!-- SPECIFIC --}}
|
2020-12-29 23:58:45 +01:00
|
|
|
<a class="item-control item-create" title="Create item" data-type="trinket" {{!-- SPECIFIC --}}>
|
2020-12-29 22:01:40 +01:00
|
|
|
<i class="fas fa-plus"></i>
|
2020-12-29 23:58:45 +01:00
|
|
|
{{localize 'DS4.UserInteractionAddItem'}}</a>
|
2020-12-29 21:27:50 +01:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{{#each itemsByType.trinket as |item id|}} {{!-- SPECIFIC --}}
|
|
|
|
{{#with item.data.data as |itemData|}}
|
|
|
|
<li class="item flexrow" data-item-id="{{item._id}}">
|
|
|
|
<div class="flexrow flex15">
|
|
|
|
{{!-- equipped? --}}
|
|
|
|
{{#if itemData.equipped}}<i class="fas fa-check-square"></i>
|
|
|
|
{{else}}<i class="far fa-square"></i>
|
|
|
|
{{/if}} {{!--SPECIFIC --}}
|
|
|
|
{{!-- image --}}
|
|
|
|
<div class="item-image">
|
|
|
|
<img src="{{item.img}}" title="{{item.name}}" width="24" height="24" />
|
|
|
|
</div>
|
|
|
|
{{!-- amount --}}
|
2020-12-29 22:36:27 +01:00
|
|
|
<div class="item-num-val">{{itemData.quantity}}</div>
|
2020-12-29 21:27:50 +01:00
|
|
|
</div>
|
|
|
|
{{!-- name --}}
|
2020-12-29 22:02:43 +01:00
|
|
|
<h4 class="item-name flex3">{{item.name}}</h4>
|
|
|
|
{{!-- storage location --}}
|
2020-12-29 23:58:45 +01:00
|
|
|
<div class="flex2">{{{itemData.storageLocation}}}</div> {{!-- SPECIFIC --}}
|
2020-12-29 22:02:43 +01:00
|
|
|
{{!-- description --}}
|
|
|
|
<div class="flex4 item-description">{{{itemData.description}}}</div>
|
|
|
|
{{!-- edit & delete buttons --}}
|
|
|
|
<div class="item-controls">
|
|
|
|
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
|
|
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{{/with}}
|
|
|
|
{{/each}}
|
|
|
|
</ol>
|
|
|
|
|
|
|
|
{{!-- EQUIPMENT --}}
|
2020-12-29 23:58:45 +01:00
|
|
|
<h4 class="items-list-title">{{localize 'DS4.ItemTypeEquipment'}}</h4> {{!-- SPECIFIC --}}
|
2020-12-29 22:02:43 +01:00
|
|
|
<ol class="items-list">
|
|
|
|
<li class="item flexrow item-header">
|
|
|
|
<div class="flexrow flex15">
|
|
|
|
<div class="item-image"></div>
|
2020-12-29 23:58:45 +01:00
|
|
|
<div class="item-num-val" title="{{localize 'DS4.Quantity'}}">#</div> {{!-- amount --}}
|
2020-12-29 22:02:43 +01:00
|
|
|
</div>
|
2020-12-29 23:58:45 +01:00
|
|
|
<div class="item-name flex3">{{localize 'DS4.ItemName'}}</div>
|
|
|
|
<div class="flex2">{{localize 'DS4.StorageLocation'}}</div> {{!-- SPECIFIC --}}
|
|
|
|
<div class="flex4">{{localize 'DS4.Description'}}</div>
|
2020-12-29 22:02:43 +01:00
|
|
|
{{!-- add button --}}
|
|
|
|
<div class="item-controls"> {{!-- SPECIFIC --}}
|
|
|
|
<a class="item-control item-create" title="Create item" data-type="equipment" {{!-- SPECIFIC --}}>
|
|
|
|
<i class="fas fa-plus"></i>
|
2020-12-29 23:58:45 +01:00
|
|
|
{{localize 'DS4.UserInteractionAddItem'}}</a>
|
2020-12-29 22:02:43 +01:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{{#each itemsByType.equipment as |item id|}} {{!-- SPECIFIC --}}
|
|
|
|
{{#with item.data.data as |itemData|}}
|
|
|
|
<li class="item flexrow" data-item-id="{{item._id}}">
|
|
|
|
<div class="flexrow flex15">
|
|
|
|
{{!-- image --}}
|
|
|
|
<div class="item-image">
|
|
|
|
<img src="{{item.img}}" title="{{item.name}}" width="24" height="24" />
|
|
|
|
</div>
|
|
|
|
{{!-- amount --}}
|
2020-12-29 22:36:27 +01:00
|
|
|
<div class="item-num-val">{{itemData.quantity}}</div>
|
2020-12-29 22:02:43 +01:00
|
|
|
</div>
|
|
|
|
{{!-- name --}}
|
|
|
|
<h4 class="item-name flex3">{{item.name}}</h4>
|
|
|
|
{{!-- storage location --}}
|
2020-12-29 23:58:45 +01:00
|
|
|
<div class="flex2">{{{itemData.storageLocation}}}</div> {{!-- SPECIFIC --}}
|
2020-12-29 21:27:50 +01:00
|
|
|
{{!-- description --}}
|
|
|
|
<div class="flex4 item-description">{{{itemData.description}}}</div>
|
|
|
|
{{!-- edit & delete buttons --}}
|
2020-12-29 22:02:43 +01:00
|
|
|
<div class="item-controls">
|
2020-12-29 21:27:50 +01:00
|
|
|
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
|
|
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{{/with}}
|
|
|
|
{{/each}}
|
|
|
|
</ol>
|
2020-12-28 20:38:02 +01:00
|
|
|
</div>
|