| | |
| | | {
|
| | | windowTimer = 0f;
|
| | | var parentName = string.Empty;
|
| | | if (WindowConfig.Get().FindParentWindow(this.gameObject.name, out parentName))
|
| | | if (WindowConfig.FindParentWindow(this.gameObject.name, out parentName))
|
| | | {
|
| | | var parentWindow = WindowCenter.Instance.Get(parentName);
|
| | | if (parentWindow != null)
|
| | | if (parentWindow is OneLevelWin)
|
| | | {
|
| | | parent = (parentWindow as OneLevelWin).subWindowContainer;
|
| | | }
|
| | | else
|
| | | {
|
| | | parent = parentWindow.transform as RectTransform;
|
| | | }
|
| | |
|
| | | if (parent != null)
|
| | | {
|
| | | rectTransform.MatchWhith(parent);
|
| | | }
|
| | | }
|
| | |
|
| | | OnPreOpen();
|
| | | WindowCenter.Instance.NotifyBeforeOpen(this);
|
| | | }
|
| | |
| | |
|
| | | try
|
| | | {
|
| | | var isChildWindow = WindowConfig.Get().IsChildWindow(this.gameObject.name);
|
| | | var isChildWindow = WindowConfig.IsChildWindow(this.gameObject.name);
|
| | | if (isChildWindow)
|
| | | {
|
| | | var parentName = string.Empty;
|
| | | WindowConfig.Get().FindParentWindow(this.gameObject.name, out parentName);
|
| | | WindowConfig.FindParentWindow(this.gameObject.name, out parentName);
|
| | | var parentWindow = WindowCenter.Instance.Get(parentName);
|
| | | if (parentWindow != null && parentWindow.executedActiveWindow)
|
| | | {
|
| | |
| | | {
|
| | | OnActived();
|
| | | executedActiveWindow = true;
|
| | | var childWindows = WindowConfig.Get().FindChildWindows(this.gameObject.name);
|
| | | var childWindows = WindowConfig.GetChildWindows(this.gameObject.name);
|
| | | var isParentWindow = childWindows != null;
|
| | | if (isParentWindow)
|
| | | {
|