Merge pull request #170 from lieren2023/lieren2023-patch-9

选项-显示新增显示扩展武将图片,设为默认开启
This commit is contained in:
Spmario233 2023-07-25 23:57:56 +08:00 committed by GitHub
commit dd4b01049d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -3625,6 +3625,12 @@
name:'显示分享扩展',
init:true,
unfrequent:true,
},
show_extensionimage:{
name:'显示扩展武将图片',
intro:'关闭扩展武将包仍加载扩展武将图片',
init:true,
unfrequent:true,
}
}
},
@ -7099,6 +7105,10 @@
else if(lib.character[name]){
nameinfo=lib.character[name];
}
else if(lib.config.show_extensionimage){
var pack=Object.keys(lib.characterPack).find(pack => Object.keys(lib.characterPack[pack]).contains(name));
if(pack) nameinfo=lib.characterPack[pack][name];
}
else if(name.indexOf('::')!=-1){
name=name.split('::');
modeimage=name[0];