Tooltip is constantly reseting the backdrop
I am trying to style the GameTooltip and am providing my own backdrop. On top I set my own backdrop color and backdrop border color. For items I am recoloring the border by item rarity.
When I am hovering over any item (like in the character window) that backdrop will be visible for a split second but then the backdrop changes to the default one including all color settings. Has anyone worked with tooltips lately and has a tip on how to handle that? Btw sometimes I am getting blueish tinted tooltip backgrounds. It mostly happens when hovering over objects like a portal. When you hover over a unit thereafter the blueish tint stays since I am only reseting the backdrop OnShow. Any hints would be appreciated. |
This is one of the main features of TipTac. You could look to see how Aezay is handling this (which had to be changed for BfA).
|
Quote:
You can probably do something like this to prevent it from happening: lua Code:
(Or with your own background colors, of course.) |
Had the same problem, i've just overwritten GAME_TOOLTIP_BACKDROP_STYLE_DEFAULT
|
Do you think overriding a default constant is a good idea? That can lead to a myriad of taints since the tooltip is used god knows where.
|
Quote:
You could probably hook into GameTooltip_SetBackdropStyle() see here |
Quote:
This is what Tiptac wound up doing (see this ticket) and we've been testing it pretty heavily w/o any tainting issues. |
Thanks all.
I was able to fix my issues. Here is the commit: https://github.com/zorker/rothui/com...a1e35a75e8fc38 I opted for not using the OnUpdate. Not using it shows sometimes a blue tinted tooltip on portals/mailbox etc which I am totally fine with. Everything else is fixed now. |
Where did the post from nevereg go? I thought about it a bit more and I think going for the GameTooltip_SetBackdropStyle hook might be a the best approach.
We can get rid of so many other hooks and we have access to the backdrop attributes from blizzard. You could just match style against GAME_TOOLTIP_BACKDROP_STYLE_AZERITE_ITEM and know that the style you are handling is for azerite. alternative A Lua Code:
alternative B Lua Code:
I am going to change my tooltip to that method. It seems convenient for what I am trying to do. *edit* Commit hooking into SetBackdropStyle https://github.com/zorker/rothui/com...ceda45d583d2fa |
Quote:
|
Totally possible. It is a dry code atm.
|
All times are GMT -6. The time now is 06:51 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI