public void SetBuffInfo() { if (buffInfoItemList.Count == 0) { for (int i = 0; i < GameDataManager.Instance.userData.milkItemList.Count; i++) { BuffInfoItem bf = Instantiate(buffInfoGo, transform); bf.SetBuffItem(GameDataManager.Instance.userData.milkItemList[i]); bf.gameObject.SetActive(false); buffInfoItemList.Add(bf); } } else { for (int i = 0; i < buffInfoItemList.Count; i++) { buffInfoItemList[i].gameObject.SetActive(false); } } }
// Token: 0x060019A8 RID: 6568 RVA: 0x002B7EE8 File Offset: 0x002B60E8 private void SetData() { int num = 0; BuffInfoItem item = default(BuffInfoItem); item.Init(); item.m_Type = 0; item.m_Width = 775f; item.m_Height = this.GetTitleTextHeight() + 20f; item.m_ColumNum = 1; item.m_Column[0].ColumnWidth = 755f; item.m_DataIdx = 0; this.m_Data.Add(item); item = default(BuffInfoItem); item.Init(); item.m_Type = 1; item.m_Width = 775f; item.m_Height = 45f; item.m_ColumNum = 1; item.m_DataIdx = 0; this.m_Data.Add(item); item = default(BuffInfoItem); item.Init(); item.m_Type = 4; item.m_Width = 775f; item.m_Height = 30f; item.m_ColumNum = 1; item.m_DataIdx = 0; item.m_EffectType = GATTR_ENUM.EGE_DESHIELD_ATK; item.m_EffectValue = DataManager.Instance.AttribVal.GetEffectBaseVal(GATTR_ENUM.EGE_DESHIELD_ATK); item.m_StrIdx = num++; this.m_Data.Add(item); for (int i = 1; i < this.effectTypeArray.Length; i++) { uint effectBaseVal = DataManager.Instance.AttribVal.GetEffectBaseVal(this.effectTypeArray[i]); if (effectBaseVal > 0u) { item = default(BuffInfoItem); item.Init(); item.m_Type = 4; item.m_Width = 775f; item.m_Height = 30f; item.m_ColumNum = 1; item.m_DataIdx = 0; item.m_EffectType = this.effectTypeArray[i]; item.m_EffectValue = effectBaseVal; item.m_StrIdx = num++; this.m_Data.Add(item); } } item = default(BuffInfoItem); item.Init(); item.m_Type = 2; item.m_Width = 775f; item.m_Height = 40f; item.m_ColumNum = 2; item.m_DataIdx = 0; item.m_Column[0].ColumnWidth = 150f; item.m_Column[1].ColumnWidth = 625f; this.m_Data.Add(item); num = 0; for (int j = 0; j < 11; j++) { item = default(BuffInfoItem); item.Init(); item.m_Type = 3; item.m_Width = 775f; item.m_Height = 40f; item.m_ColumNum = 2; item.m_DataIdx = 0; item.m_Column[0].ColumnWidth = 150f; item.m_Column[1].ColumnWidth = 625f; item.m_StrIdx = num++; this.m_Data.Add(item); } }