mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 14:00:48 +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
|
end
|
||||||
|
|
||||||
-- set keydown option
|
-- 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
|
-- set animation
|
||||||
f.animation:SetScript("OnUpdate", button_animations[C.bars.animation])
|
f.animation:SetScript("OnUpdate", button_animations[C.bars.animation])
|
||||||
|
|||||||
Reference in New Issue
Block a user