mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-10-13 08:24:24 -05:00
DC6 to PNG item conversion. Read in order from docpath,d2modder img path
This commit is contained in:
13
res/app.js
13
res/app.js
@@ -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"];
|
||||
|
Reference in New Issue
Block a user