diff --git a/game/game.js b/game/game.js
index 3316844c8..06c5724e9 100644
--- a/game/game.js
+++ b/game/game.js
@@ -4054,6 +4054,7 @@
showPinyin:'拼音(样式一)',
showCodeIdentifier:'代码ID(样式一)',
showPinyin2:'拼音(样式二)',
+ showCodeIdentifier2:'代码ID(样式二)',
},
visualMenu:(node,link,name)=>{
node.classList.add('button','character');
@@ -4072,16 +4073,21 @@
if(link=='false') return;
const ruby=document.createElement('ruby');
ruby.textContent=name;
- const leftParenthesisRP=document.createElement('rp');
- leftParenthesisRP.textContent='(';
- ruby.appendChild(leftParenthesisRP);
const rt=document.createElement('rt');
rt.style.fontSize='smaller';
- rt.textContent=link=='showCodeIdentifier'?link:get.pinyin(name).join(' ');
- ruby.appendChild(rt);
- const rightParenthesisRP=document.createElement('rp');
- rightParenthesisRP.textContent=')';
- ruby.appendChild(rightParenthesisRP);
+ if(link=='showPinyin2'||link=='showCodeIdentifier2'){
+ rt.textContent=link=='showCodeIdentifier2'?'['+link+']':'['+get.pinyin(name)+']';
+ ruby.appendChild(rt);
+ }else{
+ const leftParenthesisRP=document.createElement('rp');
+ leftParenthesisRP.textContent='(';
+ ruby.appendChild(leftParenthesisRP);
+ rt.textContent=link=='showCodeIdentifier'?link:get.pinyin(name).join(' ');
+ ruby.appendChild(rt);
+ const rightParenthesisRP=document.createElement('rp');
+ rightParenthesisRP.textContent=')';
+ ruby.appendChild(rightParenthesisRP);
+ }
firstChild.innerHTML=ruby.outerHTML;
}
},
@@ -54424,11 +54430,12 @@
}
// 样式二
- if(lib.config.show_characternamepinyin=='showPinyin2'||lib.config.show_skillnamepinyin=='showPinyin2'){
+ if(lib.config.show_characternamepinyin=='showPinyin2'||lib.config.show_skillnamepinyin=='showPinyin2'||lib.config.show_characternamepinyin=='showCodeIdentifier2'||lib.config.show_skillnamepinyin=='showCodeIdentifier2'){
var intro=ui.create.div('.characterintro',get.characterIntro(name),uiintro);
- if(lib.config.show_characternamepinyin=='showPinyin2'){
+ if(lib.config.show_characternamepinyin=='showPinyin2'||lib.config.show_characternamepinyin=='showCodeIdentifier2'){
var charactername=get.rawName(name);
var characterpinyin=get.pinyin(charactername);
+ if(lib.config.show_characternamepinyin=='showCodeIdentifier2') characterpinyin=name;
var nameinfo=get.character(name);
var charactersex=get.translation(nameinfo[0]);
const charactergroups=get.is.double(name,true);
@@ -54464,8 +54471,9 @@
this.classList.add('active');
var skillname=get.translation(this.link);
var skilltranslationinfo=get.skillInfoTranslation(this.link);
- if(lib.config.show_skillnamepinyin=='showPinyin2'&&skillname!='阵亡'){
+ if((lib.config.show_skillnamepinyin=='showPinyin2'||lib.config.show_skillnamepinyin=='showCodeIdentifier2')&&skillname!='阵亡'){
var skillpinyin=get.pinyin(skillname);
+ if(lib.config.show_skillnamepinyin=='showCodeIdentifier2') skillpinyin=this.link;
intro2.innerHTML=''+skillname+''+''+'['+skillpinyin+']'+''+' '+skilltranslationinfo;
}else{
intro2.innerHTML=''+skillname+''+skilltranslationinfo;
@@ -54482,8 +54490,9 @@
for(var i=0;i
'+derivationname+''+''+'['+derivationpinyin+']'+''+' '+derivationtranslationinfo;
}else{
intro2.innerHTML+='
'+derivationname+''+derivationtranslationinfo;