Partial rollback on tooltips til I can figure out a way to do so without the taint
Wobin [04-12-14 - 17:50]
Partial rollback on tooltips til I can figure out a way to do so without the taint
diff --git a/SousChef.lua b/SousChef.lua
index 213c759..b5215a7 100644
--- a/SousChef.lua
+++ b/SousChef.lua
@@ -89,11 +89,12 @@ local function AddRankToSlot(row)
end
end
-local function AddDetails(row)
- if not row.dataEntry or not row.dataEntry.data then return end
+local function AddDetails(row, ...)
+ d("adding")
+ if not row.dataEntry or not row.dataEntry.data then return ... end
local bagId = row.dataEntry.data.bagId
local slotIndex = row.dataEntry.data.slotIndex
- if ((GetItemCraftingInfo(bagId, slotIndex)) ~= CRAFTING_TYPE_PROVISIONING) then return end
+ if ((GetItemCraftingInfo(bagId, slotIndex)) ~= CRAFTING_TYPE_PROVISIONING) then return ... end
local usableIngredient = ReverseCookbook[GetItemID(GetItemLink(bagId, slotIndex))]
if usableIngredient then
ItemTooltip:AddLine("Used in:")
@@ -101,6 +102,7 @@ local function AddDetails(row)
ItemTooltip:AddLine(v)
end
end
+ return ...
end
local function ParseRecipes()
@@ -208,12 +210,15 @@ local function SousChef_Loaded(eventCode, addOnName)
ZO_ScrollList_RefreshVisible(BANK)
ZO_ScrollList_RefreshVisible(GUILD_BANK)
- -- Hook into the tooltip
+
+
+ --[[ Hook into the tooltip
+ -- This causes security errors, will have to reconsider
local tooltip = ZO_InventorySlot_OnMouseEnter
- ZO_InventorySlot_OnMouseEnter = function(control)
- tooltip(control)
- AddDetails(control)
- end
+ function ZO_InventorySlot_OnMouseEnter(...)
+ local control = ...
+ AddDetails(control, tooltip(control, ...))
+ end--]]
end
local function SousChef_Initialized()