From fba3a6c55c4de790eaeee55f9897d668bb36dbb8 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期四, 13 十月 2022 13:55:21 +0800 Subject: [PATCH] 2022年10月13日13:55:00 --- HDL_ON/UI/UI2/1-HomePage/HomePage.cs | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs index e44aaf9..4f5815c 100644 --- a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs +++ b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs @@ -1047,10 +1047,10 @@ btnbg.SelectedImagePath = "Collection/FunctionArmOnbg.png"; } - if (!function.online) - { - btnbg.UnSelectedImagePath = "Collection/FunctionOfflineBg.png"; - } + //if (!function.online) + //{ + // btnbg.UnSelectedImagePath = "Collection/FunctionOfflineBg.png"; + //} } if (index == 0) @@ -1411,7 +1411,7 @@ function.SetAttrState("on_off", status); Dictionary<string, string> dic = new Dictionary<string, string>(); dic.Add("on_off", status); - Music.SendMethod.mMethod.SendControlCommand(function, dic); + Music.SendMethod.Current.SendControlCommand(function, dic); }; } @@ -1456,6 +1456,16 @@ btnState.SelectedTextColor = CSS_Color.MainBackgroundColor; btnState.TextColor = CSS_Color.MainColor;//PromptingColor1 } + + //绱ф�ユ眰鍔� + else if (function.spk == SPK.SensorHelp) + { + btnName.TextColor = CSS_Color.MainBackgroundColor; + btnName.SelectedTextColor = CSS_Color.MainBackgroundColor; + btnIcon.UnSelectedImagePath = $"FunctionIcon/Icon/HomeIcon/{function.IconName}_white.png"; + btnIcon.SelectedImagePath = $"FunctionIcon/Icon/HomeIcon/{function.IconName}_white.png"; + } + else { Button btnSwitch; -- Gitblit v1.8.0