
Missing difference between World Unit and Frame Unit type?
schrottbrennt opened this issue ยท 12 comments
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.
(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
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?
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?
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.
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.
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.
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?
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.
This is weird. The function call
WorldFrame:IsMouseMotionFocus()
should returntrue
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.
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:
Lines 3508 to 3510 in 75d2b66
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! ๐๐