Select a recipe in recipe list

From ESOUI Wiki

Jump to: navigation, search
local function GetNodeByData(recipeData)
    for _, listNode in pairs(PROVISIONER.recipeTree.rootNode.children) do
        if listNode.data.recipeListIndex == recipeData.recipeListIndex then
            for _, node in pairs(listNode.children) do 
                if node.data.recipeIndex == recipeData.recipeIndex then 
                    return node
                end
            end
        end
    end
end
 
local node = GetNodeByData({recipeListIndex = 1, recipeIndex = 5})
node:GetTree():SelectNode(node)

Code by "IsJustaGhost"

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox