| | |
| | | //清空bodyFrame |
| | | this.ClearBodyFrame(); |
| | | |
| | | //住宅的图标 |
| | | var btnHouseIcon = new PicViewControl(93, 93); |
| | | btnHouseIcon.Y = Application.GetRealHeight(127); |
| | | btnHouseIcon.X = Application.GetRealWidth(48); |
| | | btnHouseIcon.BackgroundColor = CSS_Color.MainColor; |
| | | bodyFrameLayout.AddChidren(btnHouseIcon); |
| | | //住宅名字 (以中间为基准,左右间距16) |
| | | var btnHouseName = new NormalViewControl(bodyFrameLayout.Width / 2 - Application.GetRealWidth(16 * 2), Application.GetRealHeight(48), false); |
| | | btnHouseName.X = Application.GetRealWidth(16); |
| | | btnHouseName.Y = btnHouseIcon.Bottom + Application.GetRealHeight(10); |
| | | btnHouseName.IsBold = true; |
| | | btnHouseName.IsMoreLines = true; |
| | | btnHouseName.TextAlignment = TextAlignment.TopCenter; |
| | | btnHouseName.TextSize = CSS_FontSize.SubheadingFontSize; |
| | | btnHouseName.Text = Entity.DB_ResidenceData.Instance.CurrentRegion.homeName; |
| | | bodyFrameLayout.AddChidren(btnHouseName); |
| | | //主人的图标 |
| | | var btnAdminIcon = new ImageView(); |
| | | btnAdminIcon.Y = Application.GetRealHeight(112); |
| | | btnAdminIcon.X = Application.GetRealWidth(48); |
| | | btnAdminIcon.Height = this.GetPictrueRealSize(70); |
| | | btnAdminIcon.Width = this.GetPictrueRealSize(70); |
| | | btnAdminIcon.Radius = (uint)this.GetPictrueRealSize(70) / 2; |
| | | btnAdminIcon.ImagePath = UserInfo.Current.headImagePagePath; |
| | | bodyFrameLayout.AddChidren(btnAdminIcon); |
| | | //主人名字 (以中间为基准,左右间距16) |
| | | var btnAdminName = new NormalViewControl((btnAdminIcon.Right + btnAdminIcon.X) - HdlControlResourse.XXLeft * 2, Application.GetRealHeight(48), false); |
| | | btnAdminName.X = HdlControlResourse.XXLeft; |
| | | btnAdminName.Y = btnAdminIcon.Bottom + Application.GetRealHeight(10); |
| | | btnAdminName.IsBold = true; |
| | | btnAdminName.IsMoreLines = true; |
| | | btnAdminName.TextAlignment = TextAlignment.TopCenter; |
| | | btnAdminName.TextSize = CSS_FontSize.SubheadingFontSize; |
| | | btnAdminName.Text = string.IsNullOrEmpty(UserInfo.Current.userName) == true ? UserInfo.Current.AccountString : UserInfo.Current.userName; |
| | | bodyFrameLayout.AddChidren(btnAdminName); |
| | | |
| | | //头像 |
| | | var imageByte = ImageUtlis.Current.ReadFile(this.accountResult.MemberHeadIcon); |
| | | var btnUserIcon = new ImageView(); |
| | | btnUserIcon.Y = btnHouseIcon.Y; |
| | | btnUserIcon.X = bodyFrameLayout.Width - Application.GetRealWidth(48) - this.GetPictrueRealSize(93); |
| | | btnUserIcon.Height = this.GetPictrueRealSize(93); |
| | | btnUserIcon.Width = this.GetPictrueRealSize(93); |
| | | btnUserIcon.Radius = (uint)this.GetPictrueRealSize(93) / 2; |
| | | btnUserIcon.Y = btnAdminIcon.Y; |
| | | btnUserIcon.X = bodyFrameLayout.Width - Application.GetRealWidth(48) - this.GetPictrueRealSize(70); |
| | | btnUserIcon.Height = this.GetPictrueRealSize(70); |
| | | btnUserIcon.Width = this.GetPictrueRealSize(70); |
| | | btnUserIcon.Radius = (uint)this.GetPictrueRealSize(70) / 2; |
| | | if (imageByte != null && imageByte.Length > 0) |
| | | { |
| | | btnUserIcon.ImageBytes = imageByte; |
| | |
| | | bodyFrameLayout.AddChidren(btnUserIcon); |
| | | |
| | | //昵称 (以中间为基准,左右间距50) |
| | | var btnName = new NormalViewControl(btnHouseName.Width, btnHouseName.Height, false); |
| | | btnName.X = bodyFrameLayout.Width - btnHouseName.X - btnHouseName.Width; |
| | | btnName.Y = btnHouseName.Y; |
| | | var btnName = new NormalViewControl(btnAdminName.Width, btnAdminName.Height, false); |
| | | btnName.X = bodyFrameLayout.Width - btnAdminName.X - btnAdminName.Width; |
| | | btnName.Y = btnAdminName.Y; |
| | | btnName.IsBold = true; |
| | | btnName.IsMoreLines = true; |
| | | btnName.TextAlignment = TextAlignment.TopCenter; |
| | |
| | | bodyFrameLayout.AddChidren(btnName); |
| | | |
| | | //开启连接的假想动画效果线程 |
| | | this.StartConcetionAnimeteThread(btnHouseIcon.Right + Application.GetRealWidth(10)); |
| | | this.StartConcetionAnimeteThread(btnAdminIcon.Right + Application.GetRealWidth(16)); |
| | | |
| | | //终止 |
| | | var btnCancel = new BottomClickButton(); |
| | | btnCancel.Y = Application.GetRealHeight(392); |
| | | btnCancel.Y = Application.GetRealHeight(519); |
| | | btnCancel.TextID = StringId.Terminate; |
| | | bodyFrameLayout.AddChidren(btnCancel); |
| | | btnCancel.ButtonClickEvent += (sender, e) => |
| | |
| | | |
| | | //初始化消息控件 |
| | | this.InitMsgControl(); |
| | | |
| | | } |
| | | |
| | | #endregion |
| | |
| | | { |
| | | //生成点号图样 |
| | | int pointXX = XX; |
| | | int pointWidth = Application.GetRealWidth(6); |
| | | int pointSpace = Application.GetRealWidth(5); |
| | | for (int i = 0; i < 7; i++) |
| | | int pointWidth = Application.GetRealWidth(4); |
| | | int pointSpace = Application.GetRealWidth(9); |
| | | for (int i = 0; i < 9; i++) |
| | | { |
| | | var btnPoint = new NormalViewControl(pointWidth, Application.GetRealHeight(4), false); |
| | | btnPoint.Radius = (uint)Application.GetRealHeight(4) / 2; |
| | | btnPoint.BackgroundColor = 0xffd5d5d5; |
| | | btnPoint.Y = Application.GetRealHeight(170); |
| | | var btnPoint = new NormalViewControl(pointWidth, pointWidth, false); |
| | | btnPoint.Radius = (uint)pointWidth / 2; |
| | | btnPoint.BackgroundColor = CSS_Color.PromptingColor1; |
| | | btnPoint.Y = Application.GetRealHeight(144); |
| | | btnPoint.X = pointXX; |
| | | bodyFrameLayout.AddChidren(btnPoint); |
| | | pointXX = btnPoint.Right + Application.GetRealWidth(5); |
| | | pointXX = btnPoint.Right + pointSpace; |
| | | } |
| | | |
| | | var listPoint = new List<int>(); |
| | | //跳动的间距 |
| | | int jumpSpace = pointWidth + pointSpace; |
| | | for (int i = 0; i < 7; i++) |
| | | for (int i = 0; i < 9; i++) |
| | | { |
| | | //X轴+Index*(图标大小+间距) |
| | | listPoint.Add(XX + i * jumpSpace); |
| | |
| | | |
| | | var btnRound = new IconViewControl(8); |
| | | btnRound.Radius = (uint)btnRound.IconSize / 2; |
| | | btnRound.BackgroundColor = CSS_Color.AuxiliaryColor2; |
| | | btnRound.BackgroundColor = CSS_Color.MainColor; |
| | | btnRound.X = listPoint[0] - (btnRound.IconSize - pointWidth) / 2; |
| | | btnRound.Y = Application.GetRealHeight(169); |
| | | btnRound.Y = Application.GetRealHeight(142); |
| | | bodyFrameLayout.AddChidren(btnRound); |
| | | |
| | | HdlThreadLogic.Current.RunThread(() => |
| | |
| | | |
| | | //正在过户给用户,请稍后... |
| | | var btnMsg = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(20), false); |
| | | btnMsg.Y = Application.GetRealHeight(300); |
| | | btnMsg.Y = Application.GetRealHeight(288); |
| | | btnMsg.TextAlignment = TextAlignment.Center; |
| | | btnMsg.TextSize = CSS_FontSize.PromptFontSize_FirstLevel; |
| | | btnMsg.Text = msg; |