// Token: 0x060002D5 RID: 725 RVA: 0x0000C4E4 File Offset: 0x0000A8E4 public void OpenPanel(int index, ShowType showType) { base.gameObject.SetActive(true); base.GetComponentInParent <UIMaster>().freezeObject(true); base.GetComponentInParent <UIMaster>().blockUI(true, new Color(0f, 0f, 0f, 0.3f)); if (showType != ShowType.Collect) { if (showType == ShowType.Specialty) { SpecialtyDataFormat specialtyDataFormat = SuperGameMaster.sDataBase.get_SpecialtyDB(index); ItemDataFormat itemDataFormat = SuperGameMaster.sDataBase.get_ItemDB_forId(specialtyDataFormat.itemId); this.DetailNameText.GetComponent <Text>().text = itemDataFormat.name; this.DetailImage.GetComponent <Image>().sprite = itemDataFormat.img; this.DetailPlaceText.GetComponent <Text>().text = specialtyDataFormat.place; this.DetailInfoText.GetComponent <Text>().text = itemDataFormat.info; } } else { CollectionDataFormat collectionDataFormat = SuperGameMaster.sDataBase.get_CollectDB(index); this.DetailNameText.GetComponent <Text>().text = collectionDataFormat.name; this.DetailImage.GetComponent <Image>().sprite = collectionDataFormat.img; this.DetailPlaceText.GetComponent <Text>().text = collectionDataFormat.place; this.DetailInfoText.GetComponent <Text>().text = collectionDataFormat.info; } SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Enter"]); this.BackFunc(); }
// Token: 0x0600041A RID: 1050 RVA: 0x0001BF98 File Offset: 0x0001A398 public CollectionDataFormat(CollectionDataFormat original) { this.name = original.name; this.place = original.place; this.info = original.info; this.img = original.img; this.id = original.id; }
// Token: 0x060003C8 RID: 968 RVA: 0x00016B64 File Offset: 0x00014F64 public void CreateButton(int showType) { RectTransform component = this.contentsList.GetComponent<RectTransform>(); for (int i = 0; i < component.transform.childCount; i++) { UnityEngine.Object.Destroy(component.GetChild(i).gameObject); } this.nowShowType = (ShowType)showType; if (showType != 0) { if (showType == 1) { for (int j = 0; j < SuperGameMaster.sDataBase.count_SpecialtyDB(); j++) { GameObject gameObject = UnityEngine.Object.Instantiate<GameObject>(this.btnPref); gameObject.transform.SetParent(component, false); SpecialtyDataFormat specialtyDataFormat = SuperGameMaster.sDataBase.get_SpecialtyDB(j); if (SuperGameMaster.saveData.specialtyFlags[specialtyDataFormat.id]) { ItemDataFormat itemDataFormat = SuperGameMaster.sDataBase.get_ItemDB_forId(specialtyDataFormat.itemId); gameObject.GetComponent<CollectionButton>().SetData(j, true); gameObject.GetComponent<CollectionButton>().CngName(itemDataFormat.name); gameObject.GetComponent<CollectionButton>().CngImage(itemDataFormat.img); } else { gameObject.GetComponent<CollectionButton>().SetData(j, false); } gameObject.GetComponent<CollectionButton>().MainScrollView = base.gameObject; } this.CollectBtn.GetComponent<Button>().interactable = true; this.SpecialtyBtn.GetComponent<Button>().interactable = false; } } else { for (int k = 0; k < SuperGameMaster.sDataBase.count_CollectDB(); k++) { GameObject gameObject2 = UnityEngine.Object.Instantiate<GameObject>(this.btnPref); gameObject2.transform.SetParent(component, false); CollectionDataFormat collectionDataFormat = SuperGameMaster.sDataBase.get_CollectDB(k); if (SuperGameMaster.saveData.collectFlags[collectionDataFormat.id]) { gameObject2.GetComponent<CollectionButton>().SetData(k, true); gameObject2.GetComponent<CollectionButton>().CngName(collectionDataFormat.name); gameObject2.GetComponent<CollectionButton>().CngImage(collectionDataFormat.img); } else { gameObject2.GetComponent<CollectionButton>().SetData(k, false); } gameObject2.GetComponent<CollectionButton>().MainScrollView = base.gameObject; } this.CollectBtn.GetComponent<Button>().interactable = false; this.SpecialtyBtn.GetComponent<Button>().interactable = true; } SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Cursor"]); }
// Token: 0x06000331 RID: 817 RVA: 0x0001049C File Offset: 0x0000E89C public void getItemTest() { if (this.pathNodeSelect) { this.setResultText("経路選択中のモードです。\n終了するには再度「経由」ボタンを押してください"); return; } if (this.travelResult.route == null) { this.setResultText("移動データがありません。"); return; } List <ItemListFormat> list = new List <ItemListFormat>(); list = base.GetComponent <TravelSimulator>().getItem(this.travelResult.route); string text = "取得結果:route["; foreach (int num in this.travelResult.route) { text = text + num.ToString() + "-"; } if (this.travelResult.route.Count != 0) { text = text.Remove(text.Length - 1, 1); } text += "] ⇒ item["; foreach (ItemListFormat itemListFormat in list) { text += itemListFormat.id.ToString(); if (itemListFormat.stock != 1) { string text2 = text; text = string.Concat(new object[] { text2, "(*", itemListFormat.stock, ")" }); } text += ","; } if (list.Count != 0) { text = text.Remove(text.Length - 1, 1); } text += "] ("; foreach (ItemListFormat itemListFormat2 in list) { if (itemListFormat2.id < 10000) { if (itemListFormat2.id >= 0) { ItemDataFormat itemDataFormat = new ItemDataFormat(); itemDataFormat = SuperGameMaster.sDataBase.get_ItemDB_forId(itemListFormat2.id); text += itemDataFormat.name; if (itemListFormat2.stock != 1) { string text2 = text; text = string.Concat(new object[] { text2, "*", itemListFormat2.stock, string.Empty }); } } else { if (itemListFormat2.id == -1) { text = text + "みつ葉*" + itemListFormat2.stock; } if (itemListFormat2.id == -2) { text = text + "福引き*" + itemListFormat2.stock; } } } else if (itemListFormat2.id < 30000) { int id = itemListFormat2.id - 10000; CollectionDataFormat collectionDataFormat = new CollectionDataFormat(); collectionDataFormat = SuperGameMaster.sDataBase.get_CollectDB_forId(id); text = text + "【" + collectionDataFormat.name + "】"; } text += ","; } if (list.Count != 0) { text = text.Remove(text.Length - 1, 1); } text += ")"; this.setResultText(text); }
// Token: 0x06000334 RID: 820 RVA: 0x00011578 File Offset: 0x0000F978 public void getPrefTest() { if (this.pathNodeSelect) { return; } if (this.goalNodeId == -1) { this.setResultText("ノードが選択されていません"); return; } NodeDataFormat nodeDataFormat = SuperGameMaster.sDataBase.get_NodeDB_forId(this.goalNodeId); NodeItemDataFormat nodeItemDataFormat = SuperGameMaster.sDataBase.get_NodeItemDB_forId(this.goalNodeId); object[] array = new object[6]; array[0] = "ノード ["; array[1] = nodeDataFormat.id; array[2] = "] Type:"; int num = 3; NodeType type = nodeDataFormat.type; array[num] = type.ToString(); array[4] = " / Path:"; array[5] = nodeDataFormat.pathId; string text = string.Concat(array); text += " / "; text += "specialty:"; string text2 = string.Empty; string text3 = "["; string text4 = "("; for (int i = 0; i < nodeItemDataFormat.specialtyId.Length; i++) { ItemDataFormat itemDataFormat = SuperGameMaster.sDataBase.get_ItemDB_forId(nodeItemDataFormat.specialtyId[i]); text2 = text2 + itemDataFormat.id + ","; text3 = text3 + nodeItemDataFormat.specialtyPer[i] + "%,"; text4 = text4 + itemDataFormat.name + ","; } if (nodeItemDataFormat.specialtyId.Length != 0) { text2 = text2.Remove(text2.Length - 1, 1); text3 = text3.Remove(text3.Length - 1, 1); text4 = text4.Remove(text4.Length - 1, 1); } text2 += " "; text3 += "] "; text4 += ") "; string text5 = text; text = string.Concat(new string[] { text5, text2, text3, text4, "\n" }); NodePrefDataFormat nodePrefDataFormat = SuperGameMaster.sDataBase.get_NodePrefDB_forId(this.goalNodeId); if (nodePrefDataFormat != null) { text += "<color=orange>【県データ】"; text += "ノード ["; List <int> list_NodeDB_prefIds = SuperGameMaster.sDataBase.getList_NodeDB_prefIds(nodePrefDataFormat.id); foreach (int num2 in list_NodeDB_prefIds) { text = text + num2 + ","; } text = text.Remove(text.Length - 1, 1); text += "]"; text += " / "; if (nodePrefDataFormat.collectionId != -1) { CollectionDataFormat collectionDataFormat = SuperGameMaster.sDataBase.get_CollectDB_forId(nodePrefDataFormat.collectionId); text5 = text; text = string.Concat(new object[] { text5, "collect:", collectionDataFormat.id, " (", collectionDataFormat.name, ") / " }); } else { text += "collect:(なし) / "; } text += "specialty:"; text2 = string.Empty; text4 = "("; for (int j = 0; j < nodePrefDataFormat.specialtyId.Length; j++) { ItemDataFormat itemDataFormat2 = SuperGameMaster.sDataBase.get_ItemDB_forId(nodePrefDataFormat.specialtyId[j]); text2 = text2 + itemDataFormat2.id + ","; text4 = text4 + itemDataFormat2.name + ","; } if (nodeItemDataFormat.specialtyId.Length != 0) { text2 = text2.Remove(text2.Length - 1, 1); text4 = text4.Remove(text4.Length - 1, 1); } text2 += " "; text4 += ") "; text = text + text2 + text4 + "\n"; text += "</color>"; } this.setResultText(text); }
// Token: 0x060003B1 RID: 945 RVA: 0x00016228 File Offset: 0x00014628 public void CreateResult(bool success, int _evtId, List <int> itemList, int goalNodeId) { this.evtId = _evtId; this.numBase_Clover.createNumObj(itemList[0], this.numBase_Clover.GetComponent <NumObjCreater>().prefub.transform.localPosition, (int)this.numBase_Clover.GetComponent <NumObjCreater>().prefub.transform.GetComponent <RectTransform>().sizeDelta.x); this.numBase_Ticket.createNumObj(itemList[1], this.numBase_Ticket.GetComponent <NumObjCreater>().prefub.transform.localPosition, (int)this.numBase_Ticket.GetComponent <NumObjCreater>().prefub.transform.GetComponent <RectTransform>().sizeDelta.x); itemList.RemoveAt(0); itemList.RemoveAt(0); if (!success) { this.MainUI.SetActive(false); this.SubUI.SetActive(true); return; } this.MainUI.SetActive(true); this.SubUI.SetActive(false); int num = itemList.FindIndex((int val) => val > 10000); if (num != -1) { CollectionDataFormat collectionDataFormat = SuperGameMaster.sDataBase.get_CollectDB_forId(itemList[num] - 10000); if (collectionDataFormat != null) { this.CollectionImage.GetComponent <Image>().sprite = collectionDataFormat.img; } } else { NodeDataFormat nodeDataFormat = SuperGameMaster.sDataBase.get_NodeDB_forId(goalNodeId); NodePrefDataFormat nodePrefDataFormat = SuperGameMaster.sDataBase.get_NodePrefDB_forId(nodeDataFormat.pathId); if (nodePrefDataFormat.collectionId == -1) { this.CollectionResultPanel.SetActive(false); } else if (SuperGameMaster.FindCollection(nodePrefDataFormat.collectionId)) { CollectionDataFormat collectionDataFormat2 = SuperGameMaster.sDataBase.get_CollectDB_forId(nodePrefDataFormat.collectionId); if (collectionDataFormat2 != null) { this.CollectionImage.GetComponent <Image>().sprite = collectionDataFormat2.img; this.CompleteStampImage.SetActive(true); } } else { this.CollectionImage.GetComponent <Image>().sprite = this.QuestionImg; this.CollectionImage.GetComponent <RectTransform>().sizeDelta = new Vector2(this.QuestionImg.rect.width, this.QuestionImg.rect.height); } } for (int i = 0; i < this.SpecialtyMax * 2; i += 2) { if (i >= itemList.Count) { GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.itemPref); gameObject.transform.SetParent(this.SpecialtyImagePanel.GetComponent <RectTransform>(), false); } else { int num2 = itemList[i]; int num3 = itemList[i + 1]; if (num2 >= 10000) { itemList.RemoveAt(i); itemList.RemoveAt(i); i -= 2; } else { GameObject gameObject2 = UnityEngine.Object.Instantiate <GameObject>(this.itemPref); gameObject2.transform.SetParent(this.SpecialtyImagePanel.GetComponent <RectTransform>(), false); ItemDataFormat itemDataFormat = SuperGameMaster.sDataBase.get_ItemDB_forId(num2); if (itemDataFormat != null) { gameObject2.GetComponent <Image>().enabled = true; gameObject2.transform.GetChild(0).GetComponentInChildren <Image>().sprite = itemDataFormat.img; if (num3 > 1) { gameObject2.transform.GetChild(1).gameObject.SetActive(true); gameObject2.GetComponentInChildren <Text>().text = "x" + num3; if (SuperGameMaster.FindItemStock(num2) + num3 > 99) { gameObject2.GetComponentInChildren <Text>().color = new Color(1f, 0f, 0f); } } } } } } }
// Token: 0x060003E6 RID: 998 RVA: 0x00019060 File Offset: 0x00017460 public void CreateMailButton() { RectTransform component = this.contentsList.GetComponent <RectTransform>(); float spacing = component.GetComponent <VerticalLayoutGroup>().spacing; float preferredHeight = this.btnPref.GetComponent <LayoutElement>().preferredHeight; foreach (MailEventFormat mailEventFormat in SuperGameMaster.saveData.MailList) { GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.btnPref); gameObject.transform.SetParent(component, false); gameObject.GetComponent <MailButton>().setId(mailEventFormat.mailId); gameObject.GetComponent <MailButton>().CngTitleName(mailEventFormat.title); if (mailEventFormat.senderCharaId != -1) { CharacterDataFormat characterDataFormat = SuperGameMaster.sDataBase.get_CharaDB_forId(mailEventFormat.senderCharaId); gameObject.GetComponent <MailButton>().CngSenderImage(characterDataFormat.img); } else { gameObject.GetComponent <MailButton>().CngSenderImage(null); } if (mailEventFormat.mailEvt == EvtId.Gift || mailEventFormat.mailEvt == EvtId.Management) { if (mailEventFormat.CloverPoint > 0) { gameObject.GetComponent <MailButton>().SetImageAndNum(mailEventFormat.CloverPoint, this.cloverImg); } else if (mailEventFormat.ticket > 0) { gameObject.GetComponent <MailButton>().SetImageAndNum(mailEventFormat.ticket, this.ticketImg); } else if (mailEventFormat.itemId == 1000) { gameObject.GetComponent <MailButton>().SetImageAndNum(mailEventFormat.itemStock, this.fourCloverImg); } else { gameObject.GetComponent <MailButton>().SetImageAndNum(0, this.cloverImg); } } if (mailEventFormat.mailEvt == EvtId.Leaflet) { gameObject.GetComponent <MailButton>().SetImage(this.leafletImg); } gameObject.GetComponent <MailButton>().SetMailEvtId(mailEventFormat.mailEvt, mailEventFormat.opened); if (mailEventFormat.itemId != -1 && mailEventFormat.itemId != 1000) { if (mailEventFormat.itemId < 10000) { ItemDataFormat itemDataFormat = SuperGameMaster.sDataBase.get_ItemDB_forId(mailEventFormat.itemId); gameObject.GetComponent <MailButton>().CngItemImage(itemDataFormat.img); } else { CollectionDataFormat collectionDataFormat = SuperGameMaster.sDataBase.get_CollectDB_forId(mailEventFormat.itemId - 10000); gameObject.GetComponent <MailButton>().CngItemImage(collectionDataFormat.img); } } else { gameObject.GetComponent <MailButton>().CngItemImage(null); } gameObject.GetComponent <MailButton>().mailScrollView = base.gameObject; if (mailEventFormat.opened) { gameObject.GetComponent <Image>().color = new Color(0.8f, 0.8f, 0.8f); } } }