예제 #1
0
 public void SetData(SkillPowerUpResultContent.Param param, List <ParamTypes> dispTypeList, List <ParamTypes> dispTypeListMul)
 {
     using (List <SkillPowerUpResultContentStatus> .Enumerator enumerator = this.contentsList.GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             UnityEngine.Object.Destroy((UnityEngine.Object)((Component)enumerator.Current).get_gameObject());
         }
     }
     this.contentsList.Clear();
     this.skillNameText.set_text(param.skilName);
     foreach (SkillPowerUpResultContent.DispType dispType in param.GetAllBonusChangeType())
     {
         if (!dispType.isScale && dispTypeList.Contains(dispType.type))
         {
             GameObject gameObject = (GameObject)UnityEngine.Object.Instantiate <GameObject>((M0)((Component)this.statusBase).get_gameObject());
             gameObject.get_transform().SetParent(((Component)this.statusBase).get_transform().get_parent(), false);
             SkillPowerUpResultContentStatus component = (SkillPowerUpResultContentStatus)gameObject.GetComponent <SkillPowerUpResultContentStatus>();
             component.SetData(param, dispType.type, false);
             gameObject.SetActive(true);
             this.contentsList.Add(component);
         }
         if (dispType.isScale && dispTypeListMul.Contains(dispType.type))
         {
             GameObject gameObject = (GameObject)UnityEngine.Object.Instantiate <GameObject>((M0)((Component)this.statusBase).get_gameObject());
             gameObject.get_transform().SetParent(((Component)this.statusBase).get_transform().get_parent(), false);
             SkillPowerUpResultContentStatus component = (SkillPowerUpResultContentStatus)gameObject.GetComponent <SkillPowerUpResultContentStatus>();
             component.SetData(param, dispType.type, true);
             gameObject.SetActive(true);
             this.contentsList.Add(component);
         }
     }
 }
예제 #2
0
        public void SetData(ConceptCardData currentCardData, int prevAwakeCount, int prevLevel, bool includeMaxPowerUp)
        {
            List <ConceptCardEquipEffect> cardSkills = currentCardData.GetCardSkills();
            int           count         = cardSkills.Count;
            int           lvCap         = (int)currentCardData.LvCap;
            int           awakeCountCap = currentCardData.AwakeCountCap;
            List <string> stringList    = new List <string>();

            for (int index = 0; index < count; ++index)
            {
                SkillData cardSkill = cardSkills[index].CardSkill;
                if (cardSkill != null && !stringList.Contains(cardSkill.Name))
                {
                    stringList.Add(cardSkill.Name);
                    SkillPowerUpResultContent.Param obj = new SkillPowerUpResultContent.Param(cardSkill, currentCardData, lvCap, awakeCountCap, prevLevel, prevAwakeCount, includeMaxPowerUp);
                    if (obj.IsBonusParamChanged())
                    {
                        SkillPowerUpResult.DispParam dispParam = new SkillPowerUpResult.DispParam();
                        dispParam.sourceParam = obj;
                        foreach (SkillPowerUpResultContent.DispType dispType in obj.GetAllBonusChangeType())
                        {
                            if (!dispType.isScale)
                            {
                                dispParam.dispTypeList.Add(dispType.type);
                            }
                            else
                            {
                                dispParam.dispTypeListMul.Add(dispType.type);
                            }
                        }
                        this.dispParamList.Add(dispParam);
                    }
                }
            }
        }
예제 #3
0
        public void SetData(SkillPowerUpResultContent.Param param, ParamTypes type, bool isScale)
        {
            string str  = !isScale ? string.Empty : "%";
            int    num1 = (int)(!isScale ? param.currentParam[type] : param.currentParamMul[type]);
            int    num2 = (int)(!isScale ? param.prevParam[type] : param.prevParamMul[type]);
            int    num3 = (int)(!isScale ? param.currentParamBonus[type] : param.currentParamBonusMul[type]);
            int    num4 = (int)(!isScale ? param.prevParamBonus[type] : param.prevParamBonusMul[type]);
            int    num5 = num2 + num4;
            int    num6 = num1 + num3;

            this.paramNameText.set_text(LocalizedText.Get("sys." + (object)type));
            this.prevParamText.set_text(num5.ToString() + str);
            this.resultParamText.set_text(num6.ToString() + str);
            int num7 = num3;

            if (num7 >= 0)
            {
                this.resultAddedParamText.set_text("(+" + (object)num7 + str + ")");
            }
            else
            {
                this.resultAddedParamText.set_text("(" + (object)num7 + str + ")");
            }
        }