LFG Applicant Tooltip hook?
Hi,
Complete addon newbie here. I was wondering if it was possible to add text to the LFG applicant tooltip in a similar way as player mouseover tooltip? Lua Code:
This works fine but was wondering how i could adapt this to the LFG applicant tooltip as well. Thanks! |
Get your applicant tooltip to show, then type "/fstack" (you might have to make it "/framestack", it's the same thing, oh, and leave the quotes out - I just put them there :o ), hit "enter" and put your mouse over the tooltip. This'll give you a new window in one corner of your screen with everything that is under your cursor. In that information will be the name of the tooltip that you're looking for.
Type it again to stop it. |
(psst - your mouse can't go over a tooltip ;) )
|
Quote:
|
Oh, my bad! But, you know, I could have sworn.....
|
Yeah. I tried the /fstack tooltip mouseover and learned quickly lol.
The toooltip from LFG Applicants seem to be brought up by LFGListApplicationViewerScrollFrameButton1, LFGListApplicationViewerScrollFrameButton2, etc.... I cannot figure out how to hook into the tooltip in that section though unlike the code i posted above. I thought something like Lua Code:
|
See if the inherited template or function that creates LFGListApplicationViewerScrollFrameButton 1 to x calls a function in the OnEnter script and if so, use hooksecurefunc on that rather than trying to find each buttons OnEnter.
Edit: It doesn't . |
Code:
LFGListApplicationViewerScrollFrameButton1 Code:
LFGListApplicationViewerScrollFrameButton1.InviteButton |
For things like this, rather than targeting specific objects by name in a list whose members are dynamically created, just hook the function that updates all the objects in the list, and hook each object if it isn't already hooked; this will catch new objects as they are created.
Code:
local hooked = {} |
Thank you so much Phanx! :)
|
All times are GMT -6. The time now is 02:54 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI