Hide Tooltip Player/Class-Bar
I tested some new textures and noticed that everytime I mouseover (own/player) class-specific bars like chi-, holypower-, eclipse-bar, a tooltip/frame will appear (GameTooltip.Center).
Basically I am looking for a way to hide this specific Tooltip without effecting other GameTooltips.
It could get annoying in combat when hovering over it especially with higher scaled bars.
I found this two parts in the Blizzard-Code:
I couldn't find any related CVars or code snippets.
Any help is much appreciated:)
Here's what I've come up with so far. The brewmaster stagger bar inherits from AlternatePowerBar and that doesn't generate a tooltip from what I see.
Lunar/Insanity/Maelstrom take over the PlayerFrame's built-in power bar and cause AlternatePowerBar to show mana instead.
Could you just disable the mouse over those frames, or is that tied to something else I'm not thinking of?
(Would likely play nicer than setting the scripts to nil.)
Some frames like the totem buttons still need to respond to clicks. The 9.0 API does allow toggling click and motion separately. The only argument I see against clearing the scripts is breaking any addon hooking them, but you do that turning off motion anyway. Either way, the hooks stop running. The benefit of clearing scripts is they allow many XML-defined functions to be garbage collected. These being Lua code enclosed in script tags instead of linked using the function or method attributes.
It may just be me, but I rather free unused memory than leave it tied up. I like having a tidy environment. :D
Thank you for your code, clean as always and seems to do exactly what I want.
I have alot of code using much more memory than it could so I definitely get your point.
For my UI its over 1k lines and I am way too lazy to deal with that, hell no. :rolleyes:
|All times are GMT -6. The time now is 10:41 AM.|
vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI