コード例 #1
0
 // 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();
 }
コード例 #2
0
	// 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"]);
	}
コード例 #3
0
 // Token: 0x06000430 RID: 1072 RVA: 0x0001CA7C File Offset: 0x0001AE7C
 public SpecialtyDataFormat(SpecialtyDataFormat original)
 {
     this.id     = original.id;
     this.itemId = original.itemId;
     this.place  = original.place;
 }