From 2d3f6e78f55c9f68bdba493df58addddc02315c1 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期一, 20 八月 2018 11:57:34 +0800
Subject: [PATCH] 1889 【前端】神兽地界及界面相关

---
 System/FindPrecious/LootPreciousFrameWin.cs |   24 +++++++++++++++++++++---
 1 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/System/FindPrecious/LootPreciousFrameWin.cs b/System/FindPrecious/LootPreciousFrameWin.cs
index e7589ec..addff0d 100644
--- a/System/FindPrecious/LootPreciousFrameWin.cs
+++ b/System/FindPrecious/LootPreciousFrameWin.cs
@@ -14,6 +14,7 @@
 
         [SerializeField] FunctionButtonGroup m_FunctionGroup;
         [SerializeField] FunctionButton m_DemonJar;
+        [SerializeField] FunctionButton m_DogzDungeon;
 
         [SerializeField] Button m_Left;
         [SerializeField] Button m_Right;
@@ -27,7 +28,7 @@
         protected override void AddListeners()
         {
             m_DemonJar.AddListener(ShowDemonJar);
-
+            m_DogzDungeon.AddListener(ShowDogzDungeon);
             m_Left.AddListener(ShowLastFunction);
             m_Right.AddListener(ShowNextFunction);
             m_Close.AddListener(CloseClick);
@@ -45,7 +46,7 @@
         protected override void OnPreClose()
         {
             CloseSubWindows();
-            if(!WindowJumpMgr.Instance.IsJumpState)
+            if (!WindowJumpMgr.Instance.IsJumpState)
             {
                 WindowCenter.Instance.Open<MainInterfaceWin>();
             }
@@ -53,7 +54,7 @@
 
         protected override void OnAfterClose()
         {
-          
+
         }
 
         protected override void OnActived()
@@ -83,9 +84,26 @@
             functionOrder = m_DemonJar.order;
         }
 
+        private void ShowDogzDungeon()
+        {
+            CloseSubWindows();
+
+            if (windowState == WindowState.Opened)
+            {
+                WindowCenter.Instance.OpenWithoutAnimation<DogzDungeonWin>();
+            }
+            else
+            {
+                WindowCenter.Instance.Open<DogzDungeonWin>();
+            }
+
+            functionOrder = m_DogzDungeon.order;
+        }
+
         private void CloseSubWindows()
         {
             WindowCenter.Instance.CloseImmediately<DemonJarWin>();
+            WindowCenter.Instance.CloseImmediately<DogzDungeonWin>();
         }
 
         private void ShowLastFunction()

--
Gitblit v1.8.0