| | |
| | | } |
| | | |
| | | /// <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> |