public void SelectItem(UControl arg1) { if (arg1 == null) { return; } PreSelectIndex = CurSelectIndex; CurSelectIndex = arg1.Index; Data.OnClickSelected?.Invoke(CurSelectIndex); //刷新关联界面 if (LinkControl != null) { if (LinkControl is UScroll) { LinkControl.SetDirtyData(); } else { LinkControl.SetDirtyRefresh(); } } //刷星自生界面 if (IsLinkSelfView) { PUIView?.SetDirtyAll(); } //刷新自生 if (arg1 is UCheckBox) { Refresh(); } }
protected virtual void OnOpen() { if (IsRecord) { BaseUIMgr.AddRecordControl(this); } if (LayoutGroup != null) { PUIView?.SetDirtyLayout(LayoutGroup); } }
public virtual void SetDirtyShow() { if (!IsIndependent) { if (Parent != null) { Parent.SetDirtyShow(); } else if (PMutexer != null) { PMutexer.SetDirtyShow(); } else { CLog.Error("非独立组件无法调用SetDirtyShow,请通过顶级组件调用:{0}", GOName); } return; } IsDirtyShow = true; PUIView?.ActiveControlFixedUpdate(this); }
public void DettachFromPanelList() { PUIView?.RemovePanel(this); }