Support handling vault-content events in the vault UI

This commit is contained in:
Trever Fischer
2012-11-17 21:33:42 -05:00
parent a306df9df0
commit 690ff8f21e
5 changed files with 124 additions and 33 deletions

View File

@@ -1,12 +1,12 @@
<div class="inventory-item-{{item.material}}">
{% if quantity > 0 %}
<div class="quantity">{{quantity}}</div>
<div class="inventory-item-{{item.material}}" data-material="{{item.material}}"
data-quantity="{{quantity}}" data-damage="{{item.damage}}">
<div class="quantity">
{% if quantity > 0 %}{{quantity}}
</div>
{% endif %}
<div class="name">{{item.name}}</div>
{% if item.damage %}
<div class="damage">
<div class="current"
style="width:{{item.damagePct}}%"></div>
</div>
{% endif %}
<div class="damage {% if not item.damage %}empty{%endif%}">
<div class="current"
style="width:{{item.damagePct}}%"></div>
</div>
</div>