Example #1
0
 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);
             }
         }
     }
 }
Example #2
0
    private void DisplayHint(Int32 currentOnSelectItemIndex)
    {
        this.HintAbilityRequired.ClearAbility();
        this.HintMap.spriteName = "chocograph_map_" + currentOnSelectItemIndex.ToString("D" + 2);
        this.HintText.text      = FF9TextTool.ChocoboUIText(currentOnSelectItemIndex + (Int32)FF9TextTool.ChocographDetailStartIndex);
        Int32 iconType = this.GetIconType(currentOnSelectItemIndex);

        for (Int32 i = 0; i <= iconType; i++)
        {
            String abilitySprite = this.GetAbilitySprite((Int32)((this.ability <= i) ? 5 : i));
            this.HintAbilityRequired.AbilitySpriteList[i].spriteName = abilitySprite;
        }
    }