Exemplo n.º 1
0
 private void SetSelectedCharChg()
 {
     if (this.DataChg != null)
     {
         if (null != this.goMN_ICON_CHG_2)
         {
             UnityEngine.Object.DestroyImmediate(this.goMN_ICON_CHG_2);
         }
         Transform      transform      = this.goMN_ICON_CHG.transform;
         GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(this.DataChg, transform.localScale, transform.localPosition, transform.parent, true, false);
         this.goMN_ICON_CHG_2 = guimonsterIcon.gameObject;
         this.goMN_ICON_CHG_2.SetActive(true);
         guimonsterIcon.Data = this.DataChg;
         guimonsterIcon.SetTouchAct_S(new Action <MonsterData>(this.actRemoveChg));
         guimonsterIcon.SetTouchAct_L(new Action <MonsterData>(this.ActMIconLong));
         UIWidget component  = this.goMN_ICON_CHG.GetComponent <UIWidget>();
         UIWidget component2 = guimonsterIcon.gameObject.GetComponent <UIWidget>();
         if (null != component && null != component2)
         {
             int             add        = component.depth - component2.depth;
             DepthController component3 = guimonsterIcon.gameObject.GetComponent <DepthController>();
             component3.AddWidgetDepth(guimonsterIcon.transform, add);
         }
         this.goMN_ICON_CHG.SetActive(false);
         QuestBonusPack questBonusPack = new QuestBonusPack
         {
             bonusChipIds   = QuestBonusFilter.GetActivateBonusChips(this.DataChg, this.questBonusPack.bonusChipIds),
             eventBonuses   = QuestBonusFilter.GetActivateEventBonuses(this.bonusTargetCheck, this.DataChg, this.questBonusPack.eventBonuses),
             dungeonBonuses = QuestBonusFilter.GetActivateDungeonBonuses(this.bonusTargetCheck, this.DataChg, this.questBonusPack.dungeonBonuses)
         };
         guimonsterIcon.Gimmick = questBonusPack.ExistBonus();
     }
     this.ShowChgInfo();
 }
Exemplo n.º 2
0
        public void Initialize(string areaId, string stageId, string dungeonId)
        {
            QuestBonusPack questBonusPack = new QuestBonusPack();

            questBonusPack.CreateQuestBonus(areaId, stageId, dungeonId);
            this.bonusTextList = QuestBonus.GetBonusText(questBonusPack.bonusChipIds, questBonusPack.eventBonuses, questBonusPack.dungeonBonuses);
        }
Exemplo n.º 3
0
    private IEnumerator ShowAll(Action <int> closeEvent, float sizeX, float sizeY, float showAnimationTime)
    {
        this.battleInfo.SetView(CMD_PartyEdit.ModeType);
        while (!AssetDataCacheMng.Instance().IsCacheAllReadyType(AssetDataCacheMng.CACHE_TYPE.CHARA_PARTY))
        {
            yield return(null);
        }
        base.PartsTitle.SetTitle(StringMaster.GetString("PartyTitleEdit"));
        base.SetTutorialAnyTime("anytime_second_tutorial_partyedit");
        this.battleInfo.SetBossMonsterIcon(ClassSingleton <QuestData> .Instance.GetBossMonsterList(ClassSingleton <PartyBossIconsAccessor> .Instance.StageEnemies));
        this.battleInfo.SetSortieLimit();
        QuestBonusPack questBonus = new QuestBonusPack();

        questBonus.CreateQuestBonus(this.worldAreaId, this.worldStageId, this.worldDungeonId);
        QuestBonusTargetCheck bonusChecker = new QuestBonusTargetCheck();

        this.partyMember.SetView(this, questBonus, bonusChecker);
        this.partyInfo.SetView(CMD_PartyEdit.ModeType);
        this.partyMember.SetChangeMonsterEvent(new Action(this.UpdateSelectDeckData));
        this.RefreshPartyNumText();
        Vector3 v3 = base.gameObject.transform.localPosition;

        v3.x = 0f;
        base.gameObject.transform.localPosition = v3;
        base.Show(closeEvent, sizeX, sizeY, showAnimationTime);
        if (Loading.IsShow())
        {
            RestrictionInput.EndLoad();
        }
        yield break;
    }
Exemplo n.º 4
0
 private void SetSelectedChar()
 {
     if (CMD_DeckList.SelectMonsterData != null)
     {
         Transform      transform      = this.goMN_ICON_NOW.transform;
         GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(CMD_DeckList.SelectMonsterData, transform.localScale, transform.localPosition, transform.parent, true, false);
         this.goMN_ICON_NOW_2 = guimonsterIcon.gameObject;
         this.goMN_ICON_NOW_2.SetActive(true);
         guimonsterIcon.Data = CMD_DeckList.SelectMonsterData;
         guimonsterIcon.SetTouchAct_L(new Action <MonsterData>(this.ActMIconLong));
         UIWidget component  = this.goMN_ICON_NOW.GetComponent <UIWidget>();
         UIWidget component2 = guimonsterIcon.gameObject.GetComponent <UIWidget>();
         if (null != component && null != component2)
         {
             int             add        = component.depth - component2.depth;
             DepthController component3 = guimonsterIcon.gameObject.GetComponent <DepthController>();
             component3.AddWidgetDepth(guimonsterIcon.transform, add);
         }
         this.goMN_ICON_NOW.SetActive(false);
         QuestBonusPack questBonusPack = new QuestBonusPack
         {
             bonusChipIds   = QuestBonusFilter.GetActivateBonusChips(CMD_DeckList.SelectMonsterData, this.questBonusPack.bonusChipIds),
             eventBonuses   = QuestBonusFilter.GetActivateEventBonuses(this.bonusTargetCheck, CMD_DeckList.SelectMonsterData, this.questBonusPack.eventBonuses),
             dungeonBonuses = QuestBonusFilter.GetActivateDungeonBonuses(this.bonusTargetCheck, CMD_DeckList.SelectMonsterData, this.questBonusPack.dungeonBonuses)
         };
         guimonsterIcon.Gimmick = questBonusPack.ExistBonus();
     }
 }
Exemplo n.º 5
0
    private void SetMonsterList(CMD_PartyEdit partyEdit, QuestBonusPack questBonus, QuestBonusTargetCheck checker)
    {
        GameWebAPI.RespDataMN_GetDeckList.DeckList[] deckList = DataMng.Instance().RespDataMN_DeckList.deckList;
        string selectDeckNum    = DataMng.Instance().RespDataMN_DeckList.selectDeckNum;
        int    selectedIndexRev = int.Parse(selectDeckNum) - 1;

        this.listRoot.initLocation = true;
        this.listRoot.AllBuild(deckList.ToList <GameWebAPI.RespDataMN_GetDeckList.DeckList>(), partyEdit, questBonus, checker);
        this.listRoot.SetSelectedIndexRev(selectedIndexRev);
        this.listParts.SetActive(false);
    }
Exemplo n.º 6
0
 public void SetTargetMonster(MonsterData monsterData)
 {
     if (this.stageBonus != null)
     {
         this.monsterGroupId     = monsterData.monsterM.monsterGroupId;
         this.activateStageBonus = new QuestBonusPack
         {
             bonusChipIds   = QuestBonusFilter.GetActivateBonusChips(monsterData, this.stageBonus.bonusChipIds),
             eventBonuses   = QuestBonusFilter.GetActivateEventBonuses(this.bonusTargetChecker, monsterData, this.stageBonus.eventBonuses),
             dungeonBonuses = QuestBonusFilter.GetActivateDungeonBonuses(this.bonusTargetChecker, monsterData, this.stageBonus.dungeonBonuses)
         };
     }
 }
Exemplo n.º 7
0
 public void SetUI(QuestBonusPack questBonus, QuestBonusTargetCheck checker)
 {
     PartsPartyMonsInfo[] array = this.CreateMonsterInfo();
     this.ppmiList = new List <PartsPartyMonsInfo>();
     GameWebAPI.RespDataMN_GetDeckList.MonsterList[] monsterList = this.deckList.monsterList;
     for (int i = 0; i < monsterList.Length; i++)
     {
         array[i].SetQuestBonus(questBonus, checker);
         array[i].Data = MonsterDataMng.Instance().GetMonsterDataByUserMonsterID(monsterList[i].userMonsterId, false);
         array[i].ShowGUI();
         this.ppmiList.Add(array[i]);
     }
 }
Exemplo n.º 8
0
    public void SetIconDungeonBonus(QuestBonusPack bonus, QuestBonusTargetCheck checker)
    {
        QuestBonusPack questBonusPack = new QuestBonusPack();

        for (int i = 0; i < this.partObjs.Count; i++)
        {
            GUIMonsterIcon guimonsterIcon = this.partObjs[i] as GUIMonsterIcon;
            if (null != guimonsterIcon)
            {
                MonsterData data = guimonsterIcon.Data;
                questBonusPack.bonusChipIds   = QuestBonusFilter.GetActivateBonusChips(data, bonus.bonusChipIds);
                questBonusPack.eventBonuses   = QuestBonusFilter.GetActivateEventBonuses(checker, data, bonus.eventBonuses);
                questBonusPack.dungeonBonuses = QuestBonusFilter.GetActivateDungeonBonuses(checker, data, bonus.dungeonBonuses);
                guimonsterIcon.Gimmick        = questBonusPack.ExistBonus();
            }
        }
    }
 public void SetQuestBonus(QuestBonusPack questBonus, QuestBonusTargetCheck checker)
 {
     this.questBonusPack   = questBonus;
     this.bonusTargetCheck = checker;
     this.bonusButton.Initialize(questBonus, checker);
 }
Exemplo n.º 10
0
 public void Initialize(QuestBonusPack questBonus, QuestBonusTargetCheck checker)
 {
     this.bonusTargetChecker = checker;
     this.stageBonus         = questBonus;
 }
Exemplo n.º 11
0
 public void SetQuestBonus(QuestBonusPack questBonus, QuestBonusTargetCheck checker)
 {
     this.questBonusPack   = questBonus;
     this.bonusTargetCheck = checker;
 }
Exemplo n.º 12
0
 public void SetView(CMD_PartyEdit partyEdit, QuestBonusPack questBonus, QuestBonusTargetCheck checker)
 {
     this.InitializeList();
     this.SetMonsterList(partyEdit, questBonus, checker);
 }
 public void AllBuild(List <GameWebAPI.RespDataMN_GetDeckList.DeckList> dts, CMD_PartyEdit partyEdit, QuestBonusPack questBonus, QuestBonusTargetCheck checker)
 {
     base.InitBuild();
     this.fastSetPartObjs.Clear();
     this.partsCount = dts.Count;
     if (base.selectCollider != null)
     {
         float num  = base.selectCollider.width + this.horizontalMargin;
         float num2 = (float)this.partsCount * num - this.horizontalMargin + this.horizontalBorder * 2f;
         float num3 = num2 / 2f - this.horizontalBorder - base.selectCollider.width / 2f;
         float y    = 0f;
         for (int i = dts.Count - 1; i >= 0; i--)
         {
             GameObject gameObject = base.AddBuildPart();
             gameObject.name += i.ToString();
             GUIListPartsPartyEdit component = gameObject.GetComponent <GUIListPartsPartyEdit>();
             if (component != null)
             {
                 component.SetOriginalPos(new Vector3(num3, y, -5f));
                 component.SetDeck(dts[i]);
                 component.partyEdit        = partyEdit;
                 component.selectPanelParty = this;
                 component.SetUI(questBonus, checker);
                 component.ShowGUI();
                 int partyNumber = int.Parse(dts[i].deckNum);
                 component.partyNumber = partyNumber;
                 this.fastSetPartObjs.Add(component);
             }
             num3 -= num;
         }
         base.width = num2;
         base.InitMinMaxLocation(true);
         base.FreeScrollMode = false;
     }
     this.arrowOffestX        = 504f;
     base.EnableEternalScroll = true;
 }