Beispiel #1
0
    public static ItemIcon CreateEquipAbilityIcon(ITEM_ICON_TYPE icon_type, int icon_id, RARITY_TYPE?rarity, EquipItemSortData item_data, SkillSlotUIData[] skill_slot_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, bool is_select = false, int equipping_sp_index = -1, GET_TYPE getType = GET_TYPE.PAY)
    {
        bool           is_equipping   = equipping_sp_index == 0;
        EquipItemInfo  equipItemInfo  = item_data.GetItemData() as EquipItemInfo;
        ItemIconDetail itemIconDetail = ItemIcon.CreateIcon <ItemIconDetail>(MonoBehaviourSingleton <GlobalSettingsManager> .I.linkResources.itemIconDetailPrefab, icon_type, icon_id, rarity, parent, equipItemInfo.GetTargetElementPriorityToTable(), null, -1, event_name, event_data, is_new, toggle_group, false, string.Empty, is_equipping, 0, 0, false, QUEST_ICON_SIZE_TYPE.DEFAULT, getType);

        itemIconDetail.setupperEquipAbility.Set(new object[5]
        {
            item_data.GetItemData() as EquipItemInfo,
            skill_slot_data,
            is_show_main_status,
            icon_status,
            equipping_sp_index
        });
        itemIconDetail.SetFavoriteIcon(item_data.IsFavorite());
        if (Object.op_Implicit(itemIconDetail.setupperEquip.lvRoot))
        {
            UILabel[] componentsInChildren = itemIconDetail.setupperEquipAbility.lvRoot.GetComponentsInChildren <UILabel>();
            itemIconDetail.SetEquipExt(item_data.equipData, componentsInChildren);
        }
        return(itemIconDetail);
    }
Beispiel #2
0
    private static ItemIcon _CreateEquipDetailIcon(EquipItemSortData item_data, SkillSlotUIData[] skill_slot_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, int equipping_sp_index = -1)
    {
        int            sex            = MonoBehaviourSingleton <UserInfoManager> .I.userStatus.sex;
        bool           is_equipping   = equipping_sp_index == 0;
        EquipItemInfo  equipItemInfo  = item_data.GetItemData() as EquipItemInfo;
        ItemIconDetail itemIconDetail = CreateEquipItemIconDetail(equipItemInfo, sex, parent, null, -1, event_name, event_data, is_new, toggle_group, select_number > -1, string.Empty, is_equipping, false);

        itemIconDetail.setupperEquip.Set(new object[6]
        {
            item_data.GetItemData() as EquipItemInfo,
            skill_slot_data,
            is_show_main_status,
            icon_status,
            equipping_sp_index,
            select_number
        });
        itemIconDetail.SetFavoriteIcon(item_data.IsFavorite());
        if (Object.op_Implicit(itemIconDetail.setupperEquip.lvRoot))
        {
            UILabel[] componentsInChildren = itemIconDetail.setupperEquip.lvRoot.GetComponentsInChildren <UILabel>();
            itemIconDetail.SetEquipExt(item_data.equipData, componentsInChildren);
        }
        return(itemIconDetail);
    }