From 9c86dcdc62abfe9eb4a750ae1ee4e2bdad294da1 Mon Sep 17 00:00:00 2001
From: lieren2023 <131325076+lieren2023@users.noreply.github.com>
Date: Mon, 18 Sep 2023 12:06:33 +0800
Subject: [PATCH 2/3] update pinyinjs.js
---
game/pinyinjs.js | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/game/pinyinjs.js b/game/pinyinjs.js
index a0421a840..0a7290646 100644
--- a/game/pinyinjs.js
+++ b/game/pinyinjs.js
@@ -26,7 +26,7 @@ var pinyin_dict_polyphone = {
"刘辟": " pì",
"刘禅": " shàn",
"甄宓": " fú",
- "孙綝": " chēn",
+ "孙綝": "sūn chēn",
"李傕": " jué",
"李遗": " wèi",
"张嶷": " nì",
@@ -35,7 +35,7 @@ var pinyin_dict_polyphone = {
"吕蒙": " méng",
"于禁": " jìn",
"赵累": " lèi",
- "夏侯令女": " lìng ",
+ "夏侯令女": " hóu lìng nǚ",
"马日磾": " mì dī",
"凯撒": " sà",
@@ -87,6 +87,7 @@ var pinyin_dict_polyphone = {
"说盟": "shuì ",
"落宠": "luò ",
"落雁": "luò ",
+ "落雷": "luò ",
"贲育": "bēn ",
"造王": " wàng",
"舍宴": "shě ",
@@ -123,6 +124,7 @@ var pinyin_dict_polyphone = {
"耀令": " lìng",
"冠绝": "guàn ",
"先著": " zhuó",
+ "量反": "liàng ",
"乐动": "yuè ",
"血凰": "xuè ",
@@ -144,7 +146,7 @@ var pinyin_dict_polyphone = {
"月露": " lù",
"沾露": " lù",
"禁咒": "jìn ",
- "挟令": " lìng",
+ "挟令": "xié lìng",
// END
"撒贝宁": "sà ",
From 0b1f5c7d19cfeee78598bd5283852d065a2f821b Mon Sep 17 00:00:00 2001
From: lieren2023 <131325076+lieren2023@users.noreply.github.com>
Date: Mon, 18 Sep 2023 12:22:28 +0800
Subject: [PATCH 3/3] bug fix
---
game/game.js | 34 ++++++++++++++++++++--------------
1 file changed, 20 insertions(+), 14 deletions(-)
diff --git a/game/game.js b/game/game.js
index 9c08a985d..76b4c99e7 100644
--- a/game/game.js
+++ b/game/game.js
@@ -4265,6 +4265,10 @@
else{
map.redownload_game.hide();
}
+ },
+ menu_loadondemand:{
+ name:'菜单懒加载',
+ init:false,
}
// trim_game:{
// name:'隐藏非官方扩展包',
@@ -41192,7 +41196,7 @@
updateConnectDisplayMap();
}
};
- if(!lib.config.new_tutorial) node._initLink();
+ if(!lib.config.menu_loadondemand) node._initLink();
return node;
};
var modeorder=lib.config.modeorder||[];
@@ -41332,7 +41336,7 @@
var page=ui.create.div('');
var node=ui.create.div('.menubutton.large',info.name,position,clickMode);
node.mode=mode;
- //node._initLink=function(){
+ node._initLink=function(){
node.link=page;
var map={};
if(info.config){
@@ -41719,7 +41723,8 @@
info.config.update(config,map);
}
}
- //};
+ };
+ if(!lib.config.menu_loadondemand) node._initLink();
return node;
};
@@ -42275,7 +42280,7 @@
createDash('字','字体文件',dash3);
createDash('全','全部文件',dash4);
};
- if(!lib.config.new_tutorial) node._initLink();
+ if(!lib.config.menu_loadondemand) node._initLink();
}());
createModeConfig('others',start.firstChild);
@@ -42650,7 +42655,7 @@
}
}
};
- if(!lib.config.new_tutorial) node._initLink();
+ if(!lib.config.menu_loadondemand) node._initLink();
return node;
};
if(lib.config.show_favourite_menu&&!connectMenu&&Array.isArray(lib.config.favouriteCharacter)){
@@ -43119,7 +43124,7 @@
ui.create.div('.menuplaceholder',page);
}
};
- if(!lib.config.new_tutorial) node._initLink();
+ if(!lib.config.menu_loadondemand) node._initLink();
return node;
};
if(!connectMenu&&lib.config.show_ban_menu){
@@ -43401,7 +43406,7 @@
node.classList.add('smallfont');
}
node.mode=mode;
- //node._initLink=function(){
+ node._initLink=function(){
node.link=page;
for(var i in lib.extensionMenu[mode]){
if(i=='game') continue;
@@ -43436,7 +43441,8 @@
}
page.appendChild(cfgnode);
}
- //};
+ };
+ if(!lib.config.menu_loadondemand) node._initLink();
return node;
};
for(var i in lib.extensionMenu){
@@ -45597,7 +45603,7 @@
createDash('技','编辑技能',dash3);
createDash('码','编辑代码',dash4);
};
- if(!lib.config.new_tutorial) node._initLink();
+ if(!lib.config.menu_loadondemand) node._initLink();
}());
(function(){
var page=ui.create.div('');
@@ -45908,7 +45914,7 @@
};
if(_thisUpdate) node.update();
};
- if(!lib.config.new_tutorial) node._initLink();
+ if(!lib.config.menu_loadondemand) node._initLink();
}());
var active=start.firstChild.querySelector('.active');
if(!active){
@@ -47118,7 +47124,7 @@
pre.innerHTML='';
});
};
- if(!lib.config.new_tutorial) node._initLink();
+ if(!lib.config.menu_loadondemand) node._initLink();
}());
(function(){
var page=ui.create.div('');
@@ -47154,7 +47160,7 @@
}
}
};
- if(!lib.config.new_tutorial) node._initLink();
+ if(!lib.config.menu_loadondemand) node._initLink();
}());
(function(){
if(!window.indexedDB||window.nodb) return;
@@ -47343,7 +47349,7 @@
}
};
};
- if(!lib.config.new_tutorial) node._initLink();
+ if(!lib.config.menu_loadondemand) node._initLink();
}());
@@ -53111,7 +53117,7 @@
this.classList.add('active');
var skillname=get.translation(this.link);
var skilltranslationinfo=get.skillInfoTranslation(this.link);
- if(lib.config.show_skillnamepinyin&&skillname!='阵亡'&&skillname.indexOf('_faq')==-1){
+ if(lib.config.show_skillnamepinyin&&skillname!='阵亡'){
var skillpinyin=get.pinyin(skillname);
intro2.innerHTML=''+skillname+''+''+'['+skillpinyin+']'+''+' '+skilltranslationinfo;
}else{