From e106e96750f2223ec47d59ccc8dadd75299c1715 Mon Sep 17 00:00:00 2001 From: lieren2023 <131325076+lieren2023@users.noreply.github.com> Date: Fri, 29 Sep 2023 23:33:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=98=BE=E7=A4=BA=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E6=80=A7=E5=88=AB=E5=92=8C=E6=98=BE=E7=A4=BA=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E5=8A=BF=E5=8A=9B=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/game.js | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/game/game.js b/game/game.js index e13eb5c2a..c066497cd 100644 --- a/game/game.js +++ b/game/game.js @@ -3856,6 +3856,18 @@ } } }, + show_sex:{ + name:'显示角色性别', + intro:'在角色的右键菜单中显示角色性别', + init:true, + unfrequent:true + }, + show_group:{ + name:'显示角色势力', + intro:'在角色的右键菜单中显示角色势力', + init:true, + unfrequent:true + }, show_replay:{ name:'显示重来按钮', init:false, @@ -58198,9 +58210,9 @@ } let capt=get.translation(node.name); const characterInfo=get.character(node.name),sex=node.sex||characterInfo[0]; - if(sex) capt+=`  ${sex=='none'?'无':get.translation(sex)}`; + if(sex&&lib.config.show_sex) capt+=`  ${sex=='none'?'无':get.translation(sex)}`; const group=lib.group.includes(node.group)?node.group:characterInfo[1]; - if(group) capt+=`  ${get.translation(group)}`; + if(group&&lib.config.show_group) capt+=`  ${get.translation(group)}`; uiintro.add(capt); if(lib.characterTitle[node.name]){ @@ -58909,9 +58921,9 @@ let capt=get.translation(character); if(characterInfo){ const infoSex=characterInfo[0]; - if(infoSex) capt+=`  ${infoSex=='none'?'无':lib.translate[infoSex]}`; + if(infoSex&&lib.config.show_sex) capt+=`  ${infoSex=='none'?'无':lib.translate[infoSex]}`; const infoGroup=characterInfo[1]; - if(infoGroup){ + if(infoGroup&&lib.config.show_group){ const group=get.is.double(character,true); if(group) capt+=`  ${group.map(value=>get.translation(value)).join('/')}`; else capt+=`  ${lib.translate[infoGroup]}`;