From a7debf97f52b5f473c3316ecd06bf48f44b65406 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 09 八月 2023 18:03:04 +0800 Subject: [PATCH] 温度类型,炫彩起始颜色 --- HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs | 19 ++++++++++++++++--- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs index 8098182..4373932 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs @@ -493,9 +493,22 @@ //灏唖pk瀹炰綋閲岄潰鐨刴in max鍊兼斁鍏ュ満鏅姛鑳藉疄浣撻噷锛岃涓嶇劧鏁版嵁浼氫涪澶� 2022-06-21 16:06:45 foreach (var tt in scenefunction.status) { - tt.min = scenefunction.localFunction.GetAttribute(tt.key).min; - tt.max = scenefunction.localFunction.GetAttribute(tt.key).max; - tt.valueList = scenefunction.localFunction.GetAttribute(tt.key).value; + var attr = scenefunction.localFunction.GetAttribute(tt.key); + if(attr == null) + { + continue; + } + tt.min = attr.min; + tt.max = attr.max; + tt.valueList = attr.value; + if(tt.key == FunctionAttributeKey.SetTemp) + { + var tempType = scenefunction.localFunction.GetAttribute(FunctionAttributeKey.TempType); + if(tempType != null) + { + tt.UintString = tempType.unit; + } + } } }catch(Exception ex) { -- Gitblit v1.8.0