Exemplo n.º 1
0
    private void OnPushDecide()
    {
        CMD_ResearchModalAlert popup = null;

        if (MonsterStatusData.IsVersionUp(this.partnerDigimon.GetMonsterMaster().Simple.rare))
        {
            popup = this.OpenAlertPartnerMonster(this.partnerDigimon, StringMaster.GetString("MedalInheritAlertInfo2"));
        }
        else if (MonsterStatusData.IsArousal(this.partnerDigimon.monsterM.rare))
        {
            popup = this.OpenAlertPartnerMonster(this.partnerDigimon, StringMaster.GetString("MedalInheritAlertInfo"));
        }
        if (null != popup)
        {
            popup.SetActionYesButton(delegate
            {
                popup.SetCloseAction(delegate(int noop)
                {
                    this.OpenConfirmMedalInheritance();
                });
            });
        }
        else
        {
            this.OpenConfirmMedalInheritance();
        }
    }
        public void SetEggStatus(MonsterData monsterData)
        {
            this.chipBaseSelect.SetSelectedCharChg(monsterData);
            string eggName = StringMaster.GetString("CharaStatus-06");
            int    num     = MasterDataMng.Instance().RespDataMA_MonsterEvolutionRouteM.monsterEvolutionRouteM.Length;

            for (int i = 0; i < num; i++)
            {
                GameWebAPI.RespDataMA_GetMonsterEvolutionRouteM.MonsterEvolutionRouteM monsterEvolutionRouteM = MasterDataMng.Instance().RespDataMA_MonsterEvolutionRouteM.monsterEvolutionRouteM[i];
                if (monsterEvolutionRouteM.monsterEvolutionRouteId == monsterData.userMonster.monsterEvolutionRouteId)
                {
                    GameWebAPI.RespDataMA_GetMonsterMG.MonsterM group = MonsterMaster.GetMonsterMasterByMonsterGroupId(monsterEvolutionRouteM.eggMonsterId).Group;
                    if (group != null)
                    {
                        eggName = group.monsterName;
                    }
                }
            }
            if (!MonsterStatusData.IsVersionUp(monsterData.GetMonsterMaster().Simple.rare))
            {
                this.skillInfo.ClearSkill();
            }
            else
            {
                this.extraSkillInfo.ClearSkill();
            }
            this.basicInfo.SetEggData(eggName, monsterData.monsterM.rare);
            this.statusList.ClearEggCandidateMedalValues();
            this.changeValueList.SetEggStatusValues();
            this.resistanceList.ClearValues();
            this.medalList.SetValues(monsterData.userMonster);
        }
Exemplo n.º 3
0
 private void ShowMATInfo()
 {
     if (0 < this.selecterPartnerDigimons.Count && this.selecterPartnerDigimons[0] != null)
     {
         MonsterData monsterData = this.selecterPartnerDigimons[0];
         this.materialMonsterBasicInfo.SetMonsterData(monsterData);
         this.materialMonsterSuccessionSkill.SetSkill(monsterData);
         int num = this.CalcClusterForSuccession(this.baseDigimon, this.selecterPartnerDigimons);
         this.useClusterLabel.text = StringFormat.Cluster(num);
         if (num > int.Parse(DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.gamemoney))
         {
             this.useClusterLabel.color = Color.red;
         }
         else
         {
             this.useClusterLabel.color = Color.white;
         }
         bool active = MonsterStatusData.IsVersionUp(monsterData.GetMonsterMaster().Simple.rare);
         this.materialMonsterSkillTab2.SetActive(active);
         this.FunctionPartnerDigimonSkill1();
     }
     else
     {
         this.materialMonsterBasicInfo.ClearMonsterData();
         this.materialMonsterSuccessionSkill.ClearSkill();
         this.useClusterLabel.text  = "0";
         this.useClusterLabel.color = Color.white;
         this.materialMonsterSkillTab1.Off();
         this.materialMonsterSkillTab2.Off();
         this.materialMonsterSkillTab2.SetActive(false);
     }
 }
Exemplo n.º 4
0
 private void ShowChgInfo()
 {
     if (this.baseDigimon != null)
     {
         this.baseMonsterBasicInfo.SetMonsterData(this.baseDigimon);
         if (MonsterStatusData.IsVersionUp(this.baseDigimon.GetMonsterMaster().Simple.rare))
         {
             this.baseMonsterSkillTab2.SetActive(true);
             if (this.baseDigimon.GetExtraCommonSkill() != null)
             {
                 this.FunctionBaseDigimonSkill1();
             }
             else
             {
                 this.FunctionBaseDigimonSkill2();
             }
         }
         else
         {
             this.baseMonsterSkillTab2.SetActive(false);
             this.FunctionBaseDigimonSkill1();
         }
     }
     else
     {
         this.baseMonsterBasicInfo.ClearMonsterData();
         this.baseMonsterSuccessionSkill.SetCommonSkill(null);
         this.baseMonsterSkillTab1.Off();
         this.baseMonsterSkillTab2.Off();
         this.baseMonsterSkillTab2.SetActive(false);
     }
 }
Exemplo n.º 5
0
    private void ShowChgInfo()
    {
        if (this.DataChg != null)
        {
            this.partnerChipBaseSelect.SetSelectedCharChg(this.DataChg);
            this.changeMonsterBasicInfo.SetMonsterData(this.DataChg);
            this.changeMonsterStatusList.SetValues(this.DataChg, this.questBonusPack.dungeonBonuses.ToArray());
            this.changeMonsterMedalList.SetValues(this.DataChg.userMonster);
            this.changeMonsterLeaderSkill.SetSkill(this.DataChg);
            this.changeMonsterUniqueSkill.SetSkill(this.DataChg);
            this.detailedChangeMonsterUniqueSkill.SetSkill(this.DataChg);
            this.changeMonsterSuccessionSkill.SetSkill(this.DataChg);
            this.detailedChangeMonsterSuccessionSkill.SetSkill(this.DataChg);
            this.changeMonsterSuccessionSkillGrayReady.SetActive(false);
            this.changeMonsterSuccessionSkillAvailable.SetActive(false);
            this.changeMonsterSuccessionSkillGrayNA.SetActive(false);
            this.detailedChangeMonsterSuccessionSkillGrayReady.SetActive(false);
            this.detailedChangeMonsterSuccessionSkillAvailable.SetActive(false);
            this.detailedChangeMonsterSuccessionSkillGrayNA.SetActive(false);
            this.changeMonsterSuccessionSkill2.SetSkill(this.DataChg);
            this.detailedChangeMonsterSuccessionSkill2.SetSkill(this.DataChg);
            if (MonsterStatusData.IsVersionUp(this.DataChg.GetMonsterMaster().Simple.rare))
            {
                if (this.DataChg.GetExtraCommonSkill() == null)
                {
                    this.changeMonsterSuccessionSkillGrayReady.SetActive(true);
                    this.detailedChangeMonsterSuccessionSkillGrayReady.SetActive(true);
                }
                else
                {
                    this.changeMonsterSuccessionSkillAvailable.SetActive(true);
                    this.detailedChangeMonsterSuccessionSkillAvailable.SetActive(true);
                }
            }
            else
            {
                this.changeMonsterSuccessionSkillGrayNA.SetActive(true);
                this.detailedChangeMonsterSuccessionSkillGrayNA.SetActive(true);
            }
            this.changeMonsterResistanceList.SetValues(this.DataChg);
        }
        else
        {
            this.partnerChipBaseSelect.ClearChipIcons();
            this.changeMonsterBasicInfo.ClearMonsterData();
            this.changeMonsterStatusList.ClearValues();
            this.changeMonsterLeaderSkill.ClearSkill();
            this.changeMonsterUniqueSkill.ClearSkill();
            this.detailedChangeMonsterUniqueSkill.ClearSkill();
            this.changeMonsterSuccessionSkill.ClearSkill();
            this.changeMonsterSuccessionSkill2.ClearSkill();
            this.detailedChangeMonsterSuccessionSkill.ClearSkill();
            this.detailedChangeMonsterSuccessionSkill2.ClearSkill();
            this.changeMonsterResistanceList.ClearValues();
        }
        StatusValue values  = this.nowMonsterStatusList.GetValues();
        StatusValue values2 = this.changeMonsterStatusList.GetValues();

        this.monsterStatusChangeValueList.SetValues(values, values2);
    }
Exemplo n.º 6
0
 private void OnBaseDigimonSkill2()
 {
     if (this.baseDigimon != null && MonsterStatusData.IsVersionUp(this.baseDigimon.GetMonsterMaster().Simple.rare))
     {
         this.FunctionBaseDigimonSkill2();
     }
 }
Exemplo n.º 7
0
    private void CheckPartnerMonster()
    {
        CMD_ResearchModalAlert popup = null;

        if (MonsterStatusData.IsVersionUp(this.partnerDigimon.GetMonsterMaster().Simple.rare))
        {
            popup = this.OpenAlertTargetMonster(this.partnerDigimon, StringMaster.GetString("LaboratoryResearchAlertInfo2"));
        }
        else if (MonsterStatusData.IsArousal(this.partnerDigimon.monsterM.rare))
        {
            popup = this.OpenAlertTargetMonster(this.partnerDigimon, StringMaster.GetString("LaboratoryResearchAlertInfo"));
        }
        if (null != popup)
        {
            popup.SetActionYesButton(delegate
            {
                popup.SetCloseAction(delegate(int noop)
                {
                    this.OpenConfirmResearch();
                });
            });
        }
        else
        {
            this.OpenConfirmResearch();
        }
    }
Exemplo n.º 8
0
    public void SetParams(List <MonsterData> selectedMonsterDataList, string getCluster)
    {
        this.titleLabel.text         = StringMaster.GetString("SaleConfirmTitle");
        this.normalMessageLabel.text = StringMaster.GetString("SaleConfirmInfo");
        bool          flag  = MonsterUserDataMng.AnyChipEquipMonster(selectedMonsterDataList);
        bool          flag2 = MonsterUserDataMng.AnyHighGrowStepMonster(selectedMonsterDataList);
        List <string> list  = new List <string>();
        bool          flag3 = false;
        bool          flag4 = false;

        foreach (MonsterData monsterData in selectedMonsterDataList)
        {
            bool flag5 = MonsterStatusData.IsArousal(monsterData.GetMonsterMaster().Simple.rare);
            bool flag6 = MonsterStatusData.IsVersionUp(monsterData.GetMonsterMaster().Simple.rare);
            if (flag6)
            {
                flag4 = true;
            }
            else if (flag5)
            {
                flag3 = true;
            }
        }
        if (flag3)
        {
            list.Add(StringMaster.GetString("SaleCautionArousal"));
        }
        if (flag4)
        {
            list.Add(StringMaster.GetString("SaleCautionVersionUp"));
        }
        if (flag)
        {
            list.Add(StringMaster.GetString("SaleCautionChip"));
        }
        if (flag2)
        {
            string growStep     = ConstValue.GROW_STEP_HIGH.ToString();
            string growStepName = MonsterGrowStepData.GetGrowStepName(growStep);
            list.Add(string.Format(StringMaster.GetString("SaleCautionGrowth"), growStepName));
        }
        if (list.Count >= 3)
        {
            int num = (this.warningMessageLabel.fontSize + this.warningMessageLabel.spacingY) * (list.Count - 2);
            base.GetComponent <UIWidget>().height += num;
        }
        this.warningMessageLabel.text = string.Join("\n", list.ToArray());
        for (int i = 0; i < this.guiMonsterIcons.Length; i++)
        {
            if (selectedMonsterDataList.Count > i)
            {
                GUIMonsterIcon guimonsterIcon = this.guiMonsterIcons[i];
                MonsterData    md             = selectedMonsterDataList[i];
                this.CreateIcon(i, md, guimonsterIcon.gameObject);
            }
        }
        this.getClusterLabel.text = getCluster;
    }
 private void ShowNowInfo()
 {
     if (CMD_ChangeMonster.SelectMonsterData != null)
     {
         this.baseChipBaseSelect.SetSelectedCharChg(CMD_ChangeMonster.SelectMonsterData);
         this.nowMonsterBasicInfo.SetMonsterData(CMD_ChangeMonster.SelectMonsterData);
         this.nowMonsterStatusList.SetValues(CMD_ChangeMonster.SelectMonsterData, this.effectArray);
         this.nowMonsterMedalList.SetValues(CMD_ChangeMonster.SelectMonsterData.userMonster);
         this.nowMonsterLeaderSkill.SetSkill(CMD_ChangeMonster.SelectMonsterData);
         this.nowMonsterUniqueSkill.SetSkill(CMD_ChangeMonster.SelectMonsterData);
         this.detailedNowMonsterUniqueSkill.SetSkill(CMD_ChangeMonster.SelectMonsterData);
         this.nowMonsterSuccessionSkill.SetSkill(CMD_ChangeMonster.SelectMonsterData);
         this.detailedNowMonsterSuccessionSkill.SetSkill(CMD_ChangeMonster.SelectMonsterData);
         this.nowMonsterSuccessionSkillGrayReady.SetActive(false);
         this.nowMonsterSuccessionSkillAvailable.SetActive(false);
         this.nowMonsterSuccessionSkillGrayNA.SetActive(false);
         this.detailedNowMonsterSuccessionSkillGrayReady.SetActive(false);
         this.detailedNowMonsterSuccessionSkillAvailable.SetActive(false);
         this.detailedNowMonsterSuccessionSkillGrayNA.SetActive(false);
         this.nowMonsterSuccessionSkill2.SetSkill(CMD_ChangeMonster.SelectMonsterData);
         this.detailedNowMonsterSuccessionSkill2.SetSkill(CMD_ChangeMonster.SelectMonsterData);
         if (MonsterStatusData.IsVersionUp(CMD_ChangeMonster.SelectMonsterData.GetMonsterMaster().Simple.rare))
         {
             if (CMD_ChangeMonster.SelectMonsterData.GetExtraCommonSkill() == null)
             {
                 this.nowMonsterSuccessionSkillGrayReady.SetActive(true);
                 this.detailedNowMonsterSuccessionSkillGrayReady.SetActive(true);
             }
             else
             {
                 this.nowMonsterSuccessionSkillAvailable.SetActive(true);
                 this.detailedNowMonsterSuccessionSkillAvailable.SetActive(true);
             }
         }
         else
         {
             this.nowMonsterSuccessionSkillGrayNA.SetActive(true);
             this.detailedNowMonsterSuccessionSkillGrayNA.SetActive(true);
         }
         this.nowMonsterResistanceList.SetValues(CMD_ChangeMonster.SelectMonsterData);
     }
     else
     {
         this.baseChipBaseSelect.ClearChipIcons();
         this.nowMonsterBasicInfo.ClearMonsterData();
         this.nowMonsterStatusList.ClearValues();
         this.nowMonsterMedalList.SetActive(false);
         this.nowMonsterLeaderSkill.ClearSkill();
         this.nowMonsterUniqueSkill.ClearSkill();
         this.detailedNowMonsterUniqueSkill.ClearSkill();
         this.nowMonsterSuccessionSkill.ClearSkill();
         this.nowMonsterSuccessionSkill2.ClearSkill();
         this.detailedNowMonsterSuccessionSkill.ClearSkill();
         this.detailedNowMonsterSuccessionSkill2.ClearSkill();
         this.nowMonsterResistanceList.ClearValues();
     }
 }
Exemplo n.º 10
0
 private void ShowChgInfo()
 {
     this.statusPanel.SetEnable(this.DataChg != null);
     if (this.DataChg != null)
     {
         this.monsterBasicInfo.SetMonsterData(this.DataChg);
         this.monsterStatusList.SetValues(this.DataChg, false, false);
         this.monsterLeaderSkill.SetSkill(this.DataChg);
         this.detailedMonsterLeaderSkill.SetSkill(this.DataChg);
         this.leaderSkill.SetSkill(this.DataChg);
         this.monsterUniqueSkill.SetSkill(this.DataChg);
         this.detailedMonsterUniqueSkill.SetSkill(this.DataChg);
         this.monsterSuccessionSkill.SetSkill(this.DataChg);
         this.detailedMonsterSuccessionSkill.SetSkill(this.DataChg);
         this.monsterSuccessionSkillGrayReady.SetActive(false);
         this.monsterSuccessionSkillAvailable.SetActive(false);
         this.monsterSuccessionSkillGrayNA.SetActive(false);
         this.monsterSuccessionSkill2.SetSkill(this.DataChg);
         this.detailedMonsterSuccessionSkillGrayReady.SetActive(false);
         this.detailedMonsterSuccessionSkillAvailable.SetActive(false);
         this.detailedMonsterSuccessionSkillGrayNA.SetActive(false);
         this.detailedMonsterSuccessionSkill2.SetSkill(this.DataChg);
         if (MonsterStatusData.IsVersionUp(this.DataChg.GetMonsterMaster().Simple.rare))
         {
             if (this.DataChg.GetExtraCommonSkill() == null)
             {
                 this.monsterSuccessionSkillGrayReady.SetActive(true);
                 this.detailedMonsterSuccessionSkillGrayReady.SetActive(true);
             }
             else
             {
                 this.monsterSuccessionSkillAvailable.SetActive(true);
                 this.detailedMonsterSuccessionSkillAvailable.SetActive(true);
             }
         }
         else
         {
             this.monsterSuccessionSkillGrayNA.SetActive(true);
             this.detailedMonsterSuccessionSkillGrayNA.SetActive(true);
         }
         this.monsterResistanceList.SetValues(this.DataChg);
         this.detailedMonsterResistanceList.SetValues(this.DataChg);
         this.monsterMedalList.SetValues(this.DataChg.userMonster);
         this.StatusPageChange(false);
     }
     else
     {
         this.chipBaseSelect.ClearChipIcons();
         this.monsterBasicInfo.ClearMonsterData();
         this.monsterStatusList.ClearValues();
         this.monsterMedalList.SetActive(false);
         this.switchDetailSkillPanel(false);
         this.RequestStatusPage(1);
         this.leaderSkill.ClearSkill();
     }
 }
    private void ShowDet()
    {
        if (this.Data == null)
        {
            this.chipBaseSelect.ClearChipIcons();
            this.monsterGimickEffectStatusList.ClearValues();
            if (this.sortieNG.activeSelf)
            {
                this.sortieNG.SetActive(false);
            }
            return;
        }
        this.SetSelectedCharChg(this.Data);
        this.monsterLeaderSkill.SetSkill(this.Data);
        this.monsterUniqueSkill.SetSkill(this.Data);
        this.monsterSuccessionSkill.SetSkill(this.Data);
        bool flag = MonsterStatusData.IsVersionUp(this.Data.GetMonsterMaster().Simple.rare);

        if (flag)
        {
            if (this.monsterSuccessionSkill2 != null)
            {
                this.monsterSuccessionSkill2.gameObject.SetActive(true);
                if (this.Data.GetExtraCommonSkill() != null)
                {
                    this.monsterSuccessionSkill2.SetSkill(this.Data);
                }
                else
                {
                    this.monsterSuccessionSkill2.ClearSkill();
                    this.monsterSuccessionSkill2Name.text = StringMaster.GetString("SystemNone");
                    this.monsterSuccessionSkill2Info.text = StringMaster.GetString("CharaStatus-02");
                    this.monsterSuccessionSkill2AP.text   = string.Format(StringMaster.GetString("BattleSkillUI-01"), 0);
                }
            }
        }
        else if (this.monsterSuccessionSkill2 != null)
        {
            this.monsterSuccessionSkill2.gameObject.SetActive(false);
        }
        this.statusPanel.ResetUI();
        this.monsterBasicInfo.SetMonsterData(this.Data);
        this.monsterMedalList.SetValues(this.Data.userMonster);
        GameWebAPI.RespDataMA_GetWorldDungeonExtraEffectM.WorldDungeonExtraEffectM[] gimmickEffectArray = this.SetStageGimmick();
        this.bonusButton.SetTargetMonster(this.Data);
        this.bonusButton.SetActive();
        this.monsterGimickEffectStatusList.SetValues(this.Data, gimmickEffectArray);
        this.monsterResistanceList.SetValues(this.Data);
        this.SetSortieLimitCondition(this.Data);
    }
        public void SetMonsterStatus(MonsterData monsterData)
        {
            this.chipBaseSelect.SetSelectedCharChg(monsterData);
            if (!MonsterStatusData.IsVersionUp(monsterData.GetMonsterMaster().Simple.rare))
            {
                this.skillInfo.SetSkill(monsterData);
            }
            else
            {
                this.extraSkillInfo.SetSkill(monsterData);
            }
            int exp = int.Parse(monsterData.userMonster.ex);

            DataMng.ExperienceInfo experienceInfo = DataMng.Instance().GetExperienceInfo(exp);
            this.basicInfo.SetMonsterData(monsterData, experienceInfo);
            this.statusList.SetValues(monsterData, true, true);
            this.changeValueList.SetValues(monsterData);
            this.resistanceList.SetValues(monsterData);
            this.medalList.SetValues(monsterData.userMonster);
            this.viewExtraSkillPage = MonsterStatusData.IsVersionUp(monsterData.GetMonsterMaster().Simple.rare);
        }
 private void SetChangeMonsterData()
 {
     this.partnerChipBaseSelect.SetSelectedCharChg(this.changeMonsterData);
     this.changeMonsterBasicInfo.SetMonsterData(this.changeMonsterData);
     this.changeMonsterStatusList.SetValues(this.changeMonsterData, this.effectArray);
     this.changeMonsterMedalList.SetValues(this.changeMonsterData.userMonster);
     this.changeMonsterLeaderSkill.SetSkill(this.changeMonsterData);
     this.changeMonsterUniqueSkill.SetSkill(this.changeMonsterData);
     this.detailedChangeMonsterUniqueSkill.SetSkill(this.changeMonsterData);
     this.changeMonsterSuccessionSkill.SetSkill(this.changeMonsterData);
     this.detailedChangeMonsterSuccessionSkill.SetSkill(this.changeMonsterData);
     this.changeMonsterSuccessionSkillGrayReady.SetActive(false);
     this.changeMonsterSuccessionSkillAvailable.SetActive(false);
     this.changeMonsterSuccessionSkillGrayNA.SetActive(false);
     this.detailedChangeMonsterSuccessionSkillGrayReady.SetActive(false);
     this.detailedChangeMonsterSuccessionSkillAvailable.SetActive(false);
     this.detailedChangeMonsterSuccessionSkillGrayNA.SetActive(false);
     this.changeMonsterSuccessionSkill2.SetSkill(this.changeMonsterData);
     this.detailedChangeMonsterSuccessionSkill2.SetSkill(this.changeMonsterData);
     if (MonsterStatusData.IsVersionUp(this.changeMonsterData.GetMonsterMaster().Simple.rare))
     {
         if (this.changeMonsterData.GetExtraCommonSkill() == null)
         {
             this.changeMonsterSuccessionSkillGrayReady.SetActive(true);
             this.detailedChangeMonsterSuccessionSkillGrayReady.SetActive(true);
         }
         else
         {
             this.changeMonsterSuccessionSkillAvailable.SetActive(true);
             this.detailedChangeMonsterSuccessionSkillAvailable.SetActive(true);
         }
     }
     else
     {
         this.changeMonsterSuccessionSkillGrayNA.SetActive(true);
         this.detailedChangeMonsterSuccessionSkillGrayNA.SetActive(true);
     }
     this.changeMonsterResistanceList.SetValues(this.changeMonsterData);
     this.SetChangeStatusValue();
 }
Exemplo n.º 14
0
    private void OnPushDecide()
    {
        CMD_ResearchModalAlert popup = null;

        if (MonsterStatusData.IsVersionUp(this.baseDigimon.GetMonsterMaster().Simple.rare))
        {
            popup = this.OpenAlertTargetMonster(this.baseDigimon, StringMaster.GetString("LaboratoryResearchAlertInfo3"));
        }
        if (null != popup)
        {
            popup.SetActionYesButton(delegate
            {
                popup.SetCloseAction(delegate(int noop)
                {
                    this.CheckPartnerMonster();
                });
            });
        }
        else
        {
            this.CheckPartnerMonster();
        }
    }
Exemplo n.º 15
0
 public void SetMonsterData(MonsterData monsterData)
 {
     if (MonsterStatusData.IsVersionUp(monsterData.GetMonsterMaster().Simple.rare))
     {
         if (this.grayNA.activeSelf)
         {
             this.grayNA.SetActive(false);
         }
         if (monsterData.GetExtraCommonSkill() == null)
         {
             if (!this.grayReady.activeSelf)
             {
                 this.grayReady.SetActive(true);
             }
             if (this.available.activeSelf)
             {
                 this.available.SetActive(false);
             }
         }
         else
         {
             if (!this.available.activeSelf)
             {
                 this.available.SetActive(true);
             }
             if (this.grayReady.activeSelf)
             {
                 this.grayReady.SetActive(false);
             }
         }
     }
     else
     {
         this.ClearData();
     }
 }
Exemplo n.º 16
0
    public void SetParams(List <MonsterData> selectedMonsterDataList, string useCluster, string beforeLevel, string afterLevel, string plusLevel, bool isLevelMax)
    {
        string format = string.Empty;

        if (isLevelMax)
        {
            format = StringMaster.GetString("ReinforcementInfoLvMax");
        }
        else
        {
            format = StringMaster.GetString("ReinforcementInfo");
        }
        this.normalMessageLabel.text = string.Format(format, StringMaster.GetString("ReinforcementTitle"));
        bool          flag  = MonsterUserDataMng.AnyChipEquipMonster(selectedMonsterDataList);
        bool          flag2 = MonsterUserDataMng.AnyHighGrowStepMonster(selectedMonsterDataList);
        List <string> list  = new List <string>();
        bool          flag3 = false;
        bool          flag4 = false;

        foreach (MonsterData monsterData in selectedMonsterDataList)
        {
            bool flag5 = MonsterStatusData.IsArousal(monsterData.GetMonsterMaster().Simple.rare);
            bool flag6 = MonsterStatusData.IsVersionUp(monsterData.GetMonsterMaster().Simple.rare);
            if (flag6)
            {
                flag4 = true;
            }
            else if (flag5)
            {
                flag3 = true;
            }
        }
        if (flag3)
        {
            list.Add(StringMaster.GetString("ReinforcementCautionArousal"));
        }
        if (flag4)
        {
            list.Add(StringMaster.GetString("ReinforcementCautionVersionUp"));
        }
        if (flag)
        {
            list.Add(StringMaster.GetString("CautionDisappearChip"));
        }
        if (flag2)
        {
            string growStep     = ConstValue.GROW_STEP_HIGH.ToString();
            string growStepName = MonsterGrowStepData.GetGrowStepName(growStep);
            list.Add(string.Format(StringMaster.GetString("ReinforcementCautionGrowth"), growStepName));
        }
        if (list.Count >= 2)
        {
            int num = (this.warningMessageLabel.fontSize + this.warningMessageLabel.spacingY) * (list.Count - 1);
            this.warningMessageLabel.transform.SetLocalY(this.warningMessageLabel.transform.localPosition.y - (float)(num / 2));
            this.dialogPlate.transform.SetLocalY(this.dialogPlate.transform.localPosition.y - (float)(num / 2));
            this.dialogPlate.GetComponent <UIWidget>().height += num;
            this.btnGroup.transform.SetLocalY(this.btnGroup.transform.localPosition.y - (float)num);
        }
        this.warningMessageLabel.text = string.Join("\n", list.ToArray());
        for (int i = 0; i < this.guiMonsterIcons.Length; i++)
        {
            if (selectedMonsterDataList.Count > i)
            {
                GUIMonsterIcon guimonsterIcon = this.guiMonsterIcons[i];
                MonsterData    md             = selectedMonsterDataList[i];
                this.CreateIcon(i, md, guimonsterIcon.gameObject);
            }
        }
        this.useClusterLabel.text  = useCluster;
        this.beforeLevelLabel.text = beforeLevel;
        this.afterLevelLabel.text  = afterLevel;
        this.plusLevelLabel.text   = plusLevel;
    }
Exemplo n.º 17
0
    public void SetParams(List <MonsterData> selectedMonsterDataList, string useCluster, int baseDigimonSkillNumber, int partnerDigimonSkillNumber)
    {
        if (partnerDigimonSkillNumber == 1)
        {
            this.monsterSuccessionSkill.SetCommonSkill(selectedMonsterDataList[0]);
        }
        else
        {
            this.monsterSuccessionSkill.SetCommonSkill2(selectedMonsterDataList[0]);
        }
        bool          flag  = MonsterUserDataMng.AnyChipEquipMonster(selectedMonsterDataList);
        bool          flag2 = MonsterUserDataMng.AnyHighGrowStepMonster(selectedMonsterDataList);
        List <string> list  = new List <string>();
        bool          flag3 = false;
        bool          flag4 = false;

        foreach (MonsterData monsterData in selectedMonsterDataList)
        {
            bool flag5 = MonsterStatusData.IsArousal(monsterData.GetMonsterMaster().Simple.rare);
            bool flag6 = MonsterStatusData.IsVersionUp(monsterData.GetMonsterMaster().Simple.rare);
            if (flag6)
            {
                flag4 = true;
            }
            else if (flag5)
            {
                flag3 = true;
            }
        }
        if (flag3)
        {
            list.Add(StringMaster.GetString("SuccessionCautionArousal"));
        }
        if (flag4)
        {
            list.Add(StringMaster.GetString("SuccessionCautionVersionUp"));
        }
        if (flag)
        {
            list.Add(StringMaster.GetString("CautionDisappearChip"));
        }
        if (flag2)
        {
            string growStep     = ConstValue.GROW_STEP_HIGH.ToString();
            string growStepName = MonsterGrowStepData.GetGrowStepName(growStep);
            list.Add(string.Format(StringMaster.GetString("SuccessionCautionGrowth"), growStepName));
        }
        if (list.Count >= 2)
        {
            int num = (this.warningMessageLabel.fontSize + this.warningMessageLabel.spacingY) * (list.Count - 1);
            this.warningMessageLabel.transform.SetLocalY(this.warningMessageLabel.transform.localPosition.y - (float)(num / 2));
            this.dialogPlate.transform.SetLocalY(this.dialogPlate.transform.localPosition.y - (float)(num / 2));
            this.dialogPlate.GetComponent <UIWidget>().height += num;
            this.btnGroup.transform.SetLocalY(this.btnGroup.transform.localPosition.y - (float)num);
        }
        this.warningMessageLabel.text = string.Join("\n", list.ToArray());
        this.useClusterLabel.text     = useCluster;
        string @string = StringMaster.GetString("SuccessionConfirmInfo");

        this.normalMessageLabel.text = string.Format(@string, baseDigimonSkillNumber);
    }
Exemplo n.º 18
0
    public void MonsterDataSet(MonsterData mData, DataMng.ExperienceInfo experienceInfo, int chipSlotNum, string exchangeId)
    {
        this.viewExtraSkillPage = MonsterStatusData.IsVersionUp(mData.GetMonsterMaster().Simple.rare);
        this.monsterStatusList.ClearValues();
        this.monsterStatusList.SetValues(mData, true, false);
        this.monsterBasicInfo.ClearMonsterData();
        this.monsterBasicInfo.SetMonsterData(mData, experienceInfo);
        this.monsterResistance.ClearValues();
        this.monsterResistance.SetValues(mData);
        if (this.viewExtraSkillPage)
        {
            this.ver2LeaderSkill.ClearSkill();
            this.ver2LeaderSkill.SetSkill(mData);
            this.ver2LearnSkill1.ClearSkill();
            this.ver2LearnSkill1.SetSkill(mData);
            this.ver2LearnSkill2.ClearSkill();
            this.ver2LearnSkill2.SetSkill(mData);
            this.ver2LearnSkill3.ClearSkill();
            this.ver2LearnSkill3.SetSkill(mData);
        }
        else
        {
            this.leaderSkill.ClearSkill();
            this.leaderSkill.SetSkill(mData);
            this.learnSkill1.ClearSkill();
            this.learnSkill1.SetSkill(mData);
            this.learnSkill2.ClearSkill();
            this.learnSkill2.SetSkill(mData);
        }
        StatusValue statusValue = MonsterStatusData.GetStatusValue(mData.userMonster.monsterId, mData.userMonster.level);

        this.SetMedalParameter(this.hpUpLabel, mData.userMonster.hpAbility, (float)statusValue.hp);
        this.SetMedalParameter(this.attackUpLabel, mData.userMonster.attackAbility, (float)statusValue.attack);
        this.SetMedalParameter(this.defenseUpLabel, mData.userMonster.defenseAbility, (float)statusValue.defense);
        this.SetMedalParameter(this.spAttackUpLabel, mData.userMonster.spAttackAbility, (float)statusValue.magicAttack);
        this.SetMedalParameter(this.spDefenseUpLabel, mData.userMonster.spDefenseAbility, (float)statusValue.magicDefense);
        this.SetMedalParameter(this.speedUpLabel, mData.userMonster.speedAbility, (float)statusValue.speed);
        this.monsterMedal.SetActive(true);
        this.monsterMedal.SetValues(mData.userMonster);
        chipSlotNum += 5;
        for (int i = 0; i < this.chipObjList.Count; i++)
        {
            this.chipObjList[i].SetActive(false);
        }
        for (int j = 0; j < chipSlotNum; j++)
        {
            if (j >= this.chipObjList.Count)
            {
                break;
            }
            this.chipObjList[j].SetActive(true);
        }
        if (int.Parse(exchangeId) >= 10000)
        {
            this.browTypeLabel1.gameObject.SetActive(true);
            this.browTypeLabel2.gameObject.SetActive(true);
            this.browTypeLabel1.text = string.Format(StringMaster.GetString("ExchangeSkillTypeDetile"), mData.userMonster.defaultSkillGroupSubId);
            this.browTypeLabel2.text = string.Format(StringMaster.GetString("ExchangeSkillTypeDetile"), mData.userMonster.defaultSkillGroupSubId);
        }
        else
        {
            this.browTypeLabel1.gameObject.SetActive(false);
            this.browTypeLabel2.gameObject.SetActive(false);
        }
    }