| | |
| | | {
|
| | | if (!initialized)
|
| | | {
|
| | | AddWindowPattern();
|
| | |
|
| | | if (windowInfo.clickEmptyToClose && emptyCloseButton == null)
|
| | | {
|
| | | AddEmptyCloseResponser();
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | private void AddWindowPattern()
|
| | | {
|
| | | var pattern = WindowConfig.GetWindowPattern(this.GetType().Name);
|
| | | if (!string.IsNullOrEmpty(pattern))
|
| | | {
|
| | | var instance = UIUtility.CreateWidget(pattern, "Pivot");
|
| | | instance.transform.SetParentEx(this.transform, Vector3.zero, Quaternion.identity, Vector3.one);
|
| | | }
|
| | | }
|
| | |
|
| | | private void AddEmptyCloseResponser()
|
| | | {
|
| | | var emptyClose = UIUtility.CreateWidget("InvisibleButton", "EmptyClose");
|