From f7d3739023f4d04a4ed2c30c13d9abf8da210da7 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 25 七月 2022 13:58:49 +0800
Subject: [PATCH] 兼容俄语

---
 HDL_ON/Entity/Function/Scene.cs |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/HDL_ON/Entity/Function/Scene.cs b/HDL_ON/Entity/Function/Scene.cs
index 684aad0..e5abff0 100644
--- a/HDL_ON/Entity/Function/Scene.cs
+++ b/HDL_ON/Entity/Function/Scene.cs
@@ -515,12 +515,19 @@
             var cctState = status.Find((obj) => obj.key == FunctionAttributeKey.CCT);
             if(cctState != null)
             {
-                sceneFunctionInfo += cctState.value + "%" + " ";
+                sceneFunctionInfo += cctState.value + "K" + " ";
             }
             var rgbState = status.Find((obj) => obj.key == FunctionAttributeKey.RGB);
             if(rgbState!=null)
             {
                 //sceneFunctionInfo += new  cctState.value + "%" + " ";
+            }
+
+           
+            var perAngle = status.Find((obj) => obj.key == FunctionAttributeKey.Angle);
+            if (perAngle != null)
+            {
+                sceneFunctionInfo += " " + perState.value + "掳";
             }
             return sceneFunctionInfo;
         }
@@ -539,6 +546,10 @@
         public int max = 0;
         public int min = 0;
 
+        /// <summary>
+        /// 灞炴�х殑鍊煎垪琛�
+        /// </summary>
+        public List<string> valueList = new List<string>();
         /// <summary>
         /// 灞炴�у悕绉版樉绀烘枃鏈�
         /// 涓嫳鏂囨樉绀�
@@ -581,6 +592,9 @@
                 case FunctionAttributeKey.FadeTime:
                     text = Language.StringByID(StringId.FadeSpeed);
                     break;
+                case "angle":
+                    text = Language.StringByID(StringId.Angle);
+                    break;
             }
             return text;
         }
@@ -610,6 +624,9 @@
                 case FunctionAttributeKey.CCT:
                     us = "K";
                     break;
+                case FunctionAttributeKey.Angle:
+                    us = "掳";
+                    break;
             }
             return us;
         }
@@ -636,6 +653,7 @@
                 case FunctionAttributeKey.RoomTemp:
                 case FunctionAttributeKey.Brightness:
                 case FunctionAttributeKey.Percent:
+                case FunctionAttributeKey.Angle:
                     int outT = 0;
                     int.TryParse(catchString,out outT);
                     if (outT < 0)

--
Gitblit v1.8.0