This commit is contained in:
libccy 2016-03-22 18:27:31 +08:00
parent b5405c291c
commit 0785dd04ca
1 changed files with 7 additions and 4 deletions

View File

@ -22085,15 +22085,18 @@
ext=ext||'.jpg';
subfolder=subfolder||'default'
if(type){
if(type=='character'&&lib.character[name]&&lib.character[name][4]&&
lib.character[name][4].contains('dbimage')){
var dbimage=null;
if(type=='character'&&lib.character[name]&&lib.character[name][4]){
for(var i=0;i<lib.character[name][4].length;i++){
if(lib.character[name][4][i].indexOf('db:')==0){
this.setBackgroundDB(lib.character[name][4][i].slice(3));
return this;
dbimage=lib.character[name][4][i];break;
}
}
}
if(dbimage){
this.setBackgroundDB(dbimage.slice(3));
return this;
}
else if(type=='character'&&lib.customCharacters.contains(name)){
src="";
var node=this;