Exemplo n.º 1
0
    public static ItemIcon CreateSmallRemoveButton(Transform parent = null, string event_name = null, int event_data = 0, int toggle_group = -1, bool is_select = false, string name = null)
    {
        ItemIconDetailSmall itemIconDetailSmall = ItemIcon.CreateIcon <ItemIconDetailSmall>(MonoBehaviourSingleton <GlobalSettingsManager> .I.linkResources.itemIconDetailSmallPrefab, ITEM_ICON_TYPE.NONE, ItemIcon.GetRemoveButtonIconID(), null, parent, ELEMENT_TYPE.MAX, null, -1, event_name, event_data, false, toggle_group, is_select, name, false, 0, 0, false, QUEST_ICON_SIZE_TYPE.DEFAULT, GET_TYPE.PAY);

        itemIconDetailSmall.EquipTypeIconInit(null);
        itemIconDetailSmall.SetEquipIndexSprite(-1);
        itemIconDetailSmall.SetIconStatusSprite(ItemIconDetail.ICON_STATUS.NONE);
        itemIconDetailSmall.SetupSelectNumberSprite(-1);
        itemIconDetailSmall.SetFavoriteIcon(false);
        return(itemIconDetailSmall);
    }
Exemplo n.º 2
0
    public static ItemIcon CreateSmallMaterialIcon(ITEM_ICON_TYPE icon_type, int icon_id, RARITY_TYPE?rarity, Transform parent = null, int num = -1, string name = null, string event_name = null, int event_data = 0, int toggle_group = -1, bool is_select = false, bool is_new = false, int enemy_icon_id = 0, int enemy_icon_id2 = 0, ItemIconDetail.ICON_STATUS icon_status = ItemIconDetail.ICON_STATUS.NONE)
    {
        string icon_under_text = "×" + num.ToString();
        ItemIconDetailSmall itemIconDetailSmall = ItemIcon.CreateIcon <ItemIconDetailSmall>(MonoBehaviourSingleton <GlobalSettingsManager> .I.linkResources.itemIconDetailSmallPrefab, icon_type, icon_id, rarity, parent, ELEMENT_TYPE.MAX, null, -1, event_name, event_data, is_new, toggle_group, is_select, icon_under_text, false, enemy_icon_id, enemy_icon_id2, false, QUEST_ICON_SIZE_TYPE.DEFAULT, GET_TYPE.PAY);

        itemIconDetailSmall.EquipTypeIconInit(null);
        itemIconDetailSmall.SetEquipIndexSprite(-1);
        itemIconDetailSmall.SetIconStatusSprite(icon_status);
        itemIconDetailSmall.SetupSelectNumberSprite(-1);
        itemIconDetailSmall.SetFavoriteIcon(false);
        return(itemIconDetailSmall);
    }
Exemplo n.º 3
0
    public static ItemIcon CreateSmithCreateEquipDetailIcon(ITEM_ICON_TYPE icon_type, int icon_id, RARITY_TYPE?rarity, SmithCreateSortData item_data, Transform parent = null, string event_name = null, int event_data = 0, ItemIconDetail.ICON_STATUS icon_status = ItemIconDetail.ICON_STATUS.NONE, bool is_new = false, int toggle_group = -1, bool is_select = false, bool is_equipping = false, GET_TYPE getType = GET_TYPE.PAY)
    {
        SmithCreateItemInfo smithCreateItemInfo = item_data.GetItemData() as SmithCreateItemInfo;
        string icon_under_text = (!smithCreateItemInfo.equipTableData.IsWeapon()) ? smithCreateItemInfo.equipTableData.baseDef.ToString() : smithCreateItemInfo.equipTableData.baseAtk.ToString();
        ItemIconDetailSmall itemIconDetailSmall = ItemIcon.CreateIcon <ItemIconDetailSmall>(MonoBehaviourSingleton <GlobalSettingsManager> .I.linkResources.itemIconDetailSmallPrefab, icon_type, icon_id, rarity, parent, smithCreateItemInfo.equipTableData.GetTargetElementPriorityToTable(), null, -1, event_name, event_data, is_new, toggle_group, is_select, icon_under_text, is_equipping, 0, 0, false, QUEST_ICON_SIZE_TYPE.DEFAULT, getType);

        itemIconDetailSmall.EquipTypeIconInit(smithCreateItemInfo.equipTableData);
        itemIconDetailSmall.SetEquipIndexSprite(-1);
        itemIconDetailSmall.SetIconStatusSprite(icon_status);
        itemIconDetailSmall.SetupSelectNumberSprite(-1);
        itemIconDetailSmall.SetFavoriteIcon(false);
        return(itemIconDetailSmall);
    }
Exemplo n.º 4
0
    public static ItemIcon CreateSmallListItemIcon(ITEM_ICON_TYPE iconType, EquipItemSortData sortData, Transform parent, bool isNew, int no, GET_TYPE getType)
    {
        EquipItemTable.EquipItemData tableData  = sortData.equipData.tableData;
        EquipItemInfo       equipItemInfo       = sortData.GetItemData() as EquipItemInfo;
        ItemIconDetailSmall itemIconDetailSmall = ItemIcon.CreateIcon <ItemIconDetailSmall>(MonoBehaviourSingleton <GlobalSettingsManager> .I.linkResources.itemIconDetailSmallPrefab, iconType, tableData.GetIconID(), tableData.rarity, parent, equipItemInfo.GetTargetElementPriorityToTable(), null, -1, string.Empty, 0, isNew, -1, false, "No." + no.ToString("D4"), false, 0, 0, false, QUEST_ICON_SIZE_TYPE.DEFAULT, getType);

        itemIconDetailSmall.EquipTypeIconInit(tableData);
        itemIconDetailSmall.SetEquipIndexSprite(-1);
        itemIconDetailSmall.EquipTypeIconInit(null);
        itemIconDetailSmall.SetIconStatusSprite(ItemIconDetail.ICON_STATUS.NONE);
        itemIconDetailSmall.SetupSelectNumberSprite(-1);
        itemIconDetailSmall.SetFavoriteIcon(false);
        return(itemIconDetailSmall);
    }
Exemplo n.º 5
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);
    }
Exemplo n.º 6
0
    private static ItemIcon _CreateSmallEquipDetailIcon(EquipItemSortData item_data, Transform parent = null, string event_name = null, int event_data = 0, ItemIconDetail.ICON_STATUS icon_status = ItemIconDetail.ICON_STATUS.NONE, bool is_new = false, int toggle_group = -1, int select_number = -1, int equip_index = -1)
    {
        int                 sex                 = MonoBehaviourSingleton <UserInfoManager> .I.userStatus.sex;
        bool                is_equipping        = equip_index == 0;
        string              icon_under_text     = (!item_data.equipData.tableData.IsWeapon()) ? item_data.equipData.def.ToString() : item_data.equipData.atk.ToString();
        EquipItemInfo       equipItemInfo       = item_data.GetItemData() as EquipItemInfo;
        ItemIconDetailSmall itemIconDetailSmall = CreateEquipItemIconDetailSmall(equipItemInfo, sex, parent, null, -1, event_name, event_data, is_new, toggle_group, select_number > -1, icon_under_text, is_equipping, false);

        itemIconDetailSmall.EquipTypeIconInit(equipItemInfo.tableData);
        itemIconDetailSmall.SetEquipIndexSprite(equip_index - 1);
        itemIconDetailSmall.SetIconStatusSprite(icon_status);
        itemIconDetailSmall.SetupSelectNumberSprite(select_number);
        itemIconDetailSmall.SetFavoriteIcon(equipItemInfo.isFavorite);
        itemIconDetailSmall.SetEquipExt(item_data.equipData);
        return(itemIconDetailSmall);
    }