mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 14:00:48 +00:00
nameplates: fix mouse buttons for vanilla
This commit is contained in:
@@ -633,10 +633,9 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- disable click events while spell is targeting
|
-- disable click events while spell is targeting
|
||||||
if C.nameplates["clickthrough"] == "1" or SpellIsTargeting() then
|
local mouseEnabled = this.nameplate:IsMouseEnabled()
|
||||||
this.nameplate:EnableMouse(false)
|
if C.nameplates["clickthrough"] == "0" and ( C.nameplates["overlap"] == "1" or C.nameplates["rightclick"] == "1" ) and SpellIsTargeting() == mouseEnabled then
|
||||||
else
|
this.nameplate:EnableMouse(not mouseEnabled)
|
||||||
this.nameplate:EnableMouse(true)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
hookOnUpdate(self)
|
hookOnUpdate(self)
|
||||||
|
|||||||
Reference in New Issue
Block a user