| | |
| | | /// <summary>
|
| | | /// 场景卡片控件
|
| | | /// </summary>
|
| | | public class SceneCardControl : FrameLayoutControl
|
| | | public class SceneCardControl : FrameLayoutStatuControl
|
| | | {
|
| | | #region ■ 变量声明___________________________
|
| | |
|
| | |
| | | //场景背景图控件
|
| | | this.btnSceneBackGroud = new PicViewControl(this.Width, this.Height, false);
|
| | | btnSceneBackGroud.UnSelectedImagePath = "Scene/Background.png";
|
| | | this.AddChidren(btnSceneBackGroud, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnSceneBackGroud, ChidrenBindMode.BindEvent);
|
| | |
|
| | | //延时时间显示控件
|
| | | this.btnTimeView = new NormalViewControl(HdlControlLogic.Current.GetPictrueRealSize(280), HdlControlLogic.Current.GetPictrueRealSize(63), false);
|
| | |
| | | {
|
| | | btnTimeView.Text= this.GetTimeString(i_scene.SceneDelayTime, hourText, minuText, secondText);
|
| | | }
|
| | | this.AddChidren(btnTimeView, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnTimeView, ChidrenBindMode.BindEvent);
|
| | |
|
| | | //时间图标控件
|
| | | this.btnTimeIcon = new IconViewControl(63);
|
| | |
| | | {
|
| | | //取消收藏
|
| | | HdlSceneLogic.Current.DeleteLoveScene(i_scene);
|
| | | if (HdlRoomLogic.Current.CurrentRoom.IsLove == true)
|
| | | if (HdlRoomLogic.Current.NowMainPageRoom.IsLove == true)
|
| | | {
|
| | | //如果当前房间是我的喜爱的话,回调卡片被删除的事件
|
| | | this.CardNeedRemoveEvent?.Invoke();
|
| | |
| | | btnSceneName.Y = HdlControlLogic.Current.GetPictrueRealSize(236);
|
| | | btnSceneName.IsBold = true;
|
| | | btnSceneName.TextColor = UserCenterColor.Current.White;
|
| | | this.AddChidren(btnSceneName, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnSceneName, ChidrenBindMode.BindEvent);
|
| | |
|
| | | //刷新控件状态
|
| | | this.RefreshControlInfo(i_scene);
|