Back to Home
ESO Function Data v100024
SetCustomSort()
Function Aliases
- No known aliases for this function.
Global Function Definitions
Local Function Definitions
- No known local definitions for this function.
Function Calls
- ingame/crafting/gamepad/alchemy_gamepad.lua:432 -- self:SetCustomSort(function(bagId, slotIndex)
local _, craftingSubItemType, _, requiredLevel, requiredChampionPoints = GetItemCraftingInfo(bagId, slotIndex)
local subSortOrder = (requiredChampionPoints and requiredLevel + requiredChampionPoints or requiredLevel or 0)
if craftingSubItemType == ITEMTYPE_POTION_BASE then
return INGREDIENT_SORT_ORDER_POTION + subSortOrder
elseif craftingSubItemType == ITEMTYPE_POISON_BASE then
return INGREDIENT_SORT_ORDER_POISON + subSortOrder
else
return INGREDIENT_SORT_ORDER_OTHER + subSortOrder
end
end)
- ingame/crafting/gamepad/enchanting_gamepad.lua:100 -- self.inventory:SetCustomSort(function(bagId, slotIndex)
local itemType = GetItemType(bagId, slotIndex)
if self.enchantingMode == ENCHANTING_MODE_CREATION then
if itemType == ITEMTYPE_ENCHANTING_RUNE_POTENCY then
return 0
elseif itemType == ITEMTYPE_ENCHANTING_RUNE_ESSENCE then
return 1
else
return 2
end
else
return itemType
end
end
)
- ingame/crafting/gamepad/smithingextraction_gamepad.lua:368 -- self:SetCustomSort(function(bagId, slotIndex)
local traitInformation = GetItemTraitInformation(bagId, slotIndex)
return ZO_GetItemTraitInformation_SortOrder(traitInformation)
end)
- ingame/crafting/gamepad/smithingimprovement_gamepad.lua:569 -- self:SetCustomSort(function(bagId, slotIndex) return bagId end)
- ingame/crafting/keyboard/alchemy_keyboard.lua:264 -- self:SetCustomSort(IngredientSortOrder)
- ingame/retrait/gamepad/zo_retraitstation_retrait_gamepad.lua:515 -- self:SetCustomSort( function(bagId, slotIndex)
-- sort equipped items to the top of the list
-- but items from other bags will be equal so they sort by category name
if bagId == BAG_WORN then
return 0
else
return 1
end
end)