From 4e0e743575b451e24c94096821b68322ebf7e869 Mon Sep 17 00:00:00 2001
From: lieren2023 <131325076+lieren2023@users.noreply.github.com>
Date: Fri, 8 Sep 2023 22:54:02 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=96=99=E5=8D=A1=E6=98=BE=E7=A4=BA?=
=?UTF-8?q?=E6=8A=80=E8=83=BD=E5=90=8D=E6=8B=BC=E9=9F=B3=E3=80=81=E6=AD=A6?=
=?UTF-8?q?=E5=B0=86=E5=90=8D=E6=8B=BC=E9=9F=B3=E7=AD=89=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
game/game.js | 27 +++++++++++++++++++++++++--
1 file changed, 25 insertions(+), 2 deletions(-)
diff --git a/game/game.js b/game/game.js
index 82a0bbbea..305a5a2cf 100644
--- a/game/game.js
+++ b/game/game.js
@@ -3848,6 +3848,18 @@
intro:'关闭扩展武将包仍加载扩展武将图片',
init:true,
unfrequent:true,
+ },
+ show_skillnamepinyin:{
+ name:'显示技能名拼音',
+ intro:'在武将资料卡显示技能名拼音',
+ init:true,
+ unfrequent:true,
+ },
+ show_characternamepinyin:{
+ name:'显示武将名拼音等信息',
+ intro:'在武将资料卡显示武将名及其拼音、性别、势力、体力等信息',
+ init:true,
+ unfrequent:true,
}
}
},
@@ -52102,6 +52114,9 @@
fav.classList.add('active');
}
var intro=ui.create.div('.characterintro',get.characterIntro(name),uiintro);
+ if(lib.config.show_characternamepinyin){
+ intro.innerHTML=''+get.rawName(name)+''+''+'['+get.pinyin(get.rawName(name))+']'+''+' | '+get.translation(lib.character[name][0])+' | '+get.translation(lib.character[name][1])+' | '+lib.character[name][2]+'
'+get.characterIntro(name);
+ }
var intro2=ui.create.div('.characterintro.intro2',uiintro);
var list=get.character(name,3)||[];
var skills=ui.create.div('.characterskill',uiintro);
@@ -52120,7 +52135,11 @@
current.classList.remove('active');
}
this.classList.add('active');
- intro2.innerHTML=''+get.translation(this.link)+''+get.skillInfoTranslation(this.link);
+ if(lib.config.show_skillnamepinyin){
+ intro2.innerHTML=''+get.translation(this.link)+''+''+'['+get.pinyin(get.translation(this.link))+']'+''+' '+get.skillInfoTranslation(this.link);
+ }else{
+ intro2.innerHTML=''+get.translation(this.link)+''+get.skillInfoTranslation(this.link);
+ }
var info=get.info(this.link);
var skill=this.link;
var playername=this.linkname;
@@ -52131,7 +52150,11 @@
derivation=[derivation];
}
for(var i=0;i
'+get.translation(derivation[i])+''+get.skillInfoTranslation(derivation[i]);
+ if(lib.config.show_skillnamepinyin){
+ intro2.innerHTML+='
'+get.translation(derivation[i])+''+''+'['+get.pinyin(get.translation(derivation[i]))+']'+''+' '+get.skillInfoTranslation(derivation[i]);
+ }else{
+ intro2.innerHTML+='
'+get.translation(derivation[i])+''+get.skillInfoTranslation(derivation[i]);
+ }
}
}
if(info.alter){