Simple broker allowing you to select an equipment set defined by using the Blizzard Equipment Set feature new with 3.1.2.
It uses LibQTip and the new LibQtipClick-1.1 libraries
The highlight from the tooltip seems to stick around after you click the set. Took me a bit to figure out where the little bar o' light was coming from.
Also, this and HelmNCloak seem to ignore each other - would it be possible for this to acknowledge it? Some hats are cool, some are ugly and some are just silly - showing them only on sets where its not too obnoxious looking would be handy!
The highlight from the tooltip seems to stick around after you click the set.
This is because the cell's OnLeave() is never called - instead, the tooltip is released when the cell is clicked. To fix this, either the cell's OnEnter() should be unset or the tooltip releasing should be handled more elegantly - such as acquiring with the LDB plugin's OnEnter() and using the tooltip's :SetAutoHideDelay() method to automatically hide/release it when it loses mouse focus.
I'm quite new to this tooltip scene, I'll dig deeper in the documentation... If I understand correctly I should :
- Acquire LibQTipClick on the OnEnter method of ldb object
- Set the auto hide delay on the tooltip (I was actually going to hack it myself but it's much better if something already exists for that)
- Do not release tooltip on clicking LDB object, nor when clicking on a cell
One question remaining : where should I release the LibQTipClick tooltip then ?
It uses LibQTip and the new LibQtipClick-1.1 libraries
http://www.wowace.com/projects/broker_blizzequipmentset/
Also, this and HelmNCloak seem to ignore each other - would it be possible for this to acknowledge it? Some hats are cool, some are ugly and some are just silly - showing them only on sets where its not too obnoxious looking would be handy!
This is because the cell's OnLeave() is never called - instead, the tooltip is released when the cell is clicked. To fix this, either the cell's OnEnter() should be unset or the tooltip releasing should be handled more elegantly - such as acquiring with the LDB plugin's OnEnter() and using the tooltip's :SetAutoHideDelay() method to automatically hide/release it when it loses mouse focus.
- Acquire LibQTipClick on the OnEnter method of ldb object
- Set the auto hide delay on the tooltip (I was actually going to hack it myself but it's much better if something already exists for that)
- Do not release tooltip on clicking LDB object, nor when clicking on a cell
One question remaining : where should I release the LibQTipClick tooltip then ?
Thanks for the pointers Torhal.
That actually depends on what you're trying to achieve, but in this case I wouldn't.
Using SetAutoHideDelay() will automatically release the tooltip when it is hidden. Just make sure you pass the plugin's frame as the second parameter: