For the inventory you could also set an icon to show that it is crafted.
That's easy enough.
For the tooltip, you could add a line to the bottom of the tooltip, although I didn't really like that Idea. As for accessing the tooltip information I couldn't find a way either. But I did manage to come up with this very hacky method to do what I wanted
(it could be used to replace or add to "some" of the other information on the tooltip as well).
EDIT: Localized the word "Potion" & Fixed a bug.
Warning: Spoiler
Lua Code:
local ORIGINAL_SI_ITEMTYPE7 = SI_ITEMTYPE7
local potionString = zo_strformat("|t32:32:<<1>>|t <<2>>", "/esoui/art/crafting/alchemy_tabicon_solvent_up.dds", GetString("SI_ITEMTYPE", ITEMTYPE_POTION))
ZO_CreateStringId("CRAFTED_SI_ITEMTYPE7", potionString)
local function SetPotionSI(toolTip, bagId, slotIdOrTradingHouseSlotIndex)
local itemLink
if bagId then
itemLink = GetItemLink(bagId, slotIdOrTradingHouseSlotIndex)
elseif TRADING_HOUSE:IsAtTradingHouse() then
if TRADING_HOUSE.m_searchResultsList and TRADING_HOUSE.m_searchResultsList.data and TRADING_HOUSE.m_searchResultsList.data[slotIdOrTradingHouseSlotIndex] then
itemLink = GetTradingHouseSearchResultItemLink(slotIdOrTradingHouseSlotIndex)
end
end
if GetItemLinkItemType(itemLink) ~= ITEMTYPE_POTION then return end
if select(24, ZO_LinkHandler_ParseLink(itemLink)) ~= "0" then
SI_ITEMTYPE7 = CRAFTED_SI_ITEMTYPE7
return true
end
end
local function ResetPotionSI(wasChanged)
if not wasChanged then return end
SI_ITEMTYPE7 = ORIGINAL_SI_ITEMTYPE7
end
local function SetItemTooltipCallbacks()
local hSetBagItem = ItemTooltip.SetBagItem
ItemTooltip.SetBagItem = function(control, bagId, slotIndex, ...)
local wasChanged = SetPotionSI(control, bagId, slotIndex)
hSetBagItem(control, bagId, slotIndex, ...)
ResetPotionSI(wasChanged)
end
local hSetTradingHouseBagItem = ItemTooltip.SetTradingHouseItem
ItemTooltip.SetTradingHouseItem = function(control, tradingHouseSlotIndex, ...)
local wasChanged = SetPotionSI(control, nil, tradingHouseSlotIndex)
hSetTradingHouseBagItem(control, tradingHouseSlotIndex, ...)
ResetPotionSI(wasChanged)
end
end
-------------------------------------------------------------------
-- On Player Activation --
-------------------------------------------------------------------
local function OnPlayerActivated()
SetItemTooltipCallbacks()
end