nameplates: enable mouselook on right clicks

This commit is contained in:
shagu
2017-01-03 15:58:59 +01:00
parent 7cddaa076b
commit f72757ed43
3 changed files with 11 additions and 0 deletions
+9
View File
@@ -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