nameplates: remove custom plate for mouselook

Mouselook right click handler can also work on regular plates
in vanilla. There's no need to enforce custom plate overlays.
This commit is contained in:
shagu
2020-05-12 14:04:02 +02:00
parent 46db715043
commit b1e9a4d183
+3 -3
View File
@@ -591,10 +591,10 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
local parent = self
local nameplate = self.nameplate
local plate = (C.nameplates["overlap"] == "1" or C.nameplates["rightclick"] == "1") and nameplate or parent
local plate = C.nameplates["overlap"] == "1" and nameplate or parent
-- replace clickhandler
if C.nameplates["overlap"] == "1" or C.nameplates["rightclick"] == "1" then
if C.nameplates["overlap"] == "1" then
parent:SetFrameLevel(0)
nameplate:SetScript("OnClick", function() parent:Click() end)
@@ -634,7 +634,7 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
-- disable click events while spell is targeting
local mouseEnabled = this.nameplate:IsMouseEnabled()
if C.nameplates["clickthrough"] == "0" and ( C.nameplates["overlap"] == "1" or C.nameplates["rightclick"] == "1" ) and SpellIsTargeting() == mouseEnabled then
if C.nameplates["clickthrough"] == "0" and C.nameplates["overlap"] == "1" and SpellIsTargeting() == mouseEnabled then
this.nameplate:EnableMouse(not mouseEnabled)
end