|
|
|
@ -48,13 +48,15 @@ function loadInventory(reload) {
|
|
|
|
|
|
|
|
|
|
items.forEach(function (item) {
|
|
|
|
|
$("#item-bin").append('<div class="col-100 tablet-33 desktop-25 item-col">'
|
|
|
|
|
+ '<div class="item padding margin" data-uuids="' + item.uuids.join("|") + '" data-qty="' + item.qty + '">'
|
|
|
|
|
+ '<i class="item-icon ' + item.icon + ' text-color-' + item.color + '"></i><br />'
|
|
|
|
|
+ '<div class="card padding-half">'
|
|
|
|
|
+ (item.qty > 1 ? '<span class="badge color-green text-color-black padding">x' + item.qty + '</span>' : "")
|
|
|
|
|
+ '<div class="item card-content" data-uuids="' + item.uuids.join("|") + '" data-qty="' + item.qty + '">'
|
|
|
|
|
+ '<i class="item-icon ' + item.icon + ' text-color-' + item.color + '"></i><br />'
|
|
|
|
|
+ '<h3>' + item.name + '</h3>'
|
|
|
|
|
+ item.description
|
|
|
|
|
+ (item.classname == "healmagic" ? '<button class="button button-fill margin-top useitem-button">Use</button>' : '')
|
|
|
|
|
+ '</div>'
|
|
|
|
|
+ '</div>'
|
|
|
|
|
+ '</div>');
|
|
|
|
|
})
|
|
|
|
|
}, function (msg) {
|
|
|
|
|