protected ItemIcon CreateEquipAbilityIconDetail(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, ItemIconDetail.ICON_STATUS icon_status = ItemIconDetail.ICON_STATUS.NONE, bool is_new = false, int toggle_group = -1, bool is_select = false, int equip_index = -1, GET_TYPE getType = GET_TYPE.PAY) { return(ItemIconDetail.CreateEquipAbilityIcon(icon_type, icon_id, rarity, item_data, skill_slot_data, is_show_main_status, parent, event_name, event_data, icon_status, is_new, toggle_group, is_select, equip_index, getType)); }
public static ItemIcon CreateEquipDetailSelectNumberIcon(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, GET_TYPE getType = GET_TYPE.PAY) { ItemIcon itemIcon = _CreateEquipDetailIcon(item_data, skill_slot_data, is_show_main_status, parent, event_name, event_data, icon_status, is_new, toggle_group, select_number, equipping_sp_index); itemIcon.SetFavoriteIcon(item_data.IsFavorite()); return(itemIcon); }
public static ItemIcon CreateSmithCreateEquipDetailIcon(ITEM_ICON_TYPE icon_type, int icon_id, RARITY_TYPE?rarity, SmithCreateSortData 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, bool is_equipping = false, GET_TYPE getType = GET_TYPE.PAY) { SmithCreateItemInfo smithCreateItemInfo = item_data.GetItemData() as SmithCreateItemInfo; ItemIconDetail itemIconDetail = ItemIcon.CreateIcon <ItemIconDetail>(MonoBehaviourSingleton <GlobalSettingsManager> .I.linkResources.itemIconDetailPrefab, icon_type, icon_id, rarity, parent, smithCreateItemInfo.equipTableData.GetTargetElementPriorityToTable(), null, -1, event_name, event_data, is_new, toggle_group, is_select, string.Empty, is_equipping, 0, 0, false, QUEST_ICON_SIZE_TYPE.DEFAULT, getType); EquipItemTable.EquipItemData equipTableData = item_data.createData.equipTableData; itemIconDetail.setupperEquip.Set(new object[6] { equipTableData, skill_slot_data, is_show_main_status, icon_status, -1, -1 }); return(itemIconDetail); }
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); }