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));
    }
Exemplo n.º 2
0
 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)
 {
     if (inventoryUI == UI.GRD_INVENTORY)
     {
         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, ItemIconDetail.ICON_STATUS.NONE));
     }
     return(ItemIconDetailSmall.CreateSmallSkillSelectDetailIcon(icon_type, icon_id, rarity, item_data, parent, event_name, event_data, is_new, toggle_group, select_number, is_equipping, ItemIconDetail.ICON_STATUS.NONE));
 }