TipTac Reborn

TipTac Reborn

1M Downloads

Missing difference between World Unit and Frame Unit type?

schrottbrennt opened this issue ยท 12 comments

commented

Describe the bug

Hi, I'm on WoW 11.1 and TipTac 25.02.16, and I don't know if I'm missing something, but it seems the anchor settings for world units/world tips isn't working anymore and instead, both world units and frame units (and tips) are managed only by the Frame Unit type setting.

Image
(mousing over the bench, and according to the settings, the tooltip should appear on the bench at my mouse, not on the Normal Anchor position. If I put the Frame Unit/Tip type on Mouse Anchor as well, it works for the bench, but the bench is not a frame unit. Sorry, somewhat convoluted. ^^)

Steps to Reproduce

No response

Expected behavior

No response

Additional context

No response

Version of TipTac Reborn

25.02.16

Flavor/Version of WoW

11.1

commented

This is weird. The function call WorldFrame:IsMouseMotionFocus() should return true if you're hovering over the world frame or world unit.

Here is another test (also hovering over a world unit): /run print(_G.WorldFrame == WorldFrame, WorldFrame:IsMouseEnabled(), WorldFrame:IsMouseMotionEnabled(), WorldFrame:IsMouseOver(), WorldFrame:IsMouseMotionFocus())

My result is: true true true true true

How is yours?

commented

Just wanted to say as I was having the same issue, I get the same result of false on the WorldFrame:IsMouseMotionFocus() command.

The second command prints out as true false false true false

I'm wondering if there's some obscure interface option we have enabled that you don't on your end?

commented

Okay so I looked into it. I disabled all other addons except Tiptac and it still occured. I deleted Tiptac and the settings from WTF, reinstalled the addon fresh, loaded WoW with only Tiptac - still happening.
I don't know what the difference could be, I'm playing on the German client, thats the only thing I can think of.

Image

commented

Unfortunately it's working fine on my side under the latest patch 11.1.0. Perhaps there's another addon interfering here. Try to disable all other addons and check if the error still occurs.

commented

fstack screenshot with other addons:

Image

fstack screenshot with only Tiptac

Image

commented

Please type in the command /fstack in the chat, hover over a world unit and make a screenshot. Can you post the content of the tooltip "Frame Stack"? Thanks!

Entering /fstack again will disable the frame stack inspecting.

commented

Ok, now type command /run print(WorldFrame:IsMouseMotionFocus()). Make shure you are hovering over a world unit before pressing ENTER. What is the result, true or false?

commented

With all addons, and also with only Tiptac: false

commented

This is also happening to me. I was going to report a bug because the World Unit anchor seemed to be stuck at "Top right" and I couldn't change it. Turns out, if I switch Frame Unit to Bottom Left, the World Unit anchor is now correct.

commented

This is weird. The function call WorldFrame:IsMouseMotionFocus() should return true if you're hovering over the world frame or world unit.

Here is another test (also hovering over a world unit): /run print(_G.WorldFrame == WorldFrame, WorldFrame:IsMouseEnabled(), WorldFrame:IsMouseMotionEnabled(), WorldFrame:IsMouseOver(), WorldFrame:IsMouseMotionFocus())

My result is: true true true true true

How is yours?

My result is with only Tiptac and also with all addons: true false false true false.

commented

I finally has been able to fix this. By default the WorldFrame can't receive mouse hover events and WorldFrame:IsMouseMotionFocus() doesn't work. But if you have an addon installed which hooks e.g. the WorldFrame's OnMouseDown event, receiving mouse events will automatically be enabled and WorldFrame:IsMouseMotionFocus() will work, which has been the situation in my case.

You can easily test this: Just enter command /run WorldFrame:EnableMouseMotion(true) and the anchoring will work accordingly.

I added the following check before evaluating the WorldFrame:

TipTac/TipTac/ttCore.lua

Lines 3508 to 3510 in 75d2b66

if (not WorldFrame:IsMouseMotionEnabled()) then -- make shure that the WorldFrame can receive mouse hover events
WorldFrame:EnableMouseMotion(true);
end

The error appeared since release v25.01.29. The fix will be included in the next release.

Thank you for helping me out to nail it down! ๐Ÿ™‚๐Ÿ‘

commented

Thanks for the fix, works perfectly.

Keep up the great work, not sure I could play properly without TipTac!