From bbcd6c2017762f9a0e6cf0ac6466bbf78f593b14 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期一, 19 四月 2021 09:36:40 +0800 Subject: [PATCH] Merge branch 'wxr4' into temp-wxr --- HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmCenterPage.cs | 128 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 128 insertions(+), 0 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmCenterPage.cs b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmCenterPage.cs new file mode 100644 index 0000000..d80b17d --- /dev/null +++ b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmCenterPage.cs @@ -0,0 +1,128 @@ +锘縰sing System; +using HDL_ON.UI.CSS; +using Shared; +namespace HDL_ON.UI.UI2.FuntionControlView.ArmCenter +{ + public class ArmCenterPage : FrameLayout + { + /// <summary> + /// 涓荤獥浣� + /// </summary> + FrameLayout bodyView; + public ArmCenterPage() + { + bodyView = this; + } + + public void LoadPage() + { + Action skipAction = () => { + + }; + + new TopViewDiv(bodyView, Language.StringByID(StringId.Setting)).LoadTopView_ArmCenter(skipAction); + + VerticalScrolViewLayout contentView = new VerticalScrolViewLayout() + { + Height = Application.GetRealHeight(603), + BackgroundColor = CSS_Color.MainBackgroundColor, + ScrollEnabled = false, + }; + bodyView.AddChidren(contentView); + + contentView.AddChidren(new Button() + { + Height =Application.GetRealWidth(32), + }); + + //瀹夐槻鐘舵�佽儗鏅浘 + Button btnArmTipIcon = new Button() + { + Gravity = Gravity.CenterHorizontal, + Width = Application.GetRealWidth(198), + Height = Application.GetRealWidth(198), + UnSelectedImagePath = "FunctionIcon/ArmCenter/NoDefenseBigIcon.png", + SelectedImagePath = "FunctionIcon/ArmCenter/InDefenseBigIcon.png", + }; + contentView.AddChidren(btnArmTipIcon); + + contentView.AddChidren(new Button() + { + Height = Application.GetRealWidth(16), + }); + + //鑷畾涔夊竷闃叉爣棰� + Button btnCustomDeploymentTitle = new Button() + { + X = Application.GetRealWidth(24), + Height = Application.GetRealWidth(54), + TextAlignment = TextAlignment.CenterLeft, + IsBold = true, + TextSize = CSS_FontSize.SubheadingFontSize, + TextColor = CSS_Color.FirstLevelTitleColor, + TextID = StringId.CustomDeployment, + }; + contentView.AddChidren(btnCustomDeploymentTitle); + + HorizontalScrolViewLayout customDeploymentView = new HorizontalScrolViewLayout() + { + X = Application.GetRealWidth(23), + Height = Application.GetRealWidth(80), + }; + contentView.AddChidren(customDeploymentView); + + + + + + + + } + } + + + /// <summary> + /// 瀹夐槻鑷畾涔夋帶浠� + /// </summary> + public class ArmDiyView + { + public FrameLayout ArmDiyButton; + + /// <summary> + /// + /// </summary> + /// <param name="IconPath">鍥剧墖璺緞</param> + /// <param name="Text">鏄剧ず鏂囨湰</param> + public ArmDiyView(string UnSelectedIconPath, string SelectedIconPath, string Text) + { + ArmDiyButton = new FrameLayout() + { + Width = Application.GetRealWidth(82), + Height = Application.GetRealWidth(80), + }; + + Button btnIcon = new Button() + { + Gravity = Gravity.CenterHorizontal, + Width = Application.GetRealWidth(40), + Height = Application.GetRealWidth(40), + UnSelectedImagePath = UnSelectedIconPath, + SelectedImagePath = SelectedIconPath, + }; + ArmDiyButton.AddChidren(btnIcon); + + Button btnText = new Button() + { + Y = Application.GetRealWidth(40), + Height = Application.GetRealWidth(41), + Text = Text, + TextAlignment = TextAlignment.Center, + TextColor = CSS_Color.TextualColor, + TextSize = CSS_FontSize.PromptFontSize_FirstLevel, + }; + ArmDiyButton.AddChidren(btnText); + + } + + } +} -- Gitblit v1.8.0