Ejemplo n.º 1
0
 public void Show(SMSGEctypeSettleAccounts sMSGEctypeSettleAccounts, BattleSettlementPanel_V3 myParent)
 {
     this.MyParent = myParent;
     this.ShowData = sMSGEctypeSettleAccounts;
     TweenShowBackground(null);
     TweenMoveSingleRewariPanel(null);
 }
Ejemplo n.º 2
0
        public void Show(BattleSettlementPanel_V3 myParent)
        {
            BackButton.SetButtonColliderActive(true);
            //List<int> localActorIDList = new List<int>(actorIDList);
            MyParent = myParent;
            DoForTime.DoFunForTime(1, CheckTreausreRewardData, null);
            var heroActorID = (int)PlayerManager.Instance.FindHeroDataModel().ActorID;

//            if(localActorIDList.Contains(heroActorID))
//			{
//                localActorIDList.Remove(heroActorID);
//			}
            m_RewardPanelList[0].gameObject.SetActive(true);
            m_RewardPanelList[0].Show(heroActorID, this);
//			for(int i = 1;i<m_RewardPanelList.Count;i++)
//			{
//                if(localActorIDList.Count>0)
//				{
//					m_RewardPanelList[i].gameObject.SetActive(true);
//                    m_RewardPanelList[i].Show(localActorIDList[0],this);
//                    localActorIDList.RemoveAt(0);
//				}else
//				{
//					m_RewardPanelList[i].gameObject.SetActive(false);
//				}
//			}

            //副本获得:
            List <SEquipReward> rewardList = new List <SEquipReward>();
            SEquipReward        copper     = myParent.ScorePanel.sMSGEctypeSettleAccounts.SEquipRewardList.SingleOrDefault(p => p.dwEquipId == 3050001);

            if (copper.dwEquipId != 0)
            {
                rewardList.Add(copper);
            }
            SEquipReward Experience = myParent.ScorePanel.sMSGEctypeSettleAccounts.SEquipRewardList.SingleOrDefault(p => p.dwEquipId == 3050004);

            if (Experience.dwEquipId != 0)
            {
                rewardList.Add(Experience);
            }
            var equipList = myParent.ScorePanel.sMSGEctypeSettleAccounts.SEquipRewardList.Where(
                p => p.dwEquipId != 3050001 && p.dwEquipId != 3050004).ToList();

            equipList.Sort(new EquipRewardComparerByColor());
            rewardList.AddRange(equipList);
            for (int i = 0; i < rewardList.Count; i++)
            {
                GameObject harvestPrefab         = i % 2 == 0?HarvestInfoPrefab_Long:HarvestInfoPrefab_Short;
                GameObject harvestInfoItem       = UI.CreatObjectToNGUI.InstantiateObj(harvestPrefab, FirstHarvestInfoPoint);
                Vector3    showPos               = Vector3.down * i * 35;
                BattleSettlementHarvestInfo info = harvestInfoItem.GetComponent <BattleSettlementHarvestInfo>();
                info.SetInfo((int)rewardList[i].dwEquipId, rewardList[i].dwEquipNum, showPos, i * 0.2f);
            }
            //StartCoroutine("ShowFreeTreasureRewardDelay");
        }
Ejemplo n.º 3
0
        public void Show(SMSGEctypeSettleAccounts sMSGEctypeSettleAccounts, BattleSettlementPanel_V3 myParent)
        {
            SMSGEctypeInitialize_SC sMSGEctypeInitialize_SC = (SMSGEctypeInitialize_SC)GameDataManager.Instance.PeekData(DataType.InitializeEctype);

            MyEctypeData    = EctypeConfigManager.Instance.EctypeContainerConfigList[sMSGEctypeInitialize_SC.dwEctypeContainerId];
            UpPanel.alpha   = 0;
            DownPanel.alpha = 0;
            this.sMSGEctypeSettleAccounts = sMSGEctypeSettleAccounts;
            this.MyParent = myParent;
            var playerData = PlayerManager.Instance.FindHeroDataModel();
            int vocation   = playerData.PlayerValues.PlayerCommonValue.PLAYER_FIELD_VISIBLE_VOCATION;

            //RoleIcon.ChangeSprite(vocation);
            ProfesionIcon.ChangeSprite(vocation);
            NameLabel.SetText(playerData.Name);
            TweenMovePanel();
            UpdateHeroIcon();
        }