Beispiel #1
0
    public override void UpdateUI()
    {
        SetLabelText((Enum)UI.LBL_NAME, equipItemInfo.tableData.name);
        SetLabelText((Enum)UI.LBL_LV_NOW, equipItemInfo.level.ToString());
        SetLabelText((Enum)UI.LBL_LV_MAX, equipItemInfo.tableData.maxLv.ToString());
        SetEquipmentTypeIcon((Enum)UI.SPR_TYPE_ICON, (Enum)UI.SPR_TYPE_ICON_BG, (Enum)UI.SPR_TYPE_ICON_RARITY, equipItemInfo.tableData);
        Transform       ctrl        = GetCtrl(UI.OBJ_BEFORE_ITEM_ROOT);
        Transform       ctrl2       = GetCtrl(UI.OBJ_AFTER_ITEM_ROOT);
        AbilityItemInfo abilityItem = equipItemInfo.GetAbilityItem();

        if (abilityItem == null)
        {
            SetLabelText(ctrl, UI.LBL_ABILITY_ITEM_NAME, string.Empty);
            SetLabelText(ctrl, UI.LBL_ABILITY_ITEM_DESC, StringTable.Get(STRING_CATEGORY.TEXT_SCRIPT, 28u));
        }
        else
        {
            SetLabelText(ctrl, UI.LBL_ABILITY_ITEM_NAME, abilityItem.GetName());
            SetLabelText(ctrl, UI.LBL_ABILITY_ITEM_DESC, abilityItem.GetDescription());
        }
        SetLabelText(ctrl2, UI.LBL_ABILITY_ITEM_NAME, abilityItemInfo.GetName());
        SetLabelText(ctrl2, UI.LBL_ABILITY_ITEM_DESC, abilityItemInfo.itemData.GetDescription());
    }
Beispiel #2
0
    private ItemIcon CreateIcon(AbilityItemSortData item_data, Transform parent, int index)
    {
        bool is_new = MonoBehaviourSingleton <InventoryManager> .I.IsNewItem(ITEM_ICON_TYPE.ABILITY_ITEM, item_data.GetUniqID());

        MonoBehaviourSingleton <InventoryManager> .I.AddShowFragsAbilityItem(item_data.GetUniqID());

        ItemTable.ItemData itemData = Singleton <ItemTable> .I.GetItemData(item_data.GetTableID());

        if (currentShowInventoryMode != SHOW_INVENTORY_MODE.SMALL)
        {
            return(ItemIconDetail.CreateMaterialIcon(item_data.GetIconType(), item_data.GetIconID(), item_data.GetRarity(), itemData, true, parent, item_data.GetNum(), item_data.GetName(), "SELECT_ITEM", index, -1, false, is_new));
        }
        return(ItemIconDetailSmall.CreateSmallMaterialIcon(item_data.GetIconType(), item_data.GetIconID(), item_data.GetRarity(), parent, item_data.GetNum(), item_data.GetName(), "SELECT_ITEM", index, -1, false, is_new, 0, 0, ItemIconDetail.ICON_STATUS.NONE));
    }