TipTac Reborn

TipTac Reborn

1M Downloads

Standard tooltip will be shown if alt-tabbing out of WoW, clicking somewhere else and alt-tabbing back to WoW

Closed this issue ยท 7 comments

commented

Describe the bug

From: OhanaMatata

Ok so the issue where the tooltips sometimes don't format correctly is still here, but it's far less noticeable than it was prior to the 2nd-to-most-recent build. I found a way to 100% replicate it forcefully, but even if I play the game normally it just sometimes happens, especially in combat on occasion, and particularly often when a mob dies while my cursor is already pointing at it.

It represents itself as the tooltip still adhering to my anchor point (above cursor) but the health bar, backdrop, insets etc restoring to a kinda... default blizzard state?

https://drive.google.com/file/d/11dZLELNN50bCBX0T8VMvYYI7VnXGd62V/view?usp=sharing -- How I have the tooltips set up to appear

Image

https://drive.google.com/file/d/1IgXXcthZHYdSvjYudv3BiKsCl3DtseWl/view?usp=sharing -- How the tooltip appears when 'broken'

Image

Now, I can recreate this on my first tooltip after mousing over something by alt-tabbing out of the game, then before i alt tab back in, I switch to a THIRD tab. for example I can alt-tab out to my web browser, then switch to any other application, then back to wow, and it happens, with 100% replication rate. It is as if the game losing primary focus is causing this to happen or something.

Two more pics: Both corpse (normal): https://drive.google.com/file/d/1YSq7QUScrkvxPSJvfkIXrnbPTeY3FcqF/view?usp=sharing

Image

Corpse (Broken): https://drive.google.com/file/d/1EMzL2PmbFCgwh3WTwro-HCWKAdQ-ewc-/view?usp=sharing

Image

Source: https://legacy.curseforge.com/wow/addons/tiptac-reborn/?comment=799

Steps to Reproduce

No response

Expected behavior

No response

Additional context

No response

Version of TipTac Reborn

25.07.08

Flavor/Version of WoW

unknown

commented

Unfortunately I can't reproduce this on my side. Alt-tabbing out and back to WoW with clicking somewhere else is working without the broken tooltips.

commented

thankyou for opening the ticket, i will continue to investigate so hopefully i can provide more info! I have tried the basic steps of disable every other addon, turned off graphics enhancements etc. I'll keep you posted :)

commented

Sadly I don't think I can really help you isolate the cause of this, as I have no lua errors at all
I did find that a certain script, when pasted into ingame chat, fixed the issue for me:

/run local u=select(2, GameTooltip:GetUnit()) if GameTooltip:IsShown() and u and UnitExists(u) then GameTooltip:SetUnit(u) end if TipTac and TipTac.SetAppearanceToTip then TipTac:SetAppearanceToTip(GameTooltip) end

Since I realised that the issue happened on the first tooltip following the game re-gaining focus, this script would force the tooltip to re-draw with the correct one, though I still had the issue of tooltips occasionally drawing incorrectly mid-gameplay.

I made a basic addon of my own which is the following code that attempts to address the issue: (Seems to have fixed the problem. I think what it does is Hi-jack the anchor away from TipTac, but eh, if it works it works!)

local hookRunning = false

local function WarmUpTooltip()
    GameTooltip:SetOwner(UIParent, "ANCHOR_MOUSE")
    GameTooltip:SetText(" ") -- empty text to keep it minimal
    GameTooltip:Show()
    GameTooltip:Hide()
end

C_Timer.After(0.1, WarmUpTooltip)  -- run 0.1 seconds after reload

GameTooltip:HookScript("OnTooltipSetUnit", function()
    if hookRunning then return end
    hookRunning = true

    local u = select(2, GameTooltip:GetUnit())
    if u and UnitExists(u) then
        GameTooltip:SetUnit(u)
    end
    if TipTac and TipTac.SetAppearanceToTip then
        TipTac:SetAppearanceToTip(GameTooltip)
    end
	
	if TipTac and TipTac.SetDefaultAnchorHook then
    TipTac:SetDefaultAnchorHook(GameTooltip, UIParent)
	end

    hookRunning = false
end)
commented

Okay I think I see what might be happening here. Forget all the alt-tab stuff. Simply pointing the cursor at something on my action bar, then back at a world unit, causes the formatting issue (on the first tooltip drawn)

It's almost as if the tooltip enters a 'different state' when the previous tooltip it rendered was a different category of tooltip. For instance, if my previous tooltip was a Frame Tip, and I move my mouse over a World Unit Tip, then that first World Unit Tip is formatted wrong, and any subsequent ones are formatted properly!

All my anchor settings are Mouse Anchor -- Bottom.

edit
I don't even have to point the mouse at something on my action bar -- just pointing it at any empty aciton bar button, then back at an NPC, causes the issue with 100% replication rate :o

commented

The "empty action bar button" pointed me in the right direction. With release v25.06.19 I removed accidentally one critical line which causes this error (95fca69). Unbelievable, you found the needle in the haystack! ๐Ÿ˜‰

Fix will be included in the next release.

commented

yup it does indeed fix the issue i had with intermittent formatting breaks :) Very good job! Happy to have helped, even if it was by accident!

My issue of the tooltip insets being 'off' directly after a UIReload is still a thing, so I will keep my local function WarmUpTooltip() in play.

Image
left: first tooltip after reload, see insets do not extend beyond health bar edges.
right: how it normally is.

This is a very small thing and only seems to affect the very first tooltip following after an UI reload or loading screen, as once i mouse away and back to the target, it is as per normal until the next reloadui.
I circumvent/fix this it by running my WarmUpTooltip function which just draws a phantom tooltip 0.1s after UI reload to "get rid" of the dodgy one

edit this is me just super OCD -- please do not take this as anything else :) Most people probably do not even notice or care of such a minor thing, hah.

commented

This was a tricky one, but sometimes minor things need to be fixed, too. Thanks for digging deeper into it! ๐Ÿ˜‰

Fix will be included in the next release.