| | |
| | | public event Action<Window> windowAfterCloseEvent;
|
| | | public event Action<Window> jumpWindowCloseEvent;
|
| | |
|
| | | List<string> closeAllIgnoreWindows = new List<string>() {
|
| | | "MessageWin", "NewBieWin", "NewItemGetWin", "AttributePromoteShowWin" ,"DungeonBeginCoolDownWin","DungeonFightWin","StatusTipWin"
|
| | | ,"ScrollTipWin","MarqueeWin","ExperienceOpenWin","TrumpetWin","BattlePrepareCoolDownWin","DungeonGradeWin","BattleHintWin",
|
| | | "TreasureDungeonMissionHintWin","FairyGrabBossHintWin","DungeonFairyFeastHintWin","PetAndMountPushWin","UpgradeWin","DungeonFairyLandWin"
|
| | | ,"GatherSoulDungeonHintWin"
|
| | | };
|
| | |
|
| | | UIRoot m_UIRoot;
|
| | | public UIRoot uiRoot {
|
| | | get {
|
| | |
| | | isIgnore = window.windowInfo.windowType <= WindowType.Base;
|
| | | break;
|
| | | case CloseAllIgnoreType.BaseAndCustom:
|
| | | isIgnore = window.windowInfo.windowType <= WindowType.Base || closeAllIgnoreWindows.Contains(name);
|
| | | isIgnore = window.windowInfo.windowType <= WindowType.Base || CloseAllIgnoreWindowConfig.IsIgnore(name);
|
| | | break;
|
| | | case CloseAllIgnoreType.System:
|
| | | isIgnore = window.windowInfo.windowType >= WindowType.System;
|
| | | break;
|
| | | case CloseAllIgnoreType.Custom:
|
| | | isIgnore = closeAllIgnoreWindows.Contains(name);
|
| | | isIgnore = CloseAllIgnoreWindowConfig.IsIgnore(name);
|
| | | break;
|
| | | case CloseAllIgnoreType.SystemAndCustom:
|
| | | isIgnore = window.windowInfo.windowType >= WindowType.System || closeAllIgnoreWindows.Contains(name);
|
| | | isIgnore = window.windowInfo.windowType >= WindowType.System || CloseAllIgnoreWindowConfig.IsIgnore(name);
|
| | | break;
|
| | | }
|
| | |
|
| | |
| | | isIgnore = windowNames.Contains(name) || window.windowInfo.windowType <= WindowType.Base;
|
| | | break;
|
| | | case CloseAllIgnoreType.BaseAndCustom:
|
| | | isIgnore = windowNames.Contains(name) || window.windowInfo.windowType <= WindowType.Base || closeAllIgnoreWindows.Contains(name);
|
| | | isIgnore = windowNames.Contains(name) || window.windowInfo.windowType <= WindowType.Base || CloseAllIgnoreWindowConfig.IsIgnore(name);
|
| | | break;
|
| | | case CloseAllIgnoreType.System:
|
| | | isIgnore = windowNames.Contains(name) || window.windowInfo.windowType >= WindowType.System;
|
| | | break;
|
| | | case CloseAllIgnoreType.Custom:
|
| | | isIgnore = windowNames.Contains(name) || closeAllIgnoreWindows.Contains(name);
|
| | | isIgnore = windowNames.Contains(name) || CloseAllIgnoreWindowConfig.IsIgnore(name);
|
| | | break;
|
| | | case CloseAllIgnoreType.SystemAndCustom:
|
| | | isIgnore = windowNames.Contains(name) || window.windowInfo.windowType >= WindowType.System || closeAllIgnoreWindows.Contains(name);
|
| | | isIgnore = windowNames.Contains(name) || window.windowInfo.windowType >= WindowType.System || CloseAllIgnoreWindowConfig.IsIgnore(name);
|
| | | break;
|
| | | }
|
| | |
|