From 9748c4bf79e764157870d21847c9924a546d29a3 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期二, 29 一月 2019 11:16:39 +0800
Subject: [PATCH] 3335 代码优化
---
System/MainInterfacePanel/HighSettingFadeInFadeOut.cs | 120 ++++++++++++++++++++++++++++++------------------------------
1 files changed, 60 insertions(+), 60 deletions(-)
diff --git a/System/MainInterfacePanel/HighSettingFadeInFadeOut.cs b/System/MainInterfacePanel/HighSettingFadeInFadeOut.cs
index a4c55c1..7d3d449 100644
--- a/System/MainInterfacePanel/HighSettingFadeInFadeOut.cs
+++ b/System/MainInterfacePanel/HighSettingFadeInFadeOut.cs
@@ -533,70 +533,70 @@
if (GroupLowIndexList.Contains(highBtnRecord.Index))
{
int IndexOf = GroupLowIndexList.IndexOf(highBtnRecord.Index);
- if (IndexOf == 0)
+ switch (IndexOf)
{
- if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index) && OperationTimeHepler.Instance.SatisfyOpenCondition(Operation.FairyCeremony))//绮剧伒鐩涘吀
- {
- SetTranInBox(m_GroupIndex_Low.GetChild(i), highBtnRecord);
- }
- }
- else if (IndexOf == 1)
- {
- if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index) && OperationTimeHepler.Instance.SatisfyOpenCondition(Operation.NewYearFairyCeremony))//绮剧伒鐩涘吀
- {
- SetTranInBox(m_GroupIndex_Low.GetChild(i), highBtnRecord);
- }
- }
- else if (IndexOf == 2)
- {
- var _funcOrder = 0;
- if (OpenServerActivityCenter.Instance.IsAnyActivityOpen(out _funcOrder))//绮惧僵娲诲姩
- {
- if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index))
+
+ case 0:
+ if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index) && OperationTimeHepler.Instance.SatisfyOpenCondition(Operation.FairyCeremony))//绮剧伒鐩涘吀
{
SetTranInBox(m_GroupIndex_Low.GetChild(i), highBtnRecord);
}
- }
- }
- else if (IndexOf == 3)
- {
- bool Isopen = impactRankModel.IsInImpactRank;
- if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index) && Isopen)//鍏ㄦ皯鍐叉
- {
- SetTranInBox(m_GroupIndex_Low.GetChild(i), highBtnRecord);
- }
- }
- else if (IndexOf == 4)
- {
- bool Isopen = OpenServerModel.IsOpenFeatures();
- bool _isOpen = springFestival.IsOpenFeatures();
- if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index) && (Isopen || _isOpen))//7澶╁绀�
- {
- SetTranInBox(m_GroupIndex_Low.GetChild(i), highBtnRecord);
- }
- }
- else if (IndexOf == 5)
- {
- bool Isopen = OpenServerActivityCenter.Instance.IsActivityOpen(14);
- if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index) && Isopen)//闄愭椂鎶㈣喘
- {
- SetTranInBox(m_GroupIndex_Low.GetChild(i), highBtnRecord);
- }
- }
- else if (IndexOf == 6)
- {
- if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index) && limitedTimePackageItemModel.IsExpired())//闄愭椂绀煎寘
- {
- SetTranInBox(m_GroupIndex_Low.GetChild(i), highBtnRecord);
- }
- }
- else if (IndexOf == 7)
- {
- bool Isopen = OpenServerActivityCenter.Instance.IsActivityOpen(4);
- if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index) && Isopen)//闄愭椂鐗规儬
- {
- SetTranInBox(m_GroupIndex_Low.GetChild(i), highBtnRecord);
- }
+ break;
+ case 1:
+ if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index) && OperationTimeHepler.Instance.SatisfyOpenCondition(Operation.NewYearFairyCeremony))//绮剧伒鐩涘吀
+ {
+ SetTranInBox(m_GroupIndex_Low.GetChild(i), highBtnRecord);
+ }
+ break;
+ case 2:
+ var _funcOrder = 0;
+ if (OpenServerActivityCenter.Instance.IsAnyActivityOpen(out _funcOrder))//绮惧僵娲诲姩
+ {
+ if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index))
+ {
+ SetTranInBox(m_GroupIndex_Low.GetChild(i), highBtnRecord);
+ }
+ }
+ break;
+ case 3:
+ bool Isopen = impactRankModel.IsInImpactRank;
+ if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index) && Isopen)//鍏ㄦ皯鍐叉
+ {
+ SetTranInBox(m_GroupIndex_Low.GetChild(i), highBtnRecord);
+ }
+ break;
+ case 4:
+ bool Is_open = OpenServerModel.IsOpenFeatures();
+ bool _isOpen = springFestival.IsOpenFeatures();
+ if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index) && (Is_open || _isOpen))//7澶╁绀�
+ {
+ SetTranInBox(m_GroupIndex_Low.GetChild(i), highBtnRecord);
+ }
+ break;
+ case 5:
+ bool Isopen5 = OpenServerActivityCenter.Instance.IsActivityOpen(14);
+ if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index) && Isopen5)//闄愭椂鎶㈣喘
+ {
+ SetTranInBox(m_GroupIndex_Low.GetChild(i), highBtnRecord);
+ }
+ break;
+ case 6:
+ if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index) && limitedTimePackageItemModel.IsExpired())//闄愭椂绀煎寘
+ {
+ SetTranInBox(m_GroupIndex_Low.GetChild(i), highBtnRecord);
+ }
+ break;
+ case 7:
+ bool Isopen7 = OpenServerActivityCenter.Instance.IsActivityOpen(4);
+ if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index) && Isopen7)//闄愭椂鐗规儬
+ {
+ SetTranInBox(m_GroupIndex_Low.GetChild(i), highBtnRecord);
+ }
+ break;
+ case 8:
+ break;
+ default:
+ break;
}
}
}
--
Gitblit v1.8.0