Aviana / LunaUnitFrames

Unit Frames for WoW Classic
245 stars 102 forks source link

Fix for SoD Phase 5 issue #982

Open gotmilk0112 opened 3 weeks ago

gotmilk0112 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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.