actionbar: use specific mouse button types

This is required to stay compatible with vanilla,
where AnyUp and AnyDown didn't exist.
This commit is contained in:
shagu
2020-02-19 21:35:24 +01:00
parent f3547bab82
commit 6905b31fa0
+5 -1
View File
@@ -779,7 +779,11 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function ()
end
-- set keydown option
f:RegisterForClicks(C.bars.keydown == "1" and "AnyDown" or "AnyUp")
if C.bars.keydown == "1" then
f:RegisterForClicks("LeftButtonDown", "RightButtonDown")
else
f:RegisterForClicks("LeftButtonUp", "RightButtonUp")
end
-- set animation
f.animation:SetScript("OnUpdate", button_animations[C.bars.animation])