|
@@ -1,3 +1,4 @@
|
|
|
+using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using ET;
|
|
@@ -39,6 +40,7 @@ namespace GFGGame
|
|
|
_ui.m_RewardList.SetVirtual();
|
|
|
_ui.m_SpecialReward.m_RewardList.itemRenderer = SpecialRewardRender;
|
|
|
_ui.m_tip.onClick.Add(RuleController.ShowRuleView);
|
|
|
+ _ui.m_btnShow.onClick.Add(OnBtnShowClick);
|
|
|
_ui.m_tip.data = 300012;
|
|
|
_ui.m_LevelProcess.m_loaIcon.url =
|
|
|
ResPathUtil.GetCommonGameResPath(ItemCfgArray.Instance.GetCfg(ConstItemID.BATTLE_PASS_CURRENCY).res);
|
|
@@ -154,6 +156,25 @@ namespace GFGGame
|
|
|
// SetBattlePassLevel();
|
|
|
}
|
|
|
|
|
|
+ private void OnBtnShowClick(EventContext context)
|
|
|
+ {
|
|
|
+ var dataManager = BattlePassTaskDataManager.Instance;
|
|
|
+ var allSpecialCfg = dataManager.GetAllSpecialCfg();
|
|
|
+ ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(allSpecialCfg[1].Key);
|
|
|
+ var suitId = itemCfg.suitId;
|
|
|
+ int _suitTypeId = 0;
|
|
|
+ for (int i = 0; i < SuitGuideMenuCfgArray.Instance.dataArray.Length; i++)
|
|
|
+ {
|
|
|
+ string[] suitIds = SuitGuideMenuCfgArray.Instance.dataArray[i].suitIds.Split(';');
|
|
|
+ if (Array.IndexOf(suitIds, suitId.ToString()) >= 0)
|
|
|
+ {
|
|
|
+ _suitTypeId = SuitGuideMenuCfgArray.Instance.dataArray[i].id;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ViewManager.Show<SuitShowView>(new object[] { _suitTypeId, suitId, new List<int>() { suitId }, false });
|
|
|
+ }
|
|
|
+
|
|
|
//领取全部奖励
|
|
|
private async void OnBtnGetAllClick(EventContext context)
|
|
|
{
|