From 88b60a998a4cd8cae54e017e9ae31b644347e382 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 06 七月 2022 09:31:28 +0800 Subject: [PATCH] 在离线更新 --- HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 60 insertions(+), 0 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs b/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs index 8185dc9..852711b 100644 --- a/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs +++ b/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs @@ -100,6 +100,66 @@ { btnIcon.UnSelectedImagePath = "FunctionIcon/DoorLock/DoorLock.png"; } + else if (function.spk == SPK.HvacCac) + { + var btnHumidityIcon = new Button() + { + X = Application.GetRealWidth(51), + Y = Application.GetRealHeight(66), + Width = Application.GetRealWidth(17), + Height = Application.GetRealWidth(17), + UnSelectedImagePath = "Public/DeviceInfoIcon/HumidityIcon.png", + }; + bodyDiv.AddChidren(btnHumidityIcon); + var btnHumidityValues = new TextButton() + { + X = btnHumidityIcon.Right + Application.GetRealWidth(4), + Y = Application.GetRealHeight(66), + Gravity = Gravity.CenterVertical, + TextColor = CSS_Color.MainBackgroundColor, + TextSize = CSS_FontSize.PromptFontSize_FirstLevel, + Text = function.GetAttrState(FunctionAttributeKey.RoomHumidity) + "%", + TextAlignment = TextAlignment.CenterLeft, + }; + btnHumidityValues.Width = btnHumidityValues.GetTextWidth(); + bodyDiv.AddChidren(btnHumidityValues); + + Button btnTempIcon = new Button() + { + X = btnHumidityValues.Right + Application.GetRealWidth(20), + Gravity = Gravity.CenterVertical, + Width = Application.GetMinRealAverage(17), + Height = Application.GetMinRealAverage(17), + UnSelectedImagePath = "Public/DeviceInfoIcon/TempIcon.png", + }; + bodyDiv.AddChidren(btnTempIcon); + + var btnTempValues = new TextButton() + { + X = btnTempIcon.Right + Application.GetRealWidth(4), + Gravity = Gravity.CenterVertical, + TextColor = CSS_Color.MainBackgroundColor, + TextSize = CSS_FontSize.PromptFontSize_FirstLevel, + Text = function.GetAttrState(FunctionAttributeKey.RoomTemp) + "掳", + TextAlignment = TextAlignment.CenterLeft, + }; + btnTempValues.Width = btnTempValues.GetTextWidth(); + btnTempValues.Width = btnTempValues.GetTextWidth(); + bodyDiv.AddChidren(btnTempIcon); + + var btnJinMaoIcon = new Button() + { + X = Application.GetRealWidth(238), + Y = Application.GetRealHeight(64), + Width = Application.GetRealWidth(102), + Height = Application.GetRealHeight(29), + UnSelectedImagePath = "FunctionIcon/CAC/JinMaoIcon.png" + }; + bodyDiv.AddChidren(btnJinMaoIcon); + + + + } else { if (function.spk == SPK.ClothesHanger)//鏅捐。鏋� -- Gitblit v1.8.0