| | |
| | | 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;
|
| | | }
|
| | | }
|
| | | }
|