allow texture streaming(png, jpeg for now) and use texture url instead of passing textures in base64
This commit is contained in:
parent
1d63e3d983
commit
d29a2a8590
5 changed files with 47 additions and 17 deletions
|
@ -145,7 +145,7 @@ tavern.onspawntoken = (t) => {
|
|||
token.style.left = `${t.x * GRID_SIZE}px`;
|
||||
token.token_id = t.token_id;
|
||||
token.innerHTML = `
|
||||
<img src='data:image/jpg;base64,${t.img}' ondragstart='return false;'>
|
||||
<img src='${t.img}' ondragstart='return false;'>
|
||||
`
|
||||
token.onmousedown = (e) => {
|
||||
token.classList.remove('token-transition');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue