private void DisplayChocographList() { for (Int32 i = 0; i < this.chocographItemList.Count; i++) { ChocographUI.ChocographItem chocographItem = this.chocographItemList[i]; if (!this.hasMap[i]) { chocographItem.Button.Help.Enable = false; } else { Boolean flag = this.ability > this.GetIconType(i); chocographItem.Content.SetActive(true); String iconSprite = this.GetIconSprite((ChocographUI.Icon)((!this.hasGem[i]) ? ((ChocographUI.Icon)((!flag) ? ChocographUI.Icon.BoxDisableClose : ChocographUI.Icon.BoxClose)) : ((ChocographUI.Icon)((!flag) ? ChocographUI.Icon.BoxDisableOpen : ChocographUI.Icon.BoxOpen)))); chocographItem.IconSprite.spriteName = iconSprite; chocographItem.ItemName.text = FF9TextTool.ChocoboUIText(i + (Int32)FF9TextTool.ChocographNameStartIndex); chocographItem.ItemName.color = ((!flag) ? FF9TextTool.Gray : FF9TextTool.White); chocographItem.Button.Help.Enable = true; chocographItem.Button.Help.TextKey = String.Empty; if (flag) { chocographItem.Button.Help.TextKey = FF9TextTool.ChocoboUIText(i + (Int32)FF9TextTool.ChocographHelpStartIndex); } else { chocographItem.Button.Help.TextKey = FF9TextTool.ChocoboUIText(5); } } } }
private void ClearChocoGraphList() { for (Int32 i = 0; i < this.chocographItemList.Count; i++) { ChocographUI.ChocographItem chocographItem = this.chocographItemList[i]; chocographItem.Content.SetActive(false); } }