Put recipe result info in tooltip regardless of whether recipe is known
katkat42 [12-11-14 - 06:21]
Put recipe result info in tooltip regardless of whether recipe is known
diff --git a/Common.lua b/Common.lua
index 3d2327c..d44d8d0 100644
--- a/Common.lua
+++ b/Common.lua
@@ -121,14 +121,14 @@ function SousChef.AddDetails(row)
-- item is a recipe
if GetItemLinkItemType(itemLink) == ITEMTYPE_RECIPE then
+ ZO_Tooltip_AddDivider(ItemTooltip)
+ ItemTooltip:AddLine(zo_strformat(str.TOOLTIP_CREATES, GetItemLinkRequiredLevel(GetItemLinkRecipeResultItemLink(itemLink)), GetItemLinkName(GetItemLinkRecipeResultItemLink(itemLink))), "ZoFontWinH5", 1, 1, 1, BOTTOM)
local knownBy = SousChef.settings.Cookbook[u.CleanString(GetItemLinkName(GetItemLinkRecipeResultItemLink(itemLink)))]
if knownBy then
- ZO_Tooltip_AddDivider(ItemTooltip)
- ItemTooltip:AddLine(zo_strformat(str.TOOLTIP_CREATES, GetItemLinkRequiredLevel(GetItemLinkRecipeResultItemLink(itemLink)), GetItemLinkName(GetItemLinkRecipeResultItemLink(itemLink))), "ZoFontWinH5", 1, 1, 1, BOTTOM)
ItemTooltip:AddLine(str.TOOLTIP_KNOWN_BY, "ZoFontWinH5", 1,1,1, BOTTOM, MODIFY_TEXT_TYPE_UPPERCASE)
ItemTooltip:AddLine(u.TableKeyConcat(knownBy))
- return false
end
+ return false
end
--if we're only showing items on the shopping list, and we've already hidden this item, then don't touch it!
diff --git a/SousChef.lua b/SousChef.lua
index f842a6e..4c2ab89 100644
--- a/SousChef.lua
+++ b/SousChef.lua
@@ -10,7 +10,7 @@ Thanks to Ayantir for the French translations, and sirinsidiator for the German
SousChef = {}
SousChef.Utility = {}
SousChef.Media = {}
-SousChef.version = "2.15"
+SousChef.version = "2.16"
local SousChef = SousChef
local u = SousChef.Utility