mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-17 10:10:50 +00:00
nameplates: disable clicks while spell targeting
Thanks @woblight
This commit is contained in:
@@ -399,6 +399,12 @@ pfUI:RegisterModule("nameplates", function ()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- disable click events while spell is targeting
|
||||||
|
local mouseEnabled = this.nameplate:IsMouseEnabled()
|
||||||
|
if C.nameplates["clickthrough"] == "0" and SpellIsTargeting() == mouseEnabled then
|
||||||
|
this.nameplate:EnableMouse(not mouseEnabled)
|
||||||
|
end
|
||||||
|
|
||||||
-- level elite indicator
|
-- level elite indicator
|
||||||
if this.needEliteUpdate and pfUI.nameplates.mobs[unitname] then
|
if this.needEliteUpdate and pfUI.nameplates.mobs[unitname] then
|
||||||
if level:GetText() ~= nil then
|
if level:GetText() ~= nil then
|
||||||
|
|||||||
Reference in New Issue
Block a user