From 2a86bfa84ad4ed870703022ea765e29f16d25a08 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期一, 04 三月 2019 17:17:08 +0800
Subject: [PATCH] 6259 【前端】【2.0】技能升级功能
---
System/Skill/TalentModel.cs | 2 +-
System/MainInterfacePanel/LowSettingTip.cs | 22 ++++++++++++++++++++--
2 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/System/MainInterfacePanel/LowSettingTip.cs b/System/MainInterfacePanel/LowSettingTip.cs
index e041dc6..67cbeab 100644
--- a/System/MainInterfacePanel/LowSettingTip.cs
+++ b/System/MainInterfacePanel/LowSettingTip.cs
@@ -79,8 +79,26 @@
void SkillButton()
{
WindowCenter.Instance.Close<MainInterfaceWin>();
- WindowCenter.Instance.Open<SkillWin>();
-
+
+ var skillModel = ModelCenter.Instance.GetModel<SkillModel>();
+ var treasureSkillModel = ModelCenter.Instance.GetModel<TreasureSkillModel>();
+ var talentModel = ModelCenter.Instance.GetModel<TalentModel>();
+ if (skillModel.passSkillRedpoint.state == RedPointState.Simple)
+ {
+ WindowCenter.Instance.Open<SkillWin>(false, 1);
+ }
+ else if (treasureSkillModel.redpoint.state == RedPointState.Simple)
+ {
+ WindowCenter.Instance.Open<SkillWin>(false, 2);
+ }
+ else if (talentModel.talentRedpoint.state == RedPointState.Simple)
+ {
+ WindowCenter.Instance.Open<SkillWin>(false, 3);
+ }
+ else
+ {
+ WindowCenter.Instance.Open<SkillWin>();
+ }
//DesignDebug.Log("鎶�鑳芥寜閽�");
}
diff --git a/System/Skill/TalentModel.cs b/System/Skill/TalentModel.cs
index e1af9c3..76ea2bf 100644
--- a/System/Skill/TalentModel.cs
+++ b/System/Skill/TalentModel.cs
@@ -420,7 +420,7 @@
#endregion
#region 绾㈢偣
- Redpoint talentRedpoint = new Redpoint(103, 10303);
+ public Redpoint talentRedpoint = new Redpoint(103, 10303);
void UpdateRedpoint()
{
talentRedpoint.state = RedPointState.None;
--
Gitblit v1.8.0