From dc15005824a2cd2395fc49c05d9dd3fa6665a011 Mon Sep 17 00:00:00 2001 From: lieren2023 <131325076+lieren2023@users.noreply.github.com> Date: Fri, 10 May 2024 23:39:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=96=99=E5=8D=A1=E4=BF=AE=E6=94=B9-?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noname/ui/click/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/noname/ui/click/index.js b/noname/ui/click/index.js index c469f35dc..c893f6dad 100644 --- a/noname/ui/click/index.js +++ b/noname/ui/click/index.js @@ -3470,8 +3470,7 @@ export class Click { clickSkill.call(skillnode, "init"); }); } - // if(e!=='init') game.trySkillAudio(this.link,playername); - // 有bug,先用旧版 + if (lib.config.background_speak && e !== "init") { let audio, skillnode = this; @@ -3628,6 +3627,7 @@ export class Click { const htmlParser = document.createElement("body"); htmlParser.innerHTML = get.characterIntro(name); Array.from(htmlParser.childNodes).forEach((value) => introduction.appendChild(value)); + //添加技能语音部分 const dieAudios = game.parseDieTextMap(name).filter(i => "text" in i); const skillAudioMap = new Map(); @@ -3671,6 +3671,7 @@ export class Click { }); } } + const introduction2 = ui.create.div(".characterintro.intro2", uiintro); var list = get.character(name).skills; var skills = ui.create.div(".characterskill", uiintro); @@ -3795,8 +3796,7 @@ export class Click { clickSkill.call(skillnode, "init"); }); } - // if(e!=='init') game.trySkillAudio(this.link,playername); - // 有bug,先用旧版 + if (lib.config.background_speak && e !== "init") { let audio, skillnode = this;