From 0176b452ae8dd6432e75b18b6771424ce7aab672 Mon Sep 17 00:00:00 2001 From: ddg <1453062510@qq.com> Date: Fri, 26 Sep 2025 16:24:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9TreeViewPanel=E5=89=8D?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Application/daoNiaoShu/UI/SpeakPanel.cs | 23 ++++++++++++------ msc/2aae4e51c4e2dd03beb0e4c8c8d7affe/kivw.dat | Bin 197 -> 197 bytes 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Assets/_Scripts/Application/daoNiaoShu/UI/SpeakPanel.cs b/Assets/_Scripts/Application/daoNiaoShu/UI/SpeakPanel.cs index 237ed82..4257f21 100644 --- a/Assets/_Scripts/Application/daoNiaoShu/UI/SpeakPanel.cs +++ b/Assets/_Scripts/Application/daoNiaoShu/UI/SpeakPanel.cs @@ -52,7 +52,8 @@ namespace DongWuYiXue.DaoNiaoShu UIBehaviourExtension.OnEventButtonEvent(Voice.gameObject, EventTriggerType.PointerUp, onMicrophoneUp); userInput.onValidateInput += OnValidateInput; Send.onClick.AddListener(Submit); - tip.onClick.AddListener(() => { + tip.onClick.AddListener(() => + { userInput.text = tipTxt; clickTip = true; }); @@ -79,7 +80,8 @@ namespace DongWuYiXue.DaoNiaoShu { btnsContent.SetActive(false); userInput.readOnly = true; - ChatAI.Instance.SendData("用户处于," + stepName + ",用户口述了" + userInput.text + ",请你判断,正确返回true,错误返回false", str => { + ChatAI.Instance.SendData("用户处于," + stepName + ",用户口述了" + userInput.text + ",请你判断,正确返回true,错误返回false", str => + { if (str.Contains("true")) { if (clickTip) @@ -90,7 +92,8 @@ namespace DongWuYiXue.DaoNiaoShu } else { - GameManager.Instance.kaoheManager.AddScore(score, id, (s, t) => { + GameManager.Instance.kaoheManager.AddScore(score, id, (s, t) => + { GameManager.Instance.uiManager.GetUI().SetScore(s.ToString(), t.ToString()); }); Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true }); @@ -103,8 +106,10 @@ namespace DongWuYiXue.DaoNiaoShu Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = false }); if (MVC.GetModel().modeType == ModeType.ShiXun) { - Game.Instance.IEnumeratorManager.Run(0.1f, () => { - ChatUI.Instance.SendAINext("用户处于," + stepName + ",请你对用户口述内容进行解析,并且介绍本步骤的答案和意义", () => { + Game.Instance.IEnumeratorManager.Run(0.1f, () => + { + ChatUI.Instance.SendAINext("用户处于," + stepName + ",请你对用户口述内容进行解析,并且介绍本步骤的答案和意义", () => + { userInput.text = tipTxt; sendAction?.Invoke(false); }); @@ -115,7 +120,7 @@ namespace DongWuYiXue.DaoNiaoShu sendAction?.Invoke(false); } } - else if (str.Contains("error")) + else if (str.Contains("error") || string.IsNullOrEmpty(str)) { GameManager.Instance.fsm.AddScore(0, id); userInput.text = tipTxt; @@ -132,7 +137,8 @@ namespace DongWuYiXue.DaoNiaoShu public void ShowSpeakPanel(string stepName, string tipTxt, Vector2 v, int delayShowTime, int id, int score, Action callBack) { - coroutine = Game.Instance.IEnumeratorManager.Run((int)delayShowTime, () => { + coroutine = Game.Instance.IEnumeratorManager.Run((int)delayShowTime, () => + { this.id = id; this.tipTxt = tipTxt; this.score = score; @@ -172,7 +178,8 @@ namespace DongWuYiXue.DaoNiaoShu inputContent.SetActive(true); MicrophoneImg.SetActive(false); transform.FindFirst("boxing").enabled = false; - ChatAI.Instance.StopRecord(str => { + ChatAI.Instance.StopRecord(str => + { userInput.text += str; }); } diff --git a/msc/2aae4e51c4e2dd03beb0e4c8c8d7affe/kivw.dat b/msc/2aae4e51c4e2dd03beb0e4c8c8d7affe/kivw.dat index e39c5604091cb92dc1dbf296559f99c36cabb841..c3afd2cbd52e00c89dab4a38cf1e5b3e70ae21d5 100644 GIT binary patch delta 173 zcmV;e08; z8W#8DDqrQQii6^?4RN2_%}TS%SF8TW^lvK#e2ap5OwK^x-<{=L)Ei9PkNDwBR41OJ bM=2bUn8@L0fqDx z0d>GCnm=F}Xo6NV<(Ln1+yD+5bF6K^sA}%o{5;<=PFD=)9l)&H@f8#&i66L+bGs(G zaoL$CK-?J>;m-%i*kazEGv;=@)G2sVO@z#fN@$VY(vTGitb}SF!(atPgR!CK9-rdT b=_gO#Ahi+Ti@A2UFB8s&&!Np9*Gq*scY;pK