| | |
| | | LoadEvent_SkipFunctionSetting(function); |
| | | }; |
| | | } |
| | | /// <summary> |
| | | /// 房间标题区域 |
| | | /// </summary> |
| | | /// <param name="room"></param> |
| | | /// <param name="skipAction"></param> |
| | | public void LoadTopView(Room room,Action skipAction) |
| | | { |
| | | //backAction = action; |
| | | |
| | | LoadTopView(); |
| | | |
| | | var btnSetting = new Button() |
| | | { |
| | | X = Application.GetRealWidth(337), |
| | | Y = Application.GetRealHeight(29), |
| | | Width = Application.GetMinRealAverage(28), |
| | | Height = Application.GetMinRealAverage(28), |
| | | UnSelectedImagePath = "Public/FuncInfoSetIcon.png", |
| | | }; |
| | | contentView.AddChidren(btnSetting); |
| | | |
| | | btnSetting.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | skipAction(); |
| | | }; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 向framelayout添加顶部区域,拥有添加图标的按钮 |
| | |
| | | btnAddIcon.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | LoadEvent_AddEvent(type, callBack); |
| | | |
| | | }; |
| | | } |
| | | |