public int AllBuild(List <QuestData.WorldStageData> dts, bool fromResult, GameWebAPI.RespDataMA_GetWorldDungeonM.WorldDungeonM nextDungeon) { this.animIndexBK = -1; base.InitBuild(); this.partsCount = dts.Count; int viewIdx = 0; if (base.selectCollider != null) { GUISelectPanelBSPartsUD.PanelBuildData panelBuildData = base.CalcBuildData(1, this.partsCount, 1f, 1f); float num = panelBuildData.startY; int num2 = 0; dts.Reverse(); if (!fromResult) { viewIdx = 0; } else { viewIdx = dts.Count - int.Parse(nextDungeon.worldStageId); } global::Debug.Assert(0 <= viewIdx, "Error : viewIdx の値が不正"); foreach (QuestData.WorldStageData worldStageData in dts) { GameObject gameObject = base.AddBuildPart(); GUIListPartsA_StageL component = gameObject.GetComponent <GUIListPartsA_StageL>(); if (component != null) { component.SetOriginalPos(new Vector3(0f, num, -5f)); component.Data = worldStageData; component.selectPanelA = this; component.AvoidDisableAllCollider = true; CampaignLabelQuest component2 = gameObject.GetComponent <CampaignLabelQuest>(); component2.AreaId = worldStageData.worldStageM.worldStageId; component.SetProgress(); if (num2 == viewIdx) { component.SetBGColor(true); component.SetFadeInEndCallBack(delegate { this.SetCellAnim(viewIdx); }); } } num -= panelBuildData.pitchH; num2++; } base.height = panelBuildData.lenH; base.InitMinMaxLocation(viewIdx, 0f); if (!this.partObjs[viewIdx].IsFadeDo()) { this.partObjs[viewIdx].gameObject.SetActive(false); this.SetCellAnim(viewIdx); } } return(viewIdx); }
public int AllBuildBanner(List <QuestData.WorldStageData> dts, bool fromResult, GameWebAPI.RespDataMA_GetWorldDungeonM.WorldDungeonM nextDungeon) { this.animIndexBK = -1; RestrictionInput.StartLoad(RestrictionInput.LoadType.SMALL_IMAGE_MASK_ON); base.InitBuild(); this.partsCount = dts.Count; int viewIdx = 0; if (!fromResult) { viewIdx = 0; } else { viewIdx = dts.Count - int.Parse(nextDungeon.worldStageId); } int i; for (i = 0; i < dts.Count; i++) { if (dts[i].wdi.isOpen == 1) { break; } } if (i == dts.Count) { viewIdx = 0; } else { while (dts[viewIdx].wdi.isOpen != 1) { viewIdx++; if (viewIdx >= dts.Count) { viewIdx = 0; } } } if (base.selectCollider != null) { GUISelectPanelBSPartsUD.PanelBuildData panelBuildData = base.CalcBuildData(1, this.partsCount, 1f, 1f); float num = panelBuildData.startY; int num2 = 0; int num3 = 0; foreach (QuestData.WorldStageData worldStageData in dts) { GameObject gameObject = base.AddBuildPart(); gameObject.transform.localScale = Vector3.zero; GUIListPartsA_StageL_Banner component = gameObject.GetComponent <GUIListPartsA_StageL_Banner>(); component.SetOriginalPos(new Vector3(0f, num, -5f)); if (component != null) { component.SetData(worldStageData, this.animationMoving); component.ShowGUI(); CampaignLabelQuest component2 = component.GetComponent <CampaignLabelQuest>(); component2.AreaId = worldStageData.worldStageM.worldStageId; if (num2 == viewIdx) { component.SetBGColor(true); component.SetFadeInEndCallBack(delegate { this.SetCellAnim(viewIdx); }); } this.SetBanner(component); num3++; } num -= panelBuildData.pitchH; num2++; } base.height = panelBuildData.lenH; base.InitMinMaxLocation(viewIdx, 0f); if (viewIdx < this.partObjs.Count && !this.partObjs[viewIdx].IsFadeDo()) { this.partObjs[viewIdx].gameObject.SetActive(false); this.SetCellAnim(viewIdx); } foreach (GUIListPartBS guilistPartBS in this.partObjs) { guilistPartBS.transform.localScale = this.bannerScale; } } RestrictionInput.EndLoad(); return(viewIdx); }