Gotta say, I'm loving LibQTip. The versatility is endless. But I do have another question. I've made my cells into buttons/status bars:
The problem I've having, is if someone goes in/out over the Broker Icon multiple times to display the tooltip. I think the buttons/status bars for these cells are being made over and over again which causes the memory for the mod to jump. Although Garbage Collection will take care of this eventually, is there a check I can do that if this button cell (I.E. "Chicken Party!") has already been made it'll just reuse it?
The custom cell pretty much outputs: Icon with a quest next to it. Example like 'Bait Bandits', although it does some other stuff. The gist of it is that.
This is my old Tablet version, but I got it to do the same thing with LibQTip. What I'm just wondering is, with Tablet when you actually clicked the line, the actual quest line as seen above. Is would show you click it, like a button. The line would shift down and shift back up, like a button.
In LibQTip, when you hover over a quest and click it, you don't visually see a click.
Thanks Torhal for the post, with your example I got everything working perfectly and now everything is working how it did in Tablet.
Although, on a side note. Is it possible to make Cell's interact like buttons? When ever I click a cell, it does what is intended. But visually the cell doesn't respond to if it was actually clicked (The shifting of the cell per-say on a OnMousDown/OnMouseUp so you visually see the cell clicked).
After reading through the forums and saw some suggestions with adding scripts with-in the cells to add this functionality, but for some reason whenever I add a :SetScript(), no matter what it is, OnEnter, OnMouseDown, etc.. my tooltip will no longer show until I removed it.
Wondering if I could get some assistance. I'm moving a Tablet version of my tooltip to QTip and and am running into an issue I seem to can't get around.
Under an AddLine in Tablet, I could call a function and use GetMouseFocus():GetName() to cause another tooltip to fly out from that location and worked fine for grabbing the info to attach a tooltip to.