Skip to content

Commit

Permalink
nameplates: keep mouse events disabled on parent
Browse files Browse the repository at this point in the history
  • Loading branch information
shagu committed Dec 25, 2024
1 parent 0b5407c commit 0e84077
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/nameplates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,16 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
plate:EnableMouse(clickable)
end

local hookOnDataChanged = nameplates.OnDataChanged
nameplates.OnDataChanged = function(self, nameplate)
hookOnDataChanged(self, nameplate)

-- make sure to keep mouse events disabled on parent nameplate
if (C.nameplates["overlap"] == "1" or C.nameplates["vertical_offset"] ~= "0") then
nameplate.parent:EnableMouse(false)
end
end

local hookOnUpdate = nameplates.OnUpdate
nameplates.OnUpdate = function(self)
if C.nameplates["overlap"] == "1" then
Expand Down

0 comments on commit 0e84077

Please sign in to comment.