From 48c07e0a371f67b97abc7c2e61d7f23d060324fc Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 28 一月 2021 18:24:53 +0800
Subject: [PATCH] Merge branch 'dev-tzy' into NewFilePath
---
HDL_ON/Entity/Function/Light.cs | 36 +++++++++++++++++++++++++++++++++++-
1 files changed, 35 insertions(+), 1 deletions(-)
diff --git a/HDL_ON/Entity/Function/Light.cs b/HDL_ON/Entity/Function/Light.cs
index 34d5363..d430811 100644
--- a/HDL_ON/Entity/Function/Light.cs
+++ b/HDL_ON/Entity/Function/Light.cs
@@ -96,10 +96,44 @@
/// </summary>
[Newtonsoft.Json.JsonIgnore]
public int lastBrightness = 100;
+
+ int hadFadeTime = 99;
+ /// <summary>
+ /// 鏄惁鎷ユ湁娓愬彉鏃堕棿
+ /// </summary>
+ public bool HadFadeTime
+ {
+ get
+ {
+ if (hadFadeTime == 99)
+ {
+ var t = attributes.Find((obj) => obj.key == FunctionAttributeKey.FadeTime);
+ if (t == null)
+ {
+ hadFadeTime = 0;
+ return false;
+ }
+ else
+ {
+ hadFadeTime = 1;
+ return true;
+ }
+ }
+ if (hadFadeTime == 1)
+ {
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+ }
+ }
+
[Newtonsoft.Json.JsonIgnore]
FunctionAttributes trait_fadeTime;
/// <summary>
- /// 浜害鍊�
+ /// 娓愬彉鏃堕棿
/// </summary>
[Newtonsoft.Json.JsonIgnore]
public int fadeTime
--
Gitblit v1.8.0