mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 18:56:02 +00:00
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:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user