From f7dc33c89b3b90a8cbc5999062519e58a5b8fa19 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期三, 26 九月 2018 19:33:05 +0800
Subject: [PATCH] 3335 修理窗口管理api
---
System/WindowJump/WindowJumpMgr.cs | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/System/WindowJump/WindowJumpMgr.cs b/System/WindowJump/WindowJumpMgr.cs
index 4798be0..65d1376 100644
--- a/System/WindowJump/WindowJumpMgr.cs
+++ b/System/WindowJump/WindowJumpMgr.cs
@@ -57,7 +57,7 @@
for (int i = 0; i < windowKeys.Count; i++)
{
var key = windowKeys[i];
- if (WindowCenter.Instance.CheckOpen(key) && key != "NewBieWin")
+ if (WindowCenter.Instance.IsOpen(key) && key != "NewBieWin")
{
if (!openWindows.ContainsKey(jumpPhase))
{
@@ -943,7 +943,7 @@
case "RebornWin":
if (DeadModel.playerIsDie)
{
- if (!WindowCenter.Instance.CheckOpen(openWinlist[i]))
+ if (!WindowCenter.Instance.IsOpen(openWinlist[i]))
{
WindowCenter.Instance.Get(openWinlist[i]).Open();
}
@@ -952,7 +952,7 @@
case "ReliveWin":
if (DeadModel.playerIsDie)
{
- if (!WindowCenter.Instance.CheckOpen(openWinlist[i]))
+ if (!WindowCenter.Instance.IsOpen(openWinlist[i]))
{
WindowCenter.Instance.Get(openWinlist[i]).Open();
}
@@ -961,14 +961,14 @@
case "ElderGodAreaExitWin":
if (DeadModel.playerIsDie)
{
- if (!WindowCenter.Instance.CheckOpen(openWinlist[i]))
+ if (!WindowCenter.Instance.IsOpen(openWinlist[i]))
{
WindowCenter.Instance.Get(openWinlist[i]).Open();
}
}
break;
default:
- if (!WindowCenter.Instance.CheckOpen(openWinlist[i]))
+ if (!WindowCenter.Instance.IsOpen(openWinlist[i]))
{
WindowCenter.Instance.Get(openWinlist[i]).Open();
}
@@ -982,7 +982,7 @@
case 2:
openWinlist = openWindows[1];
WindowCenter.Instance.CloseAll(WindowCenter.CloseAllIgnoreType.SystemAndCustom);
- if (!WindowCenter.Instance.CheckOpen<MainInterfaceWin>())
+ if (!WindowCenter.Instance.IsOpen<MainInterfaceWin>())
{
WindowCenter.Instance.Open<MainInterfaceWin>();
}
@@ -992,7 +992,7 @@
Window window = WindowCenter.Instance.Get(openWinlist[i]);
if (window != null && window.windowInfo.windowType == WindowType.Base)
{
- if (!WindowCenter.Instance.CheckOpen(openWinlist[i]))
+ if (!WindowCenter.Instance.IsOpen(openWinlist[i]))
{
WindowCenter.Instance.Get(openWinlist[i]).Open();
}
@@ -1005,7 +1005,7 @@
case "RebornWin":
if (SettingEffectMgr.Instance.isPlayerDie)
{
- if (!WindowCenter.Instance.CheckOpen(openWinlist[i]))
+ if (!WindowCenter.Instance.IsOpen(openWinlist[i]))
{
WindowCenter.Instance.Get(openWinlist[i]).Open();
}
@@ -1014,7 +1014,7 @@
case "ReliveWin":
if (SettingEffectMgr.Instance.isPlayerDie)
{
- if (!WindowCenter.Instance.CheckOpen(openWinlist[i]))
+ if (!WindowCenter.Instance.IsOpen(openWinlist[i]))
{
WindowCenter.Instance.Get(openWinlist[i]).Open();
}
@@ -1023,7 +1023,7 @@
case "ElderGodAreaExitWin":
if (SettingEffectMgr.Instance.isPlayerDie)
{
- if (!WindowCenter.Instance.CheckOpen(openWinlist[i]))
+ if (!WindowCenter.Instance.IsOpen(openWinlist[i]))
{
WindowCenter.Instance.Get(openWinlist[i]).Open();
}
@@ -1062,13 +1062,13 @@
private void SecondRefresh()
{
if (DeadModel.playerIsDie
- && WindowCenter.Instance.CheckOpen<MainInterfaceWin>()
+ && WindowCenter.Instance.IsOpen<MainInterfaceWin>()
&& dungeonModel.dungeonFightStage != DungeonFightStage.ExitPrepare)
{
- if (!WindowCenter.Instance.CheckOpen<RebornWin>()
- && !WindowCenter.Instance.CheckOpen<ReliveWin>()
- && !WindowCenter.Instance.CheckOpen<ElderGodAreaExitWin>()
- && !WindowCenter.Instance.CheckOpen<ElderGodAreaRebornWin>())
+ if (!WindowCenter.Instance.IsOpen<RebornWin>()
+ && !WindowCenter.Instance.IsOpen<ReliveWin>()
+ && !WindowCenter.Instance.IsOpen<ElderGodAreaExitWin>()
+ && !WindowCenter.Instance.IsOpen<ElderGodAreaRebornWin>())
{
ClearJumpData();
DeadModel.PlayerDie(PlayerDatas.Instance.baseData.PlayerID);
--
Gitblit v1.8.0