From 4b299a6af2dacff0c295ced4b62665c04beba720 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期三, 15 五月 2019 15:37:12 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/Skill/ExpertSkillSelectWin.cs | 39 ++++++++++++++++++++++++++++++---------
1 files changed, 30 insertions(+), 9 deletions(-)
diff --git a/System/Skill/ExpertSkillSelectWin.cs b/System/Skill/ExpertSkillSelectWin.cs
index cf3dbea..a614261 100644
--- a/System/Skill/ExpertSkillSelectWin.cs
+++ b/System/Skill/ExpertSkillSelectWin.cs
@@ -19,11 +19,13 @@
[SerializeField] UIAlphaTween m_AlphaTween;
[SerializeField] Image m_SkillIcon;
[SerializeField] Text m_SkillName;
- [SerializeField] Text m_Reiki;
+ [SerializeField] Image m_ReikiIcon;
[SerializeField] Text m_ReikiPoint;
[SerializeField] ExpertSkillCyclicScroll m_CyclicScroll;
[SerializeField] LayoutElement m_LayoutElement;
[SerializeField] Button m_Active;
+ [SerializeField] Text m_ActiveLabel;
+ [SerializeField] UIEffect m_ActiveEffect;
[SerializeField] Button m_Select;
[SerializeField] Button m_Close1;
[SerializeField] Button m_Close2;
@@ -160,8 +162,7 @@
var property = skillConfig.RequireProperty();
var propertyConfig = PlayerPropertyConfig.Get(property);
- m_Reiki.text = propertyConfig.Name;
- m_Reiki.color = UIHelper.GetPropertyColor(property);
+ m_ReikiIcon.SetSprite("XT_LG_" + property);
var propertyValueLabel = UIHelper.AppendColor(TextColType.Green, UIHelper.GetPropertyValue((PropertyType)property).ToString());
m_ReikiPoint.text = string.Format("鎴戠殑{0}锛歿1}",
@@ -230,11 +231,26 @@
TreasurePotential expert;
if (model.TryGetPotential(selectExpert, out expert))
{
- var satisfyActive = model.SatisfyActiveExpert(selectExpert);
+ var error = 0;
+ var satisfyActive = model.SatisfyActiveExpert(selectExpert, out error);
var activeLevel = 0;
model.TryGetExpertActiveLevel(selectExpert, out activeLevel);
m_Select.gameObject.SetActive(activeLevel > 0 && !satisfyActive && !used);
- m_Active.gameObject.SetActive(satisfyActive);
+ m_Active.gameObject.SetActive(satisfyActive || error == 3);
+
+ m_Active.SetColorful(m_ActiveLabel, satisfyActive);
+
+ if (satisfyActive || error == 3)
+ {
+ if (satisfyActive && !m_ActiveEffect.IsPlaying)
+ {
+ m_ActiveEffect.Play();
+ }
+ else if (!satisfyActive && m_ActiveEffect.IsPlaying)
+ {
+ m_ActiveEffect.StopImediatly();
+ }
+ }
}
}
@@ -259,6 +275,14 @@
{
if (m_CyclicScroll.IsPlaying)
{
+ return;
+ }
+ var error = 0;
+ var satisfyActive = model.SatisfyActiveExpert(selectExpert, out error);
+ if (!satisfyActive)
+ {
+ ExpertSkillActiveRemindWin.skillId = selectExpert;
+ WindowCenter.Instance.Open<ExpertSkillActiveRemindWin>();
return;
}
var pak = new CA516_tagCMSelectSkillElement();
@@ -304,7 +328,6 @@
[SerializeField] ImageEx m_Icon;
[SerializeField] Text m_SkillName;
[SerializeField] ImageEx m_ReikiBottom;
- [SerializeField] Text m_Reiki;
[SerializeField] Transform m_ContainerSelect;
[SerializeField] Text m_Use;
[SerializeField] Text m_Limit;
@@ -325,9 +348,7 @@
m_SkillName.text = skillConfig.SkillName;
var property = skillConfig.RequireProperty();
- var propertyConfig = PlayerPropertyConfig.Get(property);
- m_Reiki.text = propertyConfig.Name;
- m_Reiki.color = unlock ? UIHelper.GetPropertyColor(property) : UIHelper.s_Gray;
+ m_ReikiBottom.SetSprite("XT_LGDT_" + property);
var selectExpertSkill = 0;
model.TryGetExpertSkill(ExpertSkillSelectWin.selectSkillId, out selectExpertSkill);
--
Gitblit v1.8.0