ElvUI icon indicating copy to clipboard operation
ElvUI copied to clipboard

Nameplates: Mouseover and Focus - elements not updating

Open Zidras opened this issue 5 years ago • 1 comments

Description

Mouseover Unit: function NP:SetMouseoverFrame(frame) has a few issues:

  • [ ] Model mouseover does not update elements
  • [ ] Nameplate mouseover only shows current cast at the time of mouseover. Any cast after it does not show.

Still on mouseover issues:

  • [ ] If Clickthough is enabled, elements are not updated when doing mouseover (since the function does not run because there's no oldbackground)

Focus Unit: castbar is not being shown on this unit.

  • [x] Update castbar

Version Number

6.08

Steps to Reproduce

Explained above.

Expected Behavior

Mouseover and Focus unit should have their elements updated.

Actual Behavior

Explained above.

Only ElvUI Enabled

Yes

Blizzard Issue?

No

Additional Information

No lua errors.

Error Log


Zidras avatar Mar 13 '21 16:03 Zidras

Thanks Bunny for the focus fix: https://github.com/ElvUI-WotLK/ElvUI/commit/71a75d3cf3de2241d549a7a216215e1a3277dda0 and https://github.com/ElvUI-WotLK/ElvUI/commit/a3e24d253f00c1c4be9367b6264e88de922ce275

Mouseover is proving to be more challenging because it doesn't fire any UNIT events when something is mouseovered... only updates elements once on UPDATE_MOUSEOVER_UNIT. Any ideas? Throwing an idea here... it might be ugly and totally inefficient (and therefore not worth it at all to implement) but would some sort of loop checking for UnitGUID("mouseover") at each UPDATE_MOUSEOVER_UNIT to determine if we have a valid mouseover unit and plate and then run the NP update elements functions?

Zidras avatar Mar 14 '21 11:03 Zidras