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 | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/HDL_ON/Entity/Function/Scene.cs b/HDL_ON/Entity/Function/Scene.cs index 75742dc..e5abff0 100644 --- a/HDL_ON/Entity/Function/Scene.cs +++ b/HDL_ON/Entity/Function/Scene.cs @@ -522,6 +522,13 @@ { //sceneFunctionInfo += new cctState.value + "%" + " "; } + + + var perAngle = status.Find((obj) => obj.key == FunctionAttributeKey.Angle); + if (perAngle != null) + { + sceneFunctionInfo += " " + perState.value + "掳"; + } return sceneFunctionInfo; } @@ -585,6 +592,9 @@ case FunctionAttributeKey.FadeTime: text = Language.StringByID(StringId.FadeSpeed); break; + case "angle": + text = Language.StringByID(StringId.Angle); + break; } return text; } @@ -614,6 +624,9 @@ case FunctionAttributeKey.CCT: us = "K"; break; + case FunctionAttributeKey.Angle: + us = "掳"; + break; } return us; } @@ -640,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