This commit is contained in:
Tipx-L 2023-09-25 08:07:47 -07:00
parent 1aa0fdc8b8
commit 4616c2e1d8
1 changed files with 4 additions and 3 deletions

View File

@ -3987,6 +3987,7 @@
style.width='150px'; style.width='150px';
const firstChild=node.firstChild; const firstChild=node.firstChild;
firstChild.removeAttribute('class'); firstChild.removeAttribute('class');
firstChild.style.position='initial';
if(link=='false') return; if(link=='false') return;
const ruby=document.createElement('ruby'); const ruby=document.createElement('ruby');
ruby.textContent=name; ruby.textContent=name;
@ -53639,9 +53640,9 @@
characterIntroTable.appendChild(ruby); characterIntroTable.appendChild(ruby);
const characterSexDiv=ui.create.div('.character-sex',characterIntroTable),exInfoSex=exInfo&&exInfo.find(value=>value.indexOf('sex:')==0),characterSex=exInfoSex?exInfoSex.split(':').pop():nameInfo[0]; const characterSexDiv=ui.create.div('.character-sex',characterIntroTable),exInfoSex=exInfo&&exInfo.find(value=>value.indexOf('sex:')==0),characterSex=exInfoSex?exInfoSex.split(':').pop():nameInfo[0];
new Promise((resolve,reject)=>{ new Promise((resolve,reject)=>{
const imageName=`sex_${characterSex}`,info=lib.card[imageName]; const imageName=`sex_${characterSex}`,information=lib.card[imageName];
if(!info) resolve(`${lib.assetURL}image/card/${imageName}.png`); if(!information) resolve(`${lib.assetURL}image/card/${imageName}.png`);
const image=info.image; const image=information.image;
if(!image) resolve(`${lib.assetURL}image/card/${imageName}.png`); if(!image) resolve(`${lib.assetURL}image/card/${imageName}.png`);
else if(image.indexOf('db:')==0) game.getDB('file',image.slice(3)).then(resolve,reject); else if(image.indexOf('db:')==0) game.getDB('file',image.slice(3)).then(resolve,reject);
else if(image.indexOf('ext:')==0) resolve(`${lib.assetURL}${image.replace(/ext:/,'extension/')}`); else if(image.indexOf('ext:')==0) resolve(`${lib.assetURL}${image.replace(/ext:/,'extension/')}`);