obble / modui_classic

modui: for wow classic
45 stars 20 forks source link

Mouse tooltip #63

Closed dexterars closed 4 years ago

dexterars commented 4 years ago

I like the mouse tooltip but the fade out its long like 3-4 seconds before fadin :) can you fix it

obble commented 4 years ago

yeah it winds me up too! I tried and failed to find a way to fade it out quicker last night, but i'll keep this ticket open and try and locate a way to do it.

Xaero252 commented 4 years ago

This is also a difficult problem. Even the current version of TipTac for retial lists this as a feature that needs improvement. I think I have a way to hook the underlying fade function in the BlizzardInterfaceCode - but I'm not sure that it won't cause taint.

You can use: GameTooltip.FadeOut = function(self) GameTooltip:Hide() end To override the function; but this will probably cause taint. You could probably Hookscript the FadeOut function to call Hide(); as the FadeOut function uses SetAlpha to slowly fade the frame. There would still be a delay, but at the end of the delay it would instantly hide rather than fading. Adjusting that delay is probably not possible.

obble commented 4 years ago

I guess one option might be to loop over that FadeOut function and set the alpha to 0 on the tooltip on every update. That tends not to taint compared to a show or hide call. Might cause flickering though and its expensive

Xaero252 commented 4 years ago

Even better, a bit of light reading shows that the game itself never calls GameTooltip:FadeOut and that it's there for the API only.