From 6a8ea7d6e77dce65d1689e39824037627a59fbe0 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 03 一月 2024 13:48:40 +0800 Subject: [PATCH] 修复场景音乐无法控制特殊语音问题 --- HDL_ON/Entity/Function/Scene.cs | 23 +++++++++++++++-------- 1 files changed, 15 insertions(+), 8 deletions(-) diff --git a/HDL_ON/Entity/Function/Scene.cs b/HDL_ON/Entity/Function/Scene.cs index 9065ef5..1e92f33 100644 --- a/HDL_ON/Entity/Function/Scene.cs +++ b/HDL_ON/Entity/Function/Scene.cs @@ -87,6 +87,14 @@ /// 鏄惁鍏佽鍒犻櫎 /// </summary> public bool can_delete = true; + /// <summary> + /// 鏄惁鍏佽缂栬緫 + /// </summary> + public bool can_edit = true; + /// <summary> + /// 鏄惁鏄綉鍏虫湰鍦板満鏅� + /// </summary> + public bool local = false; /// <summary> /// 鍒涘缓璇ュ満鏅殑鐢ㄦ埛ID @@ -562,25 +570,24 @@ /// <returns></returns> private Function ConvertFunctionObject() { + Function temp = null; if (type == "7") { var logic = Logic.LogicList.Find((obj) => obj.sid == sid); if (logic != null) { - _localFunction = new Function() - { - name = logic.name - }; + temp = new Function(); + temp.name = logic.name; } } else { - var localFunction = FunctionList.List.GetDeviceFunctionList().Find((obj) => obj.sid == sid); - if (localFunction == null) + temp = FunctionList.List.GetDeviceFunctionList().Find((obj) => obj.sid == sid); + if (temp == null) { - localFunction = FunctionList.List.groupControls.Find((obj) => obj.sid == sid); + temp = FunctionList.List.groupControls.Find((obj) => obj.sid == sid); } } - return localFunction; + return temp; } -- Gitblit v1.8.0