Removed debug messages for partial favourite cide
Wobin [04-29-14 - 14:38]
Removed debug messages for partial favourite cide
diff --git a/SousChef.lua b/SousChef.lua
index 2af9079..7352b9e 100644
--- a/SousChef.lua
+++ b/SousChef.lua
@@ -323,21 +323,15 @@ end
function HookRecipeTreeFunction()
-- Hook the provisioning panel
if not SousChef.hookedProvisioningFunction then
- local count = 1
- local ref = _G["ZO_ProvisionerTopLevelNavigationContainerScrollChildZO_ProvisionerNavigationEntry" .. count]
- while ref do
- SousChef.hookedProvisioningFunction = ref.node.setupFunction
- ref.node.setupFunction =
+ local ref = PROVISIONER.recipeTree.templateInfo.ZO_ProvisionerNavigationEntry
+ if ref then
+ SousChef.hookedProvisioningFunction = ref.setupFunction
+ ref.setupFunction =
function(...)
local node, control, data, open, userRequested, enabled = ...
- d("setup " .. data.name)
SousChef.hookedProvisioningFunction(...)
end
- count = count + 1
- ref = _G["ZO_ProvisionerTopLevelNavigationContainerScrollChildZO_ProvisionerNavigationEntry" .. count]
end
- d(count)
- ZO_ProvisionerTopLevelNavigationContainerScrollChildZO_ProvisionerNavigationEntry1.node.parentNode.parentNode:RefreshVisible(true)
end
end