So I'm working on my first addon and I'm working with ace3 and such. I'm working on a frame with certain icons in it representing various in game items and when I mouse over them I would like for them to display the wow tooltip for that particular item. So far I've got the tooltip to show up when I mouse over and fade out when I'm not but once it's hidden it will not reappear until I mouse over an npc or another character. Any ideas on how I might fix this little issue. (Tiger Lily was my little test icon)
Code:
local function DrawGroup1(container)
local LilyIcon = AceGUI:Create("Icon")
LilyIcon:SetText("Tiger Lily")
LilyIcon:SetImage("interface\\icons\\inv_misc_herb_tigerlily")
LilyIcon:SetImageSize(30,30)
container:AddChild(LilyIcon)
LilyIcon:SetCallback("OnEnter", function(widget) GameTooltip:SetHyperlink("\\124cffffffff\\124Hitem:36904:0:0:0:0:0:0:0:0\\124h[Tiger Lily]\\124h\\124r")end)
LilyIcon:SetCallback("OnLeave", function(widget) GameTooltip:FadeOut() end)
I may be doing this completely wrong as it was just a trial and error kind of thing.