mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-07 06:00:00 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user