Chat which only shows on MouseOver
Im currently working on a mouse over chat:
This is already working quite good. There are just two things bothering me.
1. If I mouse over a chat channel name, a player name or an item name in the chat the chat
fades out. This happens because the on leave event is getting triggered. That means
channel name, player name and item name are different frames. I cant manage to find
out what frames. I need to hook them up too like I did with all the other frames.
2. In combat log there the following frame:
Hooking these three frames like I did with the other frames does not lead to the expected
result. So I suspect I need to hook another frame which I also cant find.
Any Chat Expert who has an idea?
A few years ago I made a similiar addon: https://github.com/Urtgard/Hide-Chat...aster/HCIC.lua
Probably not the best solution but maybe it helps.
chat channel, item links or player names in any way. Still your code works.
I did not understand why.
I use GetMouseFocus() to determine whether the mouse is still hovering above the chat.
First I check for names or links. If you hover over one of those f.messageInfo exists.
Next I check if the frame, its parent or grandparent is in my list of frames that are part of the chat (Chatframe1, ChatFrame1Tab, GeneralDockManager ... )
This list is created in the init() function.
If one of those checks is true I know I'm still hovering the chat and I don't have to call my FadeOut function.
Thank you. That explains it! I can use that to get it working!
I did a lot of hacking on the chat while developing Prat.
Maybe I don't know what you are trying to do.
Did you know that behind every item link in the chatframe is an anonymous button?
posted. But there a lot of other minor things which are yet to find out. For example even though
the whole chat is not visible, the gold, silver and copper icons are still visible when they appear
in a chat message like the message you get when you repaired stuff ^^
I've had the same problem with Big Wigs icons in the chat.
That's why I not only change the alpha value (for smooth fades) but also completly hide the frames.
If you do it that way you'll need a transparent frame in the place of the chat to register when you're hovering over the chat and you can start the fade in.
|All times are GMT -6. The time now is 12:48 PM.|
vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI