Пример #1
0
    private void DisplayKeyItemDetail(Transform item, ListDataTypeBase data, Int32 index, Boolean isInit)
    {
        FieldKeyItemListData fieldKeyItemListData = (FieldKeyItemListData)data;
        KeyItemDetailHUD     keyItemDetailHud     = new KeyItemDetailHUD(item.gameObject);

        if (isInit)
        {
            DisplayWindowBackground(item.gameObject, null);
        }
        if (fieldKeyItemListData.KeyItemId == FF9FITEM_RARE_NONE)
        {
            keyItemDetailHud.Button.Help.Enable       = false;
            keyItemDetailHud.NewIconSprite.spriteName = String.Empty;
            keyItemDetailHud.NewIconLabelSprite.gameObject.SetActive(false);
            keyItemDetailHud.NameLabel.gameObject.SetActive(false);
        }
        else
        {
            keyItemDetailHud.NameLabel.gameObject.SetActive(true);
            keyItemDetailHud.NameLabel.text = FF9TextTool.ImportantItemName(fieldKeyItemListData.KeyItemId);
            if (ff9item.FF9Item_IsUsedImportant(fieldKeyItemListData.KeyItemId))
            {
                keyItemDetailHud.NewIconSprite.spriteName = String.Empty;
                keyItemDetailHud.NewIconLabelSprite.gameObject.SetActive(false);
            }
            else
            {
                keyItemDetailHud.NewIconSprite.spriteName = "icon_new_exclamation";
                keyItemDetailHud.NewIconLabelSprite.gameObject.SetActive(true);
            }
            keyItemDetailHud.Button.Help.Enable = true;
            keyItemDetailHud.Button.Help.Text   = FF9TextTool.ImportantItemHelpDescription(fieldKeyItemListData.KeyItemId);
        }
    }
Пример #2
0
 private void DisplayKeyItemSkin(Boolean visibility)
 {
     if (visibility)
     {
         Int32 keyItemId = _keyItemIdList[_currentItemIndex];
         _keyItemDetailName.text            = FF9TextTool.ImportantItemName(keyItemId);
         _keyItemDetailDescription.spacingY = _defaultSkinLabelSpacingY;
         String text            = FF9TextTool.ImportantItemSkin(keyItemId);
         Single additionalWidth = 0.0f;
         _keyItemDetailDescription.text = _keyItemDetailDescription.PhrasePreOpcodeSymbol(text, ref additionalWidth);
         Loading = true;
         // ISSUE: method pointer
         _keyItemSkinTransition.TweenIn(new Byte[1], () =>
         {
             Loading = false;
             _isShowingKeyItemDesp = true;
         });
         ButtonGroupState.DisableAllGroup(false);
         ButtonGroupState.HoldActiveStateOnGroup(KeyItemGroupButton);
     }
     else
     {
         Loading = true;
         _isShowingKeyItemDesp = false;
         // ISSUE: method pointer
         _keyItemSkinTransition.TweenOut(new Byte[1], () =>
         {
             Loading = false;
             ButtonGroupState.ActiveGroup = KeyItemGroupButton;
             Singleton <PointerManager> .Instance.SetPointerBlinkAt(ButtonGroupState.ActiveButton, false);
         });
         ff9item.FF9Item_UseImportant(_keyItemIdList[_currentItemIndex]);
         DisplayKeyItem();
     }
 }
Пример #3
0
 public static String GetItemName(Int32 index)
 {
     if (index < EventEngine.kSItemOfs)
     {
         return(FF9TextTool.ItemName(index));
     }
     if (index < EventEngine.kCItemOfs)
     {
         return(FF9TextTool.ImportantItemName(index - EventEngine.kSItemOfs));
     }
     return(FF9TextTool.CardName(index - EventEngine.kCItemOfs));
 }