Merge pull request #305 from lieren2023/lieren2023-patch-19
资料卡显示技能名拼音、武将名拼音等信息
This commit is contained in:
commit
edb65d8fc2
39
game/game.js
39
game/game.js
|
@ -3937,6 +3937,18 @@
|
|||
intro:'关闭扩展武将包仍加载扩展武将图片',
|
||||
init:true,
|
||||
unfrequent:true,
|
||||
},
|
||||
show_skillnamepinyin:{
|
||||
name:'显示技能名拼音',
|
||||
intro:'在武将资料卡显示技能名拼音',
|
||||
init:true,
|
||||
unfrequent:true,
|
||||
},
|
||||
show_characternamepinyin:{
|
||||
name:'显示武将名拼音等信息',
|
||||
intro:'在武将资料卡显示武将名及其拼音、性别、势力、体力等信息',
|
||||
init:true,
|
||||
unfrequent:true,
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -52690,6 +52702,15 @@
|
|||
fav.classList.add('active');
|
||||
}
|
||||
var intro=ui.create.div('.characterintro',get.characterIntro(name),uiintro);
|
||||
if(lib.config.show_characternamepinyin){
|
||||
var charactername=get.rawName(name);
|
||||
var characterpinyin=get.pinyin(charactername);
|
||||
var charactersex=get.translation(lib.character[name][0]);
|
||||
var charactergroup=get.translation(lib.character[name][1]);
|
||||
var characterhp=lib.character[name][2];
|
||||
var characterintroinfo=get.characterIntro(name);
|
||||
intro.innerHTML='<span style="font-weight:bold;margin-right:5px;line-height:2">'+charactername+'</span>'+'<span style="font-size:14px;font-family:SimHei,STHeiti,sans-serif">'+'['+characterpinyin+']'+'</span>'+' | '+charactersex+' | '+charactergroup+' | '+characterhp+'<br>'+characterintroinfo;
|
||||
}
|
||||
var intro2=ui.create.div('.characterintro.intro2',uiintro);
|
||||
var list=get.character(name,3)||[];
|
||||
var skills=ui.create.div('.characterskill',uiintro);
|
||||
|
@ -52708,7 +52729,14 @@
|
|||
current.classList.remove('active');
|
||||
}
|
||||
this.classList.add('active');
|
||||
intro2.innerHTML='<span style="font-weight:bold;margin-right:5px">'+get.translation(this.link)+'</span>'+get.skillInfoTranslation(this.link);
|
||||
var skillname=get.translation(this.link);
|
||||
var skilltranslationinfo=get.skillInfoTranslation(this.link);
|
||||
if(lib.config.show_skillnamepinyin&&skillname!='阵亡'){
|
||||
var skillpinyin=get.pinyin(skillname);
|
||||
intro2.innerHTML='<span style="font-weight:bold;margin-right:5px">'+skillname+'</span>'+'<span style="font-size:14px;font-family:SimHei,STHeiti,sans-serif">'+'['+skillpinyin+']'+'</span>'+' '+skilltranslationinfo;
|
||||
}else{
|
||||
intro2.innerHTML='<span style="font-weight:bold;margin-right:5px">'+skillname+'</span>'+skilltranslationinfo;
|
||||
}
|
||||
var info=get.info(this.link);
|
||||
var skill=this.link;
|
||||
var playername=this.linkname;
|
||||
|
@ -52719,7 +52747,14 @@
|
|||
derivation=[derivation];
|
||||
}
|
||||
for(var i=0;i<derivation.length;i++){
|
||||
intro2.innerHTML+='<br><br><span style="font-weight:bold;margin-right:5px">'+get.translation(derivation[i])+'</span>'+get.skillInfoTranslation(derivation[i]);
|
||||
var derivationname=get.translation(derivation[i]);
|
||||
var derivationtranslationinfo=get.skillInfoTranslation(derivation[i]);
|
||||
if(lib.config.show_skillnamepinyin&&derivationname.length<=5){
|
||||
var derivationpinyin=get.pinyin(derivationname);
|
||||
intro2.innerHTML+='<br><br><span style="font-weight:bold;margin-right:5px">'+derivationname+'</span>'+'<span style="font-size:14px;font-family:SimHei,STHeiti,sans-serif">'+'['+derivationpinyin+']'+'</span>'+' '+derivationtranslationinfo;
|
||||
}else{
|
||||
intro2.innerHTML+='<br><br><span style="font-weight:bold;margin-right:5px">'+derivationname+'</span>'+derivationtranslationinfo;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(info.alter){
|
||||
|
|
Loading…
Reference in New Issue