From fdd7de7e0efb90b174c528c3f0a48cbaaaa7ce08 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 08 三月 2022 17:19:10 +0800 Subject: [PATCH] 备份 --- HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs b/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs index 9a7fe8d..098b041 100644 --- a/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs +++ b/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs @@ -160,6 +160,8 @@ LoadEvent_DivSkipEvent(); LoadEvent_FunctionCollection(); + + } /// <summary> @@ -215,6 +217,22 @@ if ( !SPK.ArmSensorSpkList().Contains(function.spk) && !SPK.EnvironDeviceSpkList().Contains( function.spk))//!DB_ResidenceData.Instance.CurrentRegion.isOtherShare && { bodyDiv.AddChidren(btnCollectionIcon); + } + + if (!function.online) + { + bodyDiv.BackgroundColor = CSS_Color.PromptingColor2; + var btnOffline = new Button() + { + X = Application.GetRealWidth(8 + 10 + 32), + Y = Application.GetRealHeight(28 + 24), + Height = Application.GetRealHeight(30), + TextID = StringId.DeviceOffline, + TextColor = CSS_Color.WarningColor, + TextSize = CSS_FontSize.PromptFontSize_FirstLevel, + TextAlignment = TextAlignment.CenterLeft + }; + bodyDiv.AddChidren(btnOffline); } } @@ -408,7 +426,7 @@ SelectedImagePath = "MusicIcon/nextSelected.png", }; bodyDiv.AddChidren(btnNext); - LoadEvent_ControlMusic(btnPlay, btnNext, btnPrev, function as A31MusicModel); + LoadEvent_ControlMusic(btnPlay, btnNext, btnPrev, function); #endregion } -- Gitblit v1.8.0