DC6 to PNG item conversion. Read in order from docpath,d2modder img path

This commit is contained in:
Hash Borgir
2022-06-24 22:36:35 -06:00
parent 40fcc4fdfb
commit b7fdaa585e
1708 changed files with 89 additions and 12 deletions

View File

@@ -456,9 +456,16 @@ $(document).ready(function () {
// update preview
//$('.item_stats div').hide().html("<p></p>");
invImg = "/img/items/" + data.invfile + ".png";
$(".item").attr("src", invImg);
invImg = docpath + '/img/items/' + data.invfile + ".png";
$(".item").attr("src", invImg);
$(".item").onerror = function () {
invImg = "/img/items/" + data.invfile + ".png";
this.src = invImg;
};
// invImg = "/img/items/" + data.invfile + ".png";
// $(".item").attr("src", invImg);
type = data["*type"];