From 7961e3a75a2180778706ce45eb6152c2a2ca392b Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 16 十二月 2020 19:41:25 +0800
Subject: [PATCH] 2020-12-16 1.成员取消收藏按钮显示

---
 HDL_ON/UI/UI2/FuntionControlView/Light/RGBPage.cs |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/RGBPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/RGBPage.cs
index 943346f..fedd418 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Light/RGBPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Light/RGBPage.cs
@@ -140,9 +140,14 @@
                 Height = Application.GetMinRealAverage(40),
                 SelectedImagePath = "Collection/CollectionIcon.png",
                 UnSelectedImagePath = "Collection/CollectionGrayIcon.png",
-                IsSelected = light.collection
+                IsSelected = light.collect
             };
-            controlView.AddChidren(btnCollection);
+            //controlView.AddChidren(btnCollection);
+            //2020-12-16 濡傛灉鏄垚鍛橀殣钘忔敹钘忓姛鑳�
+            if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare)
+            {
+                controlView.AddChidren(btnCollection);
+            }
 
             colorPicker = new ColorPicker()
             {
@@ -153,6 +158,10 @@
                 ColorImagePath = "FunctionIcon/Light/ColorWheel.png",
             };
             controlView.AddChidren(colorPicker);
+            if(light.trait_on_off.curValue.ToString() == "off")
+            {
+                colorPicker.ColorImagePath = "FunctionIcon/Light/ColorWheel.png";
+            }
 
             #region 浜害璋冭妭
             var btnBrightnessText = new Button()

--
Gitblit v1.8.0