Back to Home
ESO Function Data v101038
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:546 -- 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:130 -- 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:525 -- self:SetCustomSort(function(bagId, slotIndex)
local traitInformation = GetItemTraitInformation(bagId, slotIndex)
return ZO_GetItemTraitInformation_SortOrder(traitInformation)
end)
- ingame/crafting/gamepad/smithingimprovement_gamepad.lua:690 -- self:SetCustomSort(function(bagId, slotIndex) return bagId end)
- ingame/crafting/gamepad/universaldeconstructionpanel_gamepad.lua:549 -- self:SetCustomSort(GetTraitSortComparison)
- ingame/crafting/keyboard/alchemy_keyboard.lua:369 -- self:SetCustomSort(IngredientSortOrder)
- ingame/retrait/gamepad/zo_retraitstation_retrait_gamepad.lua:599 -- 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)