Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for SoD Phase 5 issue #982

Open
gotmilk0112 opened this issue Sep 24, 2024 · 2 comments
Open

Fix for SoD Phase 5 issue #982

gotmilk0112 opened this issue Sep 24, 2024 · 2 comments

Comments

@gotmilk0112
Copy link

Phase 5 of SoD has broken this addon, something to do with GetMouseover no longer working. Luckily the fix is simple:

\LunaUnitFrames\libs\oUF_Plugins\oUF_Highlight\oUF_Highlight.lua
\LunaUnitFrames\libs\oUF_Plugins\oUF_BorderHighlight\oUF_BorderHighlight.lua

Both of these files, look for lines that have "hasMouseover" and comment them out. Like this:

image

Addon works just fine after doing that in both of those files.

@Tegas
Copy link

Tegas commented Sep 25, 2024

The GetMouseFocus function has been replaced by GetMouseFoci.

https://warcraft.wiki.gg/wiki/Patch_11.0.0/API_changes

I got it working by swapping
GetMouseFocus()
to
GetMouseFoci()[1]

I think the idea is that the mouse might be on top of a lot of things, and the element directly beneath it is item 1, then the thing a layer below is item 2, and so on.

your mileage may vary.

@beachcamp
Copy link

The above worked for me. Thanks Tegas!

Steps to fix:

  1. Open file: "LunaUnitFrames\libs\oUF_Plugins\oUF_BorderHighlight\oUF_BorderHighlight.lua"
  2. On line 79 replace GetMouseFocus() with GetMouseFoci()[1]
  3. Open file: "LunaUnitFrames\libs\oUF_Plugins\oUF_Highlight\oUF_Highlight.lua"
  4. On line 66 replace GetMouseFocus() with GetMouseFoci()[1]
  5. Save, reload, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants