mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2025-09-11 02:57:36 +02:00
Making path of resources relative
This commit is contained in:
@@ -77,7 +77,7 @@ export default class Dialog
|
||||
|
||||
let htmlAvatarElement = document.createElement('div');
|
||||
htmlAvatarElement.id = 'tileset-avatar';
|
||||
htmlAvatarElement.style.backgroundImage = 'url("' + Setting.TILESET_LOCATION + GraphicSet[0].tileset + '")';
|
||||
htmlAvatarElement.style.backgroundImage = 'url("../' + Setting.TILESET_LOCATION + GraphicSet[0].tileset + '")';
|
||||
|
||||
let htmlListElement = document.createElement('div');
|
||||
htmlListElement.id = 'tileset-list';
|
||||
@@ -100,7 +100,7 @@ export default class Dialog
|
||||
|
||||
let htmlThumbnail = document.createElement('div');
|
||||
htmlThumbnail.classList.add('tileset-thumbnail');
|
||||
htmlThumbnail.style.backgroundImage = 'url("' + Setting.TILESET_LOCATION + graphicSet.tileset + '")';
|
||||
htmlThumbnail.style.backgroundImage = 'url("../' + Setting.TILESET_LOCATION + graphicSet.tileset + '")';
|
||||
htmlTilesetElement.appendChild(htmlThumbnail);
|
||||
|
||||
let htmlTitleElement = document.createElement('div');
|
||||
@@ -112,7 +112,7 @@ export default class Dialog
|
||||
'click',
|
||||
() => {
|
||||
htmlListElement.style.display = 'none';
|
||||
htmlAvatarElement.style.backgroundImage = 'url("' + Setting.TILESET_LOCATION + GraphicSet[index].tileset + '")';
|
||||
htmlAvatarElement.style.backgroundImage = 'url("../' + Setting.TILESET_LOCATION + GraphicSet[index].tileset + '")';
|
||||
window.dispatchEvent(new TilorswiftTilesetSelectedEvent(index));
|
||||
}
|
||||
);
|
||||
@@ -130,4 +130,4 @@ export default class Dialog
|
||||
{
|
||||
this.messageElement.innerText = message;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user