mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 20:20:01 +00:00
nameplates: enable mouselook on right clicks
This commit is contained in:
@@ -86,6 +86,15 @@ pfUI:RegisterModule("nameplates", function ()
|
||||
-- enable clickthrough
|
||||
if pfUI_config.nameplates["clickthrough"] == "0" then
|
||||
nameplate:EnableMouse(true)
|
||||
if pfUI_config.nameplates["rightclick"] == "1" then
|
||||
nameplate:SetScript("OnMouseDown", function()
|
||||
if arg1 and arg1 == "RightButton" then
|
||||
this:Click("LeftButton")
|
||||
AttackTarget()
|
||||
MouselookStart()
|
||||
end
|
||||
end)
|
||||
end
|
||||
else
|
||||
nameplate:EnableMouse(false)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user