2020-12-29 19:06:17 +01:00
|
|
|
{{!-- TODO: hover shows complete name of abbreviations --}}
|
|
|
|
{{!-- TODO: try to use alias for the item type via HBS with and lookup --}}
|
|
|
|
{{!-- 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 19:06:17 +01:00
|
|
|
<h3>{{localize "DS4.ItemTypeWeapon"}}</h3> {{!-- 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">
|
|
|
|
<div></div> {{!-- equipped --}}
|
|
|
|
<div class="item-image"></div>
|
|
|
|
<div>#</div> {{!-- amount --}}
|
|
|
|
</div>
|
2020-12-29 16:29:44 +01:00
|
|
|
<div class="item-name flex2">{{localize "DS4.ItemName"}}</div>
|
|
|
|
<div>{{localize "DS4.AttackTypeAbbr"}}</div> {{!-- SPECIFIC --}}
|
2020-12-29 01:44:54 +01:00
|
|
|
<div class="flexrow flex15">
|
2020-12-29 16:29:44 +01:00
|
|
|
<div>{{localize "DS4.WeaponBonusAbbr"}}</div> {{!-- SPECIFIC --}}
|
|
|
|
<div>{{localize "DS4.OpponentDefenseAbbr"}}</div> {{!-- SPECIFIC --}}
|
2020-12-29 01:44:54 +01:00
|
|
|
</div>
|
2020-12-29 19:06:17 +01:00
|
|
|
<div class="flex4">{{localize "DS4.Description"}}</div>
|
2020-12-29 01:44:54 +01:00
|
|
|
{{!-- add button --}}
|
|
|
|
<div class="item-controls"> {{!-- SPECIFIC --}}
|
|
|
|
<a class="item-control item-create" title="Create item" data-type="weapon"><i class="fas fa-plus"></i>
|
2020-12-29 16:29:44 +01:00
|
|
|
{{localize "DS4.ActionAddItem"}}</a> {{!-- SPECIFIC --}}
|
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 --}}
|
|
|
|
<div>{{itemData.quantity}}</div>
|
|
|
|
</div>
|
|
|
|
{{!-- name --}}
|
|
|
|
<h4 class="item-name flex2">{{item.name}}</h4>
|
|
|
|
{{!-- item specifics --}}
|
2020-12-29 19:06:17 +01:00
|
|
|
<div>{{lookup ../../config.attackTypes itemData.attackType}}</div> {{!-- SPECIFIC --}}
|
2020-12-29 01:44:54 +01:00
|
|
|
<div class="flexrow flex15">
|
|
|
|
<div>{{itemData.weaponBonus}}</div> {{!-- SPECIFIC --}}
|
|
|
|
<div>{{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 --}}
|
|
|
|
<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 --}}
|
|
|
|
<h3>{{localize "DS4.ItemTypeArmor"}}</h3> {{!-- SPECIFIC --}}
|
|
|
|
<ol class="items-list">
|
|
|
|
<li class="item flexrow item-header">
|
|
|
|
<div class="flexrow flex15">
|
|
|
|
<div></div> {{!-- equipped --}}
|
|
|
|
<div class="item-image"></div>
|
|
|
|
<div>#</div> {{!-- amount --}}
|
|
|
|
</div>
|
|
|
|
<div class="item-name flex2">{{localize "DS4.ItemName"}}</div>
|
|
|
|
<div>{{localize "DS4.ArmorMaterialTypeAbbr"}}</div> {{!-- SPECIFIC --}}
|
|
|
|
<div>{{localize "DS4.ArmorTypeAbbr"}}</div> {{!-- SPECIFIC --}}
|
|
|
|
<div class="flex05">{{localize "DS4.ArmorValueAbbr"}}</div> {{!-- SPECIFIC --}}
|
|
|
|
<div class="flex4">{{localize "DS4.Description"}}</div>
|
|
|
|
{{!-- add button --}}
|
|
|
|
<div class="item-controls"> {{!-- SPECIFIC --}}
|
|
|
|
<a class="item-control item-create" title="Create item" data-type="armor"><i class="fas fa-plus"></i>
|
|
|
|
{{localize "DS4.ActionAddItem"}}</a> {{!-- SPECIFIC --}}
|
|
|
|
</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 --}}
|
|
|
|
<div>{{itemData.quantity}}</div>
|
|
|
|
</div>
|
|
|
|
{{!-- name --}}
|
|
|
|
<h4 class="item-name flex2">{{item.name}}</h4>
|
|
|
|
{{!-- item specifics --}}
|
|
|
|
<div>{{lookup ../../config.armorMaterialTypes itemData.armorMaterialType}}</div> {{!-- SPECIFIC --}}
|
|
|
|
<div>{{lookup ../../config.armorTypes itemData.armorType}}</div> {{!-- SPECIFIC --}}
|
|
|
|
<div class="flex05">{{itemData.armorValue}}</div> {{!-- SPECIFIC --}}
|
|
|
|
{{!-- 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>
|
2020-12-28 20:38:02 +01:00
|
|
|
</div>
|