protected ItemIcon CreateItemIconDetail(ITEM_ICON_TYPE icon_type, int icon_id, RARITY_TYPE?rarity, SkillItemSortData item_data, bool is_show_main_status, Transform parent = null, string event_name = null, int event_data = 0, bool is_new = false, int toggle_group = -1, int select_number = -1, bool is_equipping = false, bool is_select_max = false)
    {
        ItemIconDetail.ICON_STATUS iCON_STATUS = ItemIconDetail.ICON_STATUS.NONE;
        if (is_select_max && select_number == -1)
        {
            iCON_STATUS = ItemIconDetail.ICON_STATUS.GRAYOUT;
        }
        if (inventoryUI == UI.GRD_INVENTORY)
        {
            if (icon_type == ITEM_ICON_TYPE.SKILL_GROW)
            {
                ItemTable.ItemData itemData = Singleton <ItemTable> .I.GetItemData(item_data.skillData.itemId);

                bool     is_select = select_number != -1;
                ItemIcon itemIcon  = ItemIconDetail.CreateMaterialIcon(icon_type, icon_id, rarity, itemData, is_show_main_status, parent, item_data.skillData.num, itemData.name, "MATERIAL_NUM", event_data, toggle_group, is_select, false);
                ((ItemIconDetail)itemIcon).setupperSkill.GrayOut(iCON_STATUS);
                return(itemIcon);
            }
            return(ItemIconDetail.CreateSkillDetailSelectNumberIcon(icon_type, icon_id, rarity, item_data, is_show_main_status, parent, event_name, event_data, is_new, toggle_group, select_number, is_equipping, iCON_STATUS));
        }
        if (icon_type == ITEM_ICON_TYPE.SKILL_GROW)
        {
            ItemTable.ItemData itemData2 = Singleton <ItemTable> .I.GetItemData(item_data.skillData.itemId);

            bool is_select2 = select_number != -1;
            return(ItemIconDetailSmall.CreateSmallMaterialIcon(icon_type, icon_id, rarity, parent, item_data.skillData.num, itemData2.name, "MATERIAL_NUM", event_data, toggle_group, is_select2, is_new, 0, 0, iCON_STATUS));
        }
        return(ItemIconDetailSmall.CreateSmallSkillSelectDetailIcon(icon_type, icon_id, rarity, item_data, parent, event_name, event_data, is_new, toggle_group, select_number, is_equipping, iCON_STATUS));
    }
Exemple #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));
    }
Exemple #3
0
        public override ItemIcon CreateIcon(object[] data)
        {
            SortCompareData sortCompareData = data[0] as SortCompareData;
            Transform       parent          = data[1] as Transform;
            int             event_data      = (int)data[2];
            bool            is_new          = MonoBehaviourSingleton <InventoryManager> .I.IsNewItem(ITEM_ICON_TYPE.ITEM, sortCompareData.GetUniqID());

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

            ItemStorageTop.SHOW_INVENTORY_MODE sHOW_INVENTORY_MODE = (ItemStorageTop.SHOW_INVENTORY_MODE)(int) data[3];
            if (sHOW_INVENTORY_MODE != ItemStorageTop.SHOW_INVENTORY_MODE.SMALL)
            {
                return(ItemIconDetail.CreateMaterialIcon(sortCompareData.GetIconType(), sortCompareData.GetIconID(), sortCompareData.GetRarity(), itemData, sHOW_INVENTORY_MODE == ItemStorageTop.SHOW_INVENTORY_MODE.MAIN_STATUS, parent, sortCompareData.GetNum(), sortCompareData.GetName(), "SELECT", event_data, -1, false, is_new));
            }
            return(ItemIconDetailSmall.CreateSmallMaterialIcon(sortCompareData.GetIconType(), sortCompareData.GetIconID(), sortCompareData.GetRarity(), parent, sortCompareData.GetNum(), sortCompareData.GetName(), "SELECT", event_data, -1, false, is_new, 0, 0, ItemIconDetail.ICON_STATUS.NONE));
        }