protected virtual void OnClose(bool useGroup) { if (IsRecord) { BaseUIMgr.RemoveRecordView(this); } if (ParentView != null) { //关闭界面的时候自动刷新父级界面 if (ParentView.IsShow && !ParentView.IsRootView) { ParentView.SetDirtyAll(); } } if (DirtyAllWhenClose.Count > 0) { //关闭界面的时候自动刷新关联界面 foreach (var item in DirtyAllWhenClose) { item.SetDirtyAll(); } DirtyAllWhenClose.Clear(); } //不是RootView的话就关闭所有子界面 if (!IsRootView) { foreach (var item in SubViews) { item.Show(false); } } Callback_OnClose?.Invoke(this, useGroup); }
protected virtual void OnClose() { if (IsRecord) { BaseUIMgr.RemoveRecordControl(this); } }
protected override void OnDestroy() { Cleanup(); if (IsRecord) { BaseUIMgr.RemoveRecordControl(this); } base.OnDestroy(); }
public virtual void OnViewShow(bool b) { foreach (var item in StaticChilds) { item.OnViewShow(b); } if (IsRecord) { BaseUIMgr.RemoveRecordControl(this); } }
protected virtual void OnOpen() { if (IsRecord) { BaseUIMgr.AddRecordControl(this); } if (LayoutGroup != null) { PUIView?.SetDirtyLayout(LayoutGroup); } }
public override void OnDestroy() { if (IsRecord) { BaseUIMgr.RemoveRecordView(this); } if (IsShow && IsFullScreen) { BaseInputMgr.PushFullScreenState(false); } base.OnDestroy(); }
protected virtual void OnOpen(UView baseView, bool useGroup) { if (GO == null) { return; } if (IsActiveByShow) { GO.SetActive(true); } if (IsRecord) { BaseUIMgr.AddRecordView(this); } IsDragged = false; Callback_OnOpen?.Invoke(baseView, useGroup); }