Okay maybe not specific enough, let me try again
I have a simple text tooltip at the moment:
Lua Code:
control:SetTexture(traitIcons[traitType].icon)
control:SetHandler("OnMouseEnter", function(self)
ZO_Tooltips_ShowTextTooltip(self, RIGHT, traitIcons[traitType].name)
end)
control:SetHandler("OnMouseExit", function(self) ZO_Tooltips_HideTextTooltip() end)
And I want to change this over so instead of the text I actually show the proper tooltip for the material.
Example a "Diamond" for the Impenetrable Armor Trait
Whats a good way for me to approach this?
If I have to build the tooltip myself I have found these:
- ZO_Tooltip:LayoutItem(itemLink, equipped, creatorName, forceFullDurability, enchantMode, previewValueToAdd)
- ZO_Tooltip:LayoutStyleMaterial(itemLink)
- GAMEPAD_TOOLTIPS:LayoutItem(GAMEPAD_MOVABLE_TOOLTIP, itemLink)
http://esodata.uesp.net/current/src/...s.lua.html#685