Exemple #1
0
    private void OnQuery_SLOT_DETAIL()
    {
        int num = (int)GameSection.GetEventData();

        selectEquipIndex = num >> 16;
        selectSkillIndex = num % 65536;
        if (lookOnly || selectSkillIndex < 0 || selectEquipIndex < 0)
        {
            GameSection.StopEvent();
        }
        else
        {
            SkillItemInfo itemData      = equipAndSkill[selectEquipIndex].skillSlotUIData[selectSkillIndex].itemData;
            EquipItemInfo equipItemInfo = equipAndSkill[selectEquipIndex].equipItemInfo;
            if (itemData == null)
            {
                GameSection.StopEvent();
            }
            else
            {
                SkillItemSortData skillItemSortData = new SkillItemSortData();
                skillItemSortData.SetItem(itemData);
                GameSection.SetEventData(new object[4]
                {
                    ItemDetailEquip.CURRENT_SECTION.STATUS_SKILL_LIST,
                    skillItemSortData,
                    equipItemInfo,
                    selectSkillIndex
                });
            }
        }
    }
    private int CustomCompare(SortCompareData lp, SortCompareData rp)
    {
        SkillItemSortData skillItemSortData  = lp as SkillItemSortData;
        SkillItemSortData skillItemSortData2 = rp as SkillItemSortData;

        if (skillItemSortData == null || skillItemSortData2 == null)
        {
            return(0);
        }
        if (skillItemSortData.skillData == null || skillItemSortData.skillData.tableData == null || skillItemSortData2.skillData == null || skillItemSortData2.skillData.tableData == null)
        {
            return(0);
        }
        if (skillItemSortData.skillData.tableData.type == SKILL_SLOT_TYPE.GROW && skillItemSortData2.skillData.tableData.type == SKILL_SLOT_TYPE.GROW)
        {
            return(m_defaultComparison(lp, rp));
        }
        if (skillItemSortData.skillData.tableData.type == SKILL_SLOT_TYPE.GROW)
        {
            return(-1);
        }
        if (skillItemSortData2.skillData.tableData.type == SKILL_SLOT_TYPE.GROW)
        {
            return(1);
        }
        return(m_defaultComparison(lp, rp));
    }
Exemple #3
0
    private void OnQuery_MATERIAL()
    {
        ResetSelectMaterialIcon();
        int num = (int)GameSection.GetEventData();
        SkillItemSortData item = inventory.datas[num] as SkillItemSortData;
        bool          flag     = materialSkillItem.Find((SkillItemInfo material) => material.uniqueID == item.GetUniqID()) != null;
        SkillItemInfo item2    = item.GetItemData() as SkillItemInfo;

        if (!IsEnableSelect(inventory.datas[num]))
        {
            toggleIndex = num;
            DispatchEvent("NOT_MATERIAL_FAVORITE", null);
        }
        else if (flag)
        {
            materialSkillItem.Remove(item2);
        }
        else if (materialSkillItem.Count < 10)
        {
            materialSkillItem.Add(item2);
        }
        else
        {
            toggleIndex = num;
        }
        UpdateMaterial();
        UpdateSelectMaterialIcon();
    }
    private void OnQuery_MATERIAL()
    {
        int num = (int)GameSection.GetEventData();
        SkillItemSortData item = inventory.datas[num] as SkillItemSortData;
        bool          flag     = materialSkillItem.Find((SkillItemInfo material) => material.uniqueID == item.GetUniqID()) != null;
        SkillItemInfo item2    = item.GetItemData() as SkillItemInfo;

        if (!IsEnableSelect(inventory.datas[num]))
        {
            if (item.IsFavorite())
            {
                GameSection.ChangeEvent("NOT_MATERIAL_FAVORITE", null);
            }
        }
        else if (flag)
        {
            materialSkillItem.Remove(item2);
        }
        else if (materialSkillItem.Count < MATERIAL_SELECT_MAX)
        {
            materialSkillItem.Add(item2);
        }
        bool flag2 = isSelectMax;

        isSelectMax = (materialSkillItem.Count == MATERIAL_SELECT_MAX);
        if (flag2 != isSelectMax)
        {
            UpdateInventory();
        }
        UpdateSelectMaterialIcon();
    }
    public override void Set(object[] data = null)
    {
        //IL_00bb: Unknown result type (might be due to invalid IL or missing references)
        //IL_0131: Unknown result type (might be due to invalid IL or missing references)
        //IL_0166: Unknown result type (might be due to invalid IL or missing references)
        //IL_0198: Unknown result type (might be due to invalid IL or missing references)
        //IL_01be: Unknown result type (might be due to invalid IL or missing references)
        //IL_01d5: Unknown result type (might be due to invalid IL or missing references)
        base.Set(null);
        if (infoRootAry[0] != null)
        {
            infoRootAry[0].SetActive(false);
            if (selectSP != null)
            {
                selectSP.set_enabled(false);
            }
        }
        SkillItemSortData skillItemSortData = data[0] as SkillItemSortData;

        SetupSelectNumberSprite((int)data[2]);
        ItemIconDetail.ICON_STATUS iCON_STATUS = (ItemIconDetail.ICON_STATUS)(int) data[3];
        SkillItemInfo skillItemInfo            = skillItemSortData.GetItemData() as SkillItemInfo;
        string        text = $"{skillItemSortData.GetLevel()}/{skillItemInfo.GetMaxLevel()}";

        if (skillItemInfo.IsExceeded())
        {
            text += UIUtility.GetColorText(StringTable.Format(STRING_CATEGORY.SMITH, 9u, skillItemInfo.exceedCnt), ExceedSkillItemTable.color);
        }
        infoRootAry[1].SetActive(true);
        infoRootAry[2].SetActive(false);
        SetName(skillItemSortData.GetName());
        SetVisibleBG(true);
        lblDescription.supportEncoding = true;
        lblDescription.text            = skillItemInfo.GetExplanationText(false);
        UILabel[] lABELS_LV_HEAD = LABELS_LV_HEAD;
        foreach (UILabel uILabel in lABELS_LV_HEAD)
        {
            uILabel.get_gameObject().SetActive(true);
        }
        UILabel[] lABELS_LV = LABELS_LV;
        foreach (UILabel uILabel2 in lABELS_LV)
        {
            uILabel2.get_gameObject().SetActive(true);
            uILabel2.supportEncoding = true;
            uILabel2.text            = text;
        }
        spEnableExceed.get_gameObject().SetActive(iCON_STATUS == ItemIconDetail.ICON_STATUS.VALID_EXCEED_0);
        bool flag = iCON_STATUS == ItemIconDetail.ICON_STATUS.VALID_EXCEED || iCON_STATUS == ItemIconDetail.ICON_STATUS.VALID_EXCEED_0;

        spriteBg[0].get_gameObject().SetActive(!flag);
        spriteBg[1].get_gameObject().SetActive(flag);
        if (iCON_STATUS == ItemIconDetail.ICON_STATUS.GRAYOUT)
        {
            infoRootAry[0].SetActive(true);
        }
        GrayOut(iCON_STATUS);
    }
Exemple #6
0
    private void OnQuery_DETAIL()
    {
        int num = (int)GameSection.GetEventData();
        SkillItemSortData skillItemSortData = inventory.datas[num] as SkillItemSortData;

        GameSection.SetEventData(new object[2]
        {
            ItemDetailEquip.CURRENT_SECTION.SMITH_SKILL_GROW,
            skillItemSortData
        });
    }
Exemple #7
0
    private void OnQuery_SLOT_DETAIL()
    {
        selectIndex = (int)GameSection.GetEventData();
        ItemDetailEquip.CURRENT_SECTION cURRENT_SECTION = callSection;
        if (cURRENT_SECTION != ItemDetailEquip.CURRENT_SECTION.QUEST_RESULT)
        {
            cURRENT_SECTION = ItemDetailEquip.CURRENT_SECTION.STATUS_SKILL_LIST;
        }
        bool flag = false;

        if (isSkillUniqItem)
        {
            SkillItemInfo itemData = slotData[selectIndex].itemData;
            if (itemData != null)
            {
                SkillItemSortData skillItemSortData = new SkillItemSortData();
                skillItemSortData.SetItem(itemData);
                EquipItemInfo equipItemInfo = eventData as EquipItemInfo;
                GameSection.SetEventData(new object[4]
                {
                    cURRENT_SECTION,
                    skillItemSortData,
                    equipItemInfo,
                    selectIndex
                });
            }
            else
            {
                flag = true;
            }
        }
        else if (slotData[selectIndex].slotData.skill_id != 0)
        {
            SkillItemTable.SkillItemData skillItemData = Singleton <SkillItemTable> .I.GetSkillItemData(slotData[selectIndex].slotData.skill_id);

            GameSection.SetEventData(new object[2]
            {
                cURRENT_SECTION,
                skillItemData
            });
        }
        else
        {
            flag = true;
        }
        if (flag)
        {
            GameSection.StopEvent();
        }
    }
    private void OnCloseDialog_SmithGrowSkillSelectMaterialItemNum()
    {
        object[]          array             = GameSection.GetEventData() as object[];
        SkillItemSortData skillItemSortData = array[0] as SkillItemSortData;
        SkillItemInfo     skillItemInfo     = skillItemSortData.GetItemData() as SkillItemInfo;
        int num  = (int)array[1];
        int num2 = 0;
        int i    = 0;

        for (int count = materialSkillItem.Count; i < count; i++)
        {
            if (materialSkillItem[i].uniqueID == skillItemInfo.uniqueID)
            {
                num2++;
            }
        }
        int num3 = num - num2;

        if (num3 < 0)
        {
            for (int num4 = materialSkillItem.Count - 1; num4 >= 0; num4--)
            {
                if (materialSkillItem[num4].uniqueID == skillItemInfo.uniqueID)
                {
                    materialSkillItem.RemoveAt(num4);
                    num3++;
                    if (num3 >= 0)
                    {
                        break;
                    }
                }
            }
        }
        else if (num3 > 0)
        {
            for (int j = 0; j < num3; j++)
            {
                materialSkillItem.Add(skillItemInfo);
            }
        }
        bool flag = isSelectMax;

        isSelectMax = (materialSkillItem.Count == MATERIAL_SELECT_MAX);
        if (flag != isSelectMax)
        {
            UpdateInventory();
        }
        UpdateSelectMaterialIcon();
    }
    private void OnQuery_DETAIL()
    {
        int num = (int)GameSection.GetEventData();
        SkillItemSortData skillItemSortData = inventory.datas[num] as SkillItemSortData;

        if (skillItemSortData.skillData.tableData.type == SKILL_SLOT_TYPE.GROW)
        {
            GameSection.StopEvent();
        }
        else
        {
            GameSection.SetEventData(new object[2]
            {
                ItemDetailEquip.CURRENT_SECTION.SMITH_SKILL_GROW,
                skillItemSortData
            });
        }
    }
Exemple #10
0
    public override void UpdateUI()
    {
        SetFontStyle((Enum)UI.STR_TITLE_MATERIAL, 2);
        SetFontStyle((Enum)UI.STR_TITLE_MONEY, 2);
        if (detailBase != null)
        {
            SetActive(detailBase, UI.OBJ_FAVORITE_ROOT, false);
        }
        if (inventory == null)
        {
            InitInventory();
        }
        bool is_visible = inventory == null || inventory.datas == null || inventory.datas.Length <= 1;

        SetActive((Enum)UI.STR_NON_MATERIAL, is_visible);
        UpdateMaterial();
        SetupEnableInventoryUI();
        int base_item_index = Array.FindIndex(inventory.datas, (SortCompareData data) => data.GetUniqID() == skillItem.uniqueID);

        SetDynamicList((Enum)inventoryUI, (string)null, inventory.datas.Length, false, (Func <int, bool>) delegate(int i)
        {
            if (i == base_item_index)
            {
                return(false);
            }
            return(true);
        }, (Func <int, Transform, Transform>) null, (Action <int, Transform, bool>) delegate(int i, Transform t, bool is_recycle)
        {
            SkillItemSortData item = inventory.datas[i] as SkillItemSortData;
            int num = materialSkillItem.FindIndex((SkillItemInfo material) => material.uniqueID == item.GetUniqID());
            if (num > -1)
            {
                num++;
            }
            ITEM_ICON_TYPE iconType = item.GetIconType();
            bool is_new             = MonoBehaviourSingleton <InventoryManager> .I.IsNewItem(iconType, item.GetUniqID());
            ItemIcon itemIcon       = CreateItemIconDetail(iconType, item.skillData.tableData.iconID, item.skillData.tableData.rarity, item, IsShowMainStatus, t, "MATERIAL", i, is_new, 0, num, item.IsEquipping());
            itemIcon.toggleSelectFrame.onChange.Clear();
            itemIcon.toggleSelectFrame.onChange.Add(new EventDelegate(this, "IconToggleChange"));
            SetLongTouch(itemIcon.transform, "DETAIL", i);
        });
    }
    protected void SellEvent(SkillItemInfo skill)
    {
        SkillItemSortData skillItemSortData = new SkillItemSortData();

        skillItemSortData.SetItem(skill);
        if (!skillItemSortData.CanSale())
        {
            GameSection.ChangeEvent("NOT_SALE_FAVORITE", null);
        }
        else
        {
            List <SortCompareData> list = new List <SortCompareData>();
            list.Add(skillItemSortData);
            GameSection.ChangeEvent("SELL", new object[2]
            {
                ItemStorageTop.TAB_MODE.SKILL,
                list
            });
        }
    }
Exemple #12
0
    protected virtual void DrawIcon()
    {
        SortCompareData[] sell_data_ary = sellData.ToArray();
        int sELL_SELECT_MAX             = MonoBehaviourSingleton <UserInfoManager> .I.userInfo.constDefine.SELL_SELECT_MAX;

        SetGrid(UI.GRD_ICON, null, sELL_SELECT_MAX, false, delegate(int i, Transform t, bool is_recycle)
        {
            if (i < sell_data_ary.Length)
            {
                int enemy_icon_id  = 0;
                int enemy_icon_id2 = 0;
                bool is_equipping  = false;
                SortCompareData sortCompareData = sell_data_ary[i];
                if (sortCompareData is ItemSortData)
                {
                    ItemSortData itemSortData = sortCompareData as ItemSortData;
                    enemy_icon_id             = itemSortData.itemData.tableData.enemyIconID;
                    enemy_icon_id2            = itemSortData.itemData.tableData.enemyIconID2;
                }
                else if (sortCompareData is SkillItemSortData)
                {
                    SkillItemSortData skillItemSortData = sortCompareData as SkillItemSortData;
                    is_equipping = skillItemSortData.IsEquipping();
                }
                else if (sortCompareData is AbilityItemSortData)
                {
                    enemy_icon_id  = (sortCompareData as AbilityItemSortData).itemData.GetItemTableData().enemyIconID;
                    enemy_icon_id2 = (sortCompareData as AbilityItemSortData).itemData.GetItemTableData().enemyIconID2;
                }
                GET_TYPE getType  = sell_data_ary[i].GetGetType();
                ItemIcon itemIcon = ItemIcon.Create(sell_data_ary[i].GetIconType(), sell_data_ary[i].GetIconID(), sell_data_ary[i].GetRarity(), t, sell_data_ary[i].GetIconElement(), sell_data_ary[i].GetIconMagiEnableType(), GetTargetIconNum(sell_data_ary, i), null, 0, false, -1, false, null, is_equipping, enemy_icon_id, enemy_icon_id2, false, getType);
                itemIcon.SetRewardBG(isShowIconBG());
                Transform ctrl = GetCtrl(UI.SCR_ICON);
                SetMaterialInfo(itemIcon.transform, sell_data_ary[i].GetMaterialType(), sell_data_ary[i].GetTableID(), ctrl);
            }
            else
            {
                SetActive(t, false);
            }
        });
    }
    private void OnQuery_MATERIAL_NUM()
    {
        int num = (int)GameSection.GetEventData();
        SkillItemSortData skillItemSortData = inventory.datas[num] as SkillItemSortData;
        SkillItemInfo     skillItemInfo     = skillItemSortData.GetItemData() as SkillItemInfo;
        int num2 = 0;
        int i    = 0;

        for (int count = materialSkillItem.Count; i < count; i++)
        {
            if (materialSkillItem[i].uniqueID == skillItemInfo.uniqueID)
            {
                num2++;
            }
        }
        GameSection.SetEventData(new object[3]
        {
            skillItemSortData,
            MATERIAL_SELECT_MAX - materialSkillItem.Count,
            num2
        });
    }
    private void UpdateInventory()
    {
        int base_item_index = Array.FindIndex(inventory.datas, (SortCompareData data) => data.GetUniqID() == skillItem.uniqueID);

        SetDynamicList((Enum)inventoryUI, (string)null, inventory.datas.Length, false, (Func <int, bool>) delegate(int i)
        {
            if (i == base_item_index)
            {
                return(false);
            }
            SkillItemSortData skillItemSortData = inventory.datas[i] as SkillItemSortData;
            if (skillItemSortData == null || !skillItemSortData.IsPriority(inventory.sortSettings.orderTypeAsc))
            {
                return(false);
            }
            if (isExceed)
            {
                if (skillItemSortData.skillData.tableData.type == skillItem.tableData.type || skillItemSortData.skillData.tableData.type == SKILL_SLOT_TYPE.PASSIVE)
                {
                    return(true);
                }
                return(false);
            }
            return(true);
        }, (Func <int, Transform, Transform>) null, (Action <int, Transform, bool>) delegate(int i, Transform t, bool is_recycle)
        {
            SkillItemSortData item = inventory.datas[i] as SkillItemSortData;
            int num = materialSkillItem.FindIndex((SkillItemInfo material) => material.uniqueID == item.GetUniqID());
            if (num > -1)
            {
                num++;
            }
            ITEM_ICON_TYPE iconType = item.GetIconType();
            bool is_new             = MonoBehaviourSingleton <InventoryManager> .I.IsNewItem(iconType, item.GetUniqID());
            ItemIcon itemIcon       = CreateItemIconDetail(iconType, item.skillData.tableData.iconID, item.skillData.tableData.rarity, item, IsShowMainStatus, t, "MATERIAL", i, is_new, -1, num, item.IsEquipping(), isSelectMax);
            itemIcon.SetUniqID(item.GetUniqID());
            SetLongTouch(itemIcon.transform, "DETAIL", i);
        });
    }
Exemple #15
0
    private static ItemIcon _CreateSkillDetailIcon(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, ICON_STATUS icon_status = ICON_STATUS.NONE, bool is_new = false, int toggle_group = -1, int select_number = -1, bool is_equipping = false)
    {
        ItemIconDetail itemIconDetail = ItemIcon.CreateIcon <ItemIconDetail>(MonoBehaviourSingleton <GlobalSettingsManager> .I.linkResources.itemIconDetailPrefab, icon_type, icon_id, rarity, parent, item_data.GetIconElement(), item_data.skillData.tableData.GetEnableEquipType(), -1, event_name, event_data, is_new, toggle_group, select_number > -1, string.Empty, is_equipping, 0, 0, false, QUEST_ICON_SIZE_TYPE.DEFAULT, GET_TYPE.PAY);

        itemIconDetail.setupperSkill.Set(new object[4]
        {
            item_data,
            is_show_main_status,
            select_number,
            icon_status
        });
        itemIconDetail.SetFavoriteIcon(item_data.IsFavorite());
        return(itemIconDetail);
    }
 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, bool is_select = false, bool is_equipping = false, bool isValidExceed = false, bool isShowEnableExceed = false)
 {
     if (inventoryUI == UI.GRD_INVENTORY)
     {
         return(ItemIconDetail.CreateSkillDetailIcon(icon_type, icon_id, rarity, item_data, is_show_main_status, parent, event_name, event_data, is_new, toggle_group, is_select, is_equipping, isValidExceed, isShowEnableExceed));
     }
     return(ItemIconDetailSmall.CreateSmallSkillDetailIcon(icon_type, icon_id, rarity, item_data, parent, event_name, event_data, is_new, toggle_group, is_select, is_equipping, isValidExceed, isShowEnableExceed));
 }
Exemple #17
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));
 }
    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 #19
0
    private static ItemIcon _CreateSmallSkillDetailIcon(ITEM_ICON_TYPE icon_type, int icon_id, RARITY_TYPE?rarity, SkillItemSortData item_data, 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, ItemIconDetail.ICON_STATUS icon_status = ItemIconDetail.ICON_STATUS.NONE)
    {
        //IL_001a: Unknown result type (might be due to invalid IL or missing references)
        string format          = (!item_data.skillData.IsExceeded()) ? "Lv. {0}/{1}" : ("Lv. {0}/" + UIUtility.GetColorText("{1}", ExceedSkillItemTable.color));
        string icon_under_text = string.Format(format, item_data.GetLevel(), item_data.skillData.GetMaxLevel());
        ItemIconDetailSmall itemIconDetailSmall = ItemIcon.CreateIcon <ItemIconDetailSmall>(MonoBehaviourSingleton <GlobalSettingsManager> .I.linkResources.itemIconDetailSmallPrefab, icon_type, icon_id, rarity, parent, item_data.GetIconElement(), item_data.skillData.tableData.GetEnableEquipType(), -1, event_name, event_data, is_new, toggle_group, select_number > -1, icon_under_text, is_equipping, 0, 0, false, QUEST_ICON_SIZE_TYPE.DEFAULT, GET_TYPE.PAY);

        itemIconDetailSmall.EquipTypeIconInit(null);
        itemIconDetailSmall.SetEquipIndexSprite(-1);
        itemIconDetailSmall.SetIconStatusSprite(icon_status);
        itemIconDetailSmall.SetupSelectNumberSprite(select_number);
        itemIconDetailSmall.SetFavoriteIcon(item_data.IsFavorite());
        return(itemIconDetailSmall);
    }
Exemple #20
0
    public static ItemIcon CreateSmallSkillSelectDetailIcon(ITEM_ICON_TYPE icon_type, int icon_id, RARITY_TYPE?rarity, SkillItemSortData item_data, 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, ItemIconDetail.ICON_STATUS icon_status = ItemIconDetail.ICON_STATUS.NONE)
    {
        ItemIcon itemIcon = _CreateSmallSkillDetailIcon(icon_type, icon_id, rarity, item_data, parent, event_name, event_data, is_new, toggle_group, select_number, is_equipping, icon_status);

        itemIcon.SetFavoriteIcon(item_data.IsFavorite());
        return(itemIcon);
    }
Exemple #21
0
    public static ItemIcon CreateSmallSkillDetailIcon(ITEM_ICON_TYPE icon_type, int icon_id, RARITY_TYPE?rarity, SkillItemSortData item_data, Transform parent = null, string event_name = null, int event_data = 0, bool is_new = false, int toggle_group = -1, bool is_select = false, bool is_equipping = false, bool isValidExceed = false, bool isShowEnableExceed = false)
    {
        ItemIconDetail.ICON_STATUS icon_status = ItemIconDetail.ICON_STATUS.NONE;
        if (isShowEnableExceed)
        {
            icon_status = ItemIconDetail.ICON_STATUS.VALID_EXCEED_0;
        }
        else if (isValidExceed)
        {
            icon_status = ItemIconDetail.ICON_STATUS.VALID_EXCEED;
        }
        ItemIcon itemIcon = _CreateSmallSkillDetailIcon(icon_type, icon_id, rarity, item_data, parent, event_name, event_data, is_new, toggle_group, (!is_select) ? (-1) : 0, is_equipping, icon_status);

        itemIcon.SetFavoriteIcon(item_data.IsFavorite());
        return(itemIcon);
    }