mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-28 08:54:43 +00:00
update RegisterForClicks
This commit is contained in:
@@ -13,7 +13,7 @@ local NUM_BAG_FRAMES = NUM_BAG_FRAMES
|
||||
local TOTAL_BAGS = NUM_BAG_FRAMES + 2
|
||||
|
||||
local ElvUIKeyRing = CreateFrame("CheckButton", "ElvUIKeyRingButton", UIParent, "ItemButtonTemplate")
|
||||
ElvUIKeyRing:RegisterForClicks("anyUp")
|
||||
ElvUIKeyRing:RegisterForClicks("LeftButtonUp", "RightButtonUp")
|
||||
E:StripTextures(ElvUIKeyRing)
|
||||
ElvUIKeyRing:SetScript("OnClick", function() if CursorHasItem() then PutKeyInKeyRing() else ToggleKeyRing() end end)
|
||||
ElvUIKeyRing:SetScript("OnReceiveDrag", function() if CursorHasItem() then PutKeyInKeyRing() end end)
|
||||
|
||||
@@ -961,7 +961,7 @@ function B:ContructContainerFrame(name, isBank)
|
||||
--Allow dragging the frame around
|
||||
f:SetMovable(true)
|
||||
f:RegisterForDrag("LeftButton", "RightButton")
|
||||
f:RegisterForClicks("AnyUp")
|
||||
f:RegisterForClicks("LeftButtonUp", "RightButtonUp")
|
||||
f:SetScript("OnDragStart", function() if IsShiftKeyDown() then this:StartMoving() end end)
|
||||
f:SetScript("OnDragStop", function() this:StopMovingOrSizing() end)
|
||||
f:SetScript("OnClick", function() if IsControlKeyDown() then B.PostBagMove(this.mover) end end)
|
||||
|
||||
Reference in New Issue
Block a user