From 741cf87691107698b211c45df1f7392329e87f9a Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 08 三月 2022 10:36:22 +0800 Subject: [PATCH] 门锁功能、俄语优化 --- HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs b/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs index 86d9ff5..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> @@ -216,6 +218,22 @@ { 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); + } } /// <summary> -- Gitblit v1.8.0