| | |
| | | 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"
|
| | | ,"ScrollTipWin","MarqueeWin","ExperienceOpenWin","TrumpetWin","BattlePrepareCoolDownWin","DungeonGradeWin","BattleHintWin",
|
| | | "TreasureDungeonMissionHintWin",
|
| | | };
|
| | |
|
| | | UIRoot m_UIRoot;
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.Log(string.Format("{0} 窗口已经打开!", typeof(T)));
|
| | | DebugEx.Log(string.Format("{0} 窗口已经打开!", typeof(T)));
|
| | | }
|
| | | }
|
| | | else
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.Log(string.Format("{0} 窗口已经打开!", typeof(T)));
|
| | | DebugEx.Log(string.Format("{0} 窗口已经打开!", typeof(T)));
|
| | | }
|
| | |
|
| | | return (T)win;
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.LogFormat("没有找到窗口:{0}", typeof(T).Name);
|
| | | DebugEx.LogFormat("没有找到窗口:{0}", typeof(T).Name);
|
| | | return null;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.Log(string.Format("{0} 窗口已经关闭!", typeof(T)));
|
| | | DebugEx.Log(string.Format("{0} 窗口已经关闭!", typeof(T)));
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | asyncLoad.StopTask(typeof(T).Name);
|
| | | DesignDebug.Log(string.Format("{0} 窗口无法获得!", typeof(T)));
|
| | | DebugEx.Log(string.Format("{0} 窗口无法获得!", typeof(T)));
|
| | | }
|
| | |
|
| | | return win;
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.Log(string.Format("{0} 窗口已经关闭!", typeof(T)));
|
| | | DebugEx.Log(string.Format("{0} 窗口已经关闭!", typeof(T)));
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | asyncLoad.StopTask(typeof(T).Name);
|
| | | DesignDebug.Log(string.Format("{0} 窗口无法获得!", typeof(T)));
|
| | | DebugEx.Log(string.Format("{0} 窗口无法获得!", typeof(T)));
|
| | | }
|
| | |
|
| | | return win;
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.Log(string.Format("{0} 窗口无法获得!", typeof(T)));
|
| | | DebugEx.Log(string.Format("{0} 窗口无法获得!", typeof(T)));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.Log(string.Format("{0} 窗口已经打开!", typeof(T)));
|
| | | DebugEx.Log(string.Format("{0} 窗口已经打开!", typeof(T)));
|
| | | }
|
| | |
|
| | | return (T)win;
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.Log(string.Format("{0} 窗口已经打开!", typeof(T)));
|
| | | DebugEx.Log(string.Format("{0} 窗口已经打开!", typeof(T)));
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.LogFormat("无法获得 {0} 的资源!", prefabName);
|
| | | DebugEx.LogFormat("无法获得 {0} 的资源!", prefabName);
|
| | | }
|
| | |
|
| | | return window;
|