public static void RefreshWidgetDrawCall(Transform tm) { UIWidget component = tm.gameObject.GetComponent <UIWidget>(); if (component != null) { component.SetDirty(); } IEnumerator enumerator = tm.GetEnumerator(); try { while (enumerator.MoveNext()) { object obj = enumerator.Current; Transform tm2 = (Transform)obj; DepthController.RefreshWidgetDrawCall(tm2); } } finally { IDisposable disposable; if ((disposable = (enumerator as IDisposable)) != null) { disposable.Dispose(); } } }
protected override void WindowOpened() { base.WindowOpened(); if (this.useCMDAnim) { DepthController.RefreshWidgetDrawCall(base.transform); } }
private void UpdateReacting() { if (this.useCMDAnim && this.isReActing && this.actCt == 0) { this.isReActing = false; DepthController.RefreshWidgetDrawCall(base.transform); if (this.actCBSetReOpendAction != null) { bool flag = this.actCBSetReOpendAction(0); if (flag) { this.actCBSetReOpendAction = null; } } } }