| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class ExpertSkillSelectWin : Window
|
| | | {
|
| | | [SerializeField] Image m_SkillIcon;
|
| | |
| | |
|
| | | bool firstActive = false;
|
| | |
|
| | | bool openByTreasure = false;
|
| | | bool openFromOtherWindow = false;
|
| | |
|
| | | List<int> datas = new List<int>();
|
| | |
|
| | |
| | | protected override void OnPreOpen()
|
| | | {
|
| | | model.expertActiveRefresh += ExpertActiveRefresh;
|
| | | openByTreasure = WindowCenter.Instance.IsOpen<TreasureBaseWin>();
|
| | | openFromOtherWindow = WindowCenter.Instance.IsOpen<TreasureBaseWin>()
|
| | | || WindowCenter.Instance.IsOpen("SkillMatchWin");
|
| | | firstActive = false;
|
| | | }
|
| | |
|
| | |
| | | var satisfyActive = model.SatisfyActiveExpert(skillId, out error);
|
| | |
|
| | | m_Active.gameObject.SetActive((satisfyActive || error == 3)
|
| | | && !firstActive && !openByTreasure);
|
| | | && !firstActive && !openFromOtherWindow);
|
| | |
|
| | | if ((satisfyActive || error == 3)
|
| | | && !firstActive && !openByTreasure)
|
| | | && !firstActive && !openFromOtherWindow)
|
| | | {
|
| | | if (satisfyActive && !m_ActiveEffect.IsPlaying)
|
| | | {
|