public void AllBuild(List <GameWebAPI.RespDataGA_GetGachaInfo.Result> gashaInfoList, Texture[] textureList, Action <int> pushedAction, int selectedButtonIndex, bool isTutorial) { this.animIndexBK = -1; base.InitBuild(); this.partsCount = gashaInfoList.Count; if (null != base.selectCollider) { this.actionPushedButton = pushedAction; GUISelectPanelBSPartsUD.PanelBuildData panelBuildData = base.CalcBuildData(1, this.partsCount, 1f, 1f); float num = panelBuildData.startY; for (int i = 0; i < gashaInfoList.Count; i++) { GameWebAPI.RespDataGA_GetGachaInfo.Result result = gashaInfoList[i]; GameObject gameObject = base.AddBuildPart(); GUIListPartsGashaMain component = gameObject.GetComponent <GUIListPartsGashaMain>(); if (null != component) { component.SetOriginalPos(new Vector3(0f, num, -5f)); component.GashaInfo = result; component.ShowGUI(textureList[i]); component.selectPanelA = this; component.AvoidDisableAllCollider = true; component.SetPushedAction(new Action <int>(this.OnPushedGashaButton)); if (isTutorial && result.priceType.GetCostAssetsCategory() == MasterDataMng.AssetCategory.LINK_POINT) { component.gameObject.AddComponent <TutorialEmphasizeUI>(); TutorialEmphasizeUI component2 = component.gameObject.GetComponent <TutorialEmphasizeUI>(); component2.UiName = TutorialEmphasizeUI.UiNameType.TAB2_RIGHT; } if (i == selectedButtonIndex) { component.SetBGColor(true); component.SetFadeInEndCallBack(delegate { this.SetCellAnim(selectedButtonIndex); }); } } num -= panelBuildData.pitchH; } base.height = panelBuildData.lenH; base.InitMinMaxLocation(selectedButtonIndex, 0f); if (!this.partObjs[selectedButtonIndex].IsFadeDo()) { this.partObjs[selectedButtonIndex].gameObject.SetActive(false); this.SetCellAnim(selectedButtonIndex); } } }
public override void SetData() { this.data = CMD_Training_Menu.instance.GetData(base.IDX); string strTitle = this.data.strTitle; if (strTitle != null) { if (!(strTitle == "MealTitle")) { if (strTitle == "ChipSphereTitle") { TutorialEmphasizeUI tutorialEmphasizeUI = base.gameObject.AddComponent <TutorialEmphasizeUI>(); tutorialEmphasizeUI.UiName = TutorialEmphasizeUI.UiNameType.CHIP_INSTALLING; } } else { TutorialEmphasizeUI tutorialEmphasizeUI = base.gameObject.AddComponent <TutorialEmphasizeUI>(); tutorialEmphasizeUI.UiName = TutorialEmphasizeUI.UiNameType.MEAL; } } }