lss
2022-05-26 a879e5dac4fc7cee747e25a63002c40462cdaef7
HDL_ON/UI/UI0-Public/TopViewDiv.cs
@@ -250,6 +250,35 @@
        }
        /// <summary>
        /// 房间标题区域
        /// </summary>
        /// <param name="room"></param>
        /// <param name="skipAction"></param>
        /// <param name="text"></param>
        public void LoadTopView_SettingText(Action skipAction,string text)
        {
            LoadTopView();
            var btnSetting = new Button()
            {
                X = Application.GetRealWidth(337-100),
                Y = Application.GetRealHeight(29),
                Width = Application.GetMinRealAverage(100),
                Height = Application.GetMinRealAverage(28),
                TextColor = CSS_Color.MainColor,
                TextSize = CSS_FontSize.TextFontSize,
                TextAlignment = TextAlignment.CenterRight,
                Text = text,
            };
            contentView.AddChidren(btnSetting);
            btnSetting.MouseUpEventHandler += (sender, e) =>
            {
                skipAction();
            };
        }
        /// <summary>
        /// 向framelayout添加顶部区域,拥有添加图标的按钮
        /// </summary>
        /// <param name="frame"></param>