From cd4790cf2bc76ee632dabbea424ba61d8dafab8a Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期六, 22 十二月 2018 15:37:28 +0800
Subject: [PATCH] 5367 【前端】【1.4】聚魂功能开发

---
 System/Role/RoleModel.cs |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/System/Role/RoleModel.cs b/System/Role/RoleModel.cs
index 5340b68..3b79528 100644
--- a/System/Role/RoleModel.cs
+++ b/System/Role/RoleModel.cs
@@ -84,6 +84,27 @@
                 }
             }
         }
+
+        public void OpenRolePanel()
+        {
+            var functionOrder = 0;
+            var godWeaponModel = ModelCenter.Instance.GetModel<MagicianModel>();
+            var gatherSoulModel = ModelCenter.Instance.GetModel<GatheringSoulModel>();
+            if (MainRedDot.Instance.roleRedpoint.state != RedPointState.None)
+            {
+                functionOrder = 0;
+            }
+            else if (godWeaponModel.magicianRedpoint.state != RedPointState.None)
+            {
+                functionOrder = 3;
+            }
+            else if (gatherSoulModel.redpoint.state != RedPointState.None)
+            {
+                functionOrder = 4;
+            }
+            WindowCenter.Instance.Close<MainInterfaceWin>();
+            WindowCenter.Instance.Open<RolePanel>(false, functionOrder);
+        }
     }
 }
 

--
Gitblit v1.8.0