| | |
| | | /// </summary>
|
| | | /// <param name="i_SceneId">场景ID</param>
|
| | | /// <param name="i_SceneName">场景名</param>
|
| | | /// <param name="i_chidrenYaxis">子控件Y轴偏移量(真实值,有些界面需要这种特殊操作)</param>
|
| | | /// <param name="i_chidrenYaxis">子控件Y轴偏移量(【列表控件的rowSpace/2】即可,不懂默认为0即可)</param>
|
| | | public SceneRoomControl(int i_SceneId, string i_SceneName, int i_chidrenYaxis) : base(i_chidrenYaxis)
|
| | | {
|
| | | this.SceneId = i_SceneId;
|
| | |
| | | btnSceneName.TextSize = 15;
|
| | | //这个坐标有点特殊
|
| | | btnSceneName.Y = Application.GetRealHeight(12) + this.chidrenYaxis;
|
| | | frameTable.AddChidren(btnSceneName, ChidrenBindMode.BindEventOnly);
|
| | | frameTable.AddChidren(btnSceneName, ChidrenBindMode.BindEvent);
|
| | |
|
| | | //房间
|
| | | var btnRoom = frameTable.AddLeftCaption("", 600, 50, true);
|
| | |
| | | btnRoom.Y = Application.GetRealHeight(72) + this.chidrenYaxis;
|
| | | btnRoom.TextSize = 12;
|
| | | btnRoom.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | | frameTable.AddChidren(btnRoom, ChidrenBindMode.BindEventOnly);
|
| | | frameTable.AddChidren(btnRoom, ChidrenBindMode.BindEvent);
|
| | |
|
| | | var room = HdlRoomLogic.Current.GetRoomBySceneId(this.SceneId);
|
| | | if (room != null)
|